Options
All
  • Public
  • Public/Protected
  • All
Menu

chronik-client

Index

Type aliases

Network: "BCH" | "XEC" | "XPI" | "XRG"

Different networks of txs/blocks/UTXOs. Supported are BCH, eCash, Lotus and Ergon.

ScriptType: "other" | "p2pk" | "p2pkh" | "p2sh" | "p2tr-commitment" | "p2tr-state"

Script type queried in the script method.

  • other: Script type not covered by the standard script types; payload is the raw hex.
  • p2pk: Pay-to-Public-Key (<pk> OP_CHECKSIG), payload is the hex of the pubkey (compressed (33 bytes) or uncompressed (65 bytes)).
  • p2pkh: Pay-to-Public-Key-Hash (OP_DUP OP_HASH160 <pkh> OP_EQUALVERIFY OP_CHECKSIG). Payload is the 20 byte public key hash.
  • p2sh: Pay-to-Script-Hash (OP_HASH160 <sh> OP_EQUAL). Payload is the 20 byte script hash.
  • p2tr-commitment: Pay-to-Taproot (OP_SCRIPTTYPE OP_1 <commitment> <state>?), only on Lotus. Queries by the commitment. Payload is the 33 byte commitment.
  • p2tr-state: Pay-to-Taproot (OP_SCRIPTTYPE OP_1 <commitment> <state>), only on Lotus. Queries by the state. Payload is the 32 byte state.
SlpTokenType: "FUNGIBLE" | "NFT1_GROUP" | "NFT1_CHILD" | "UNKNOWN_TOKEN_TYPE"

Which SLP token type (normal fungible, NFT, unknown).

SlpTxType: "GENESIS" | "SEND" | "MINT" | "UNKNOWN_TX_TYPE"

Which SLP tx type.

Message returned from the WebSocket.

UtxoStateVariant: "UNSPENT" | "SPENT" | "NO_SUCH_TX" | "NO_SUCH_OUTPUT"

State of a transaction output.

  • UNSPENT: The UTXO is unspent.
  • SPENT: The output is spent and no longer part of the UTXO set.
  • NO_SUCH_TX: The tx queried does not exist.
  • NO_SUCH_OUTPUT: The output queried does not exist, but the tx does exist.

Generated using TypeDoc