decodeBIP21 method

Map<String, dynamic> decodeBIP21 (String uri)

Converts bip-21 uri into a bch address and its options

The return Map will have the following format:

{
  address: 'qpum6dwnqmmysdggrprse8ccjq7ldcrfqgmmtgcmny',
  options: {
    amount: 12.5,
    label: 'coinbase donation',
    message: 'and ya don\'t stop'
  }
}

Implementation

static Map<String, dynamic> decodeBIP21(String uri) {
  return Bip21.decode(uri);
}