scriptPubKey method

Future<Script> scriptPubKey()

Returns the script pub key of the Address object

Implementation

Future<bridge.Script> scriptPubKey() async {
  try {
    final res = await bdkFfi.addressToScriptPubkeyStaticMethodApi(
        address: _address.toString());
    return res;
  } on bridge.Error {
    rethrow;
  }
}