subscribeToAddress method

void subscribeToAddress(
  1. String address
)

Subscribe to an address Method can be used for p2pkh or p2sh addresses

Implementation

void subscribeToAddress(String address) {
  // Get type and hash
  final decoded = decodeCashAddress(address);

  // Subscribe to script
  subscribeToScript(ScriptType.from(decoded.type.name), decoded.hash);
}