Skip to main content

HashedMapProvider

@opcat-labs/scrypt-ts-opcat v1.0.4


@opcat-labs/scrypt-ts-opcat / HashedMapProvider

Interface: HashedMapProvider

Defined in: packages/scrypt-ts-opcat/src/smart-contract/builtin-libs/hashedMap/hashedMapProvider.ts:17

Methods​

getKeyValues()​

getKeyValues(scripthash, stateFieldPath, utxo): Promise\<{ keyValues: [ByteString, ByteString][]; }>

Defined in: packages/scrypt-ts-opcat/src/smart-contract/builtin-libs/hashedMap/hashedMapProvider.ts:25

Get the key values snapshot of the hashed map instance

Parameters​

scripthash​

string

stateFieldPath​

string

utxo​

Outpoint

Returns​

Promise\<{ keyValues: [ByteString, ByteString][]; }>


getLatestUtxo()​

getLatestUtxo(scripthash, stateFieldPath, instanceOutpoint): Promise\<Outpoint & object>

Defined in: packages/scrypt-ts-opcat/src/smart-contract/builtin-libs/hashedMap/hashedMapProvider.ts:40

Get the latest utxo of the hashed map instance

Parameters​

scripthash​

string

stateFieldPath​

string

instanceOutpoint​

Outpoint

Returns​

Promise\<Outpoint & object>