Resolvers
Converts between different formats.
Resolve Private Key
Provide the mnemonic phrases and resolvePrivateKey
will return a private key.
Convert mnemonic to private key
Resolve Transaction Hash
Provide a cborTx
, resolveTxHash
will return the transaction hash. This hash is useful for creating chain transactions.
Convert transaction cborTx to transaction hash
Connect wallet to run this demo
Resolve Data Hash
Converts datum into hash. Getting the hash is useful when you need to query for the UTXO that contain the assets you need for your transaction's input.
Explore Transaction to learn more about designing Datum, and learn how to query for UTXOs containing the datum hash.
Convert datum into hash
Resolve Native Script Hash
Converts NativeScript
into hash.
Convert NativeScript to hash
Resolve Script Hash
resolveScriptHash
will return a script hash. For example, this is useful when you want to convert a script to a policy ID.
Convert script to hash (like policy ID)
Resolve Stake Address
Provide a wallet address, and resolveRewardAddress
will return a staking address in bech32 format.
Convert wallet address to staking address
Resolve Fingerprint
Takes policy ID and asset name, and return asset fingerprint based on CIP-14.
Convert asset policy ID and asset name to asset fingerprint.
Resolve Stake Key Hash
Provide a stake address, and resolveStakeKeyHash
will return the pub key hash of the stake address. This key hash is useful for building the NativeScript.
Convert stake address to pub key hash
Resolve Rep Id
Resolve Rep Id from scrip hash.
Resolve rep id from scrip hash
Resolve Epoch Number
With resolveEpochNo
, you can get the current epoch with:
You can also provide date in milliseconds
to get epoch in the past or the future. For example, get the epoch 1 year from now:
Get the epoch number for the network
Get the epoch number for the network 1 year from now
Resolve Slot Number
With resolveSlotNo
, you can get the current slot number with:
You can also provide date in milliseconds
to get slots in the past or the future. For example, get the slot number 1 year from now:
Get the Slot number for the network
Get the Slot number for the network 1 year from now