getCAIPDetails function

CAIPDetailsType? getCAIPDetails(
  1. String addressInCAIP
)

Implementation

CAIPDetailsType? getCAIPDetails(String addressInCAIP) {
  if (validateCAIP(addressInCAIP)) {
    final addressComponents = addressInCAIP.split(':');
    return CAIPDetailsType(
      blockchain: addressComponents[0],
      networkId: addressComponents[1],
      address: addressComponents[2],
    );
  }
  return null;
}