Skip to content

RPC call blockchain.scripthash.get_first_use

Dagur Valberg Johannsson requested to merge github/fork/dagurval/firsteen into master

Created by: dagurval

Implements new RPC call blockchain.scripthash.get_firstuse. This RPC calls returns the hash of the first block scripthash was found in.

It returns a hash of all the transaction that have scripthash as output in that block.

Note: Does not return transaction spending scripthash as input. Use get_history for that.

Output from example script:

$ ./blockchain_scripthash_get_firstuse.py 
{'block_hash': '000000000000007f6c0e53f4560e15e1a805470144c00e1d81b78543e69c59c4', 'tx_hash': ['491aa3f7fd1f23882c3437898125259d2a0c044bea0f6aa659b8d7d6ab75632a']}

Merge request reports