subscribeScripthash method

Future<Stream<String?>> subscribeScripthash(
  1. String scripthash
)

Implementation

Future<Stream<String?>> subscribeScripthash(String scripthash) async {
  var methodPrefix = 'blockchain.scripthash';

  // If this is the first time, register
  registerSubscribable(methodPrefix, 1);

  return await subscribe(methodPrefix, [scripthash]);
}