blockchain.address.get_scripthash
blockchain.address.get_scripthash
Translate a Bitcoin Cash or a Nexa address to a script hash. This method is
potentially useful for clients preferring to work with script hashes
but
lacking the local libraries necessary to generate them.
Signature
Function: blockchain.address.get_scripthash(address)
Version added: 1.4.3
address
Address encoded as a CashAddr string (with or without prefix). Legacy addresses (base58) are also supported.
Result
The unique 32-byte hex-encoded
script hash
that corresponds to the decoded address.