Returns the Electrum script hash of a name's index script: its SHA-256 hash with the bytes reversed, as hex. blockchain.scripthash.get_history with this hash lists every transaction that operated on the name; the newest one holds the name.
blockchain.scripthash.get_history
The name, as bytes or as a string. See nameIndexScript.
The script hash as hex.
const history = await electrum.request('blockchain.scripthash.get_history', [ nameops.nameIndexScriptHash('doichain'),]); Copy
const history = await electrum.request('blockchain.scripthash.get_history', [ nameops.nameIndexScriptHash('doichain'),]);
Returns the Electrum script hash of a name's index script: its SHA-256 hash with the bytes reversed, as hex.
blockchain.scripthash.get_historywith this hash lists every transaction that operated on the name; the newest one holds the name.