Crate chainhook_types

source ·

Modules

Structs

The account_identifier uniquely identifies an account within a network. All fields in the account_identifier are utilized to determine this uniqueness (including the metadata field, if populated).
Amount is some Value of a Currency. It is considered invalid to specify a Value without a Currency.
BitcoinBlock contain an array of Transactions that occurred at a particular BlockIdentifier. A hard requirement for blocks returned by Rosetta implementations is that they MUST be inalterable: once a client has requested and received a block identified by a specific BlockIndentifier, all future calls for that same BlockIdentifier must return the same block contents.
Transactions contain an array of Operations that are attributable to the same TransactionIdentifier.
Extra data for Transaction
BlockIdentifier uniquely identifies a block in a particular network.
Currency is composed of a canonical Symbol and Decimals. This Decimals value is used to convert an Amount.Value from atomic units (Satoshis) to standard units (Bitcoins).
Operations contain all balance-changing information within a transaction. They are always one-sided (only affect 1 AccountIdentifier) and can succeed or fail independently from a Transaction.
The operation_identifier uniquely identifies an operation within a transaction.
PublicKey contains a public key byte array for a particular CurveType encoded in hex. Note that there is no PrivateKey struct as this is NEVER the concern of an implementation.
StacksBlock contain an array of Transactions that occurred at a particular BlockIdentifier. A hard requirement for blocks returned by Rosetta implementations is that they MUST be inalterable: once a client has requested and received a block identified by a specific BlockIndentifier, all future calls for that same BlockIdentifier must return the same block contents.
StacksMicroblock contain an array of Transactions that occurred at a particular BlockIdentifier.
Transactions contain an array of Operations that are attributable to the same TransactionIdentifier.
Extra data for Transaction
Extra event data for Transaction
An account may have state specific to a contract address (ERC-20 token) and/or a stake (delegated balance). The sub_account_identifier should specify which state (if applicable) an account instantiation refers to.
The timestamp of the block in milliseconds since the Unix Epoch. The timestamp is stored in milliseconds because some blockchains produce blocks more often than once a second.
The transaction_identifier uniquely identifies a transaction in a particular network and block or in the mempool.

Enums