Expand description
Types used in the interface of the Bitcoin Canister.
Structs§
- Config
- The config of the canister.
- Fees
- GetBalance
Request - GetBlock
Headers Request - A request for getting the block headers from a given height.
- GetBlock
Headers Response - The response returned for a request for getting the block headers from a given height.
- GetCurrent
FeePercentiles Request - A request for getting the current fee percentiles.
- GetUtxos
Request - A request for getting the UTXOs for a given address.
- GetUtxos
Response - The response returned for a request to get the UTXOs of a given address.
- Init
Config - The config used to initialize the canister.
- OutPoint
- A reference to a transaction output.
- Send
Transaction Request - SetConfig
Request - A request to update the canister’s config.
- Txid
- Utxo
- An unspent transaction output.
Enums§
- Flag
- GetBalance
Error - GetBlock
Headers Error - Errors when processing a
get_block_headersrequest. - GetUtxos
Error - Errors when processing a
get_utxosrequest. - Network
- Network
InRequest - A network enum that allows both upper and lowercase variants. Supporting both variants allows us to be compatible with the spec (lowercase) while not breaking current dapps that are using uppercase variants.
- Send
Transaction Error - Txid
From StrError - Utxos
Filter - A filter used when requesting UTXOs.
- Utxos
Filter InRequest - A UtxosFilter enum that allows both upper and lowercase variants. Supporting both variants allows us to be compatible with the spec (lowercase) while not breaking current dapps that are using uppercase variants.