Documentation / @cashconnect-js/templates-dev / blockchain/types
BlockchainCallback()
type BlockchainCallback<Payload> = (id, payload?) => void;Defined in: packages/templates-dev/src/blockchain/types.ts:9
Type Parameters
| Type Parameter | Default type |
|---|---|
Payload | undefined |
Parameters
| Parameter | Type |
|---|---|
id | string |
payload? | Payload |
Returns
void
BlockchainUnsubscribeCallback()
type BlockchainUnsubscribeCallback = () => Promise<boolean>;Defined in: packages/templates-dev/src/blockchain/types.ts:16
Returns
Promise<boolean>
BlockchainTransaction
type BlockchainTransaction = object;Defined in: packages/templates-dev/src/blockchain/types.ts:18
Properties
hash
hash: TransactionHash;Defined in: packages/templates-dev/src/blockchain/types.ts:19
height
height: number;Defined in: packages/templates-dev/src/blockchain/types.ts:20
transaction
transaction: Transaction;Defined in: packages/templates-dev/src/blockchain/types.ts:21
BlockchainTransactions
type BlockchainTransactions = ExtMap<BlockchainTransaction>;Defined in: packages/templates-dev/src/blockchain/types.ts:26
BlockchainUTXO
type BlockchainUTXO = object;Defined in: packages/templates-dev/src/blockchain/types.ts:33
Properties
height
height: number;Defined in: packages/templates-dev/src/blockchain/types.ts:34
utxo
utxo: UTXO;Defined in: packages/templates-dev/src/blockchain/types.ts:35
BlockchainUTXOs
type BlockchainUTXOs = ExtMap<BlockchainUTXO>;Defined in: packages/templates-dev/src/blockchain/types.ts:40
AddressStatusPayload
type AddressStatusPayload = object;Defined in: packages/templates-dev/src/blockchain/types.ts:43
Properties
type
type: "address-status";Defined in: packages/templates-dev/src/blockchain/types.ts:44
status
status: string | null;Defined in: packages/templates-dev/src/blockchain/types.ts:45
BlockHeightPayload
type BlockHeightPayload = object;Defined in: packages/templates-dev/src/blockchain/types.ts:48
Properties
type
type: "block-height";Defined in: packages/templates-dev/src/blockchain/types.ts:49
height
height: number | null;Defined in: packages/templates-dev/src/blockchain/types.ts:50
BlockchainChainTip
type BlockchainChainTip = object;Defined in: packages/templates-dev/src/blockchain/types.ts:53
Properties
height
height: number;Defined in: packages/templates-dev/src/blockchain/types.ts:54
blockHeader
blockHeader: BlockHeader;Defined in: packages/templates-dev/src/blockchain/types.ts:55
BroadcastOpts
Defined in: packages/templates-dev/src/blockchain/types.ts:59
Properties
| Property | Type | Defined in |
|---|---|---|
timeoutMs | number | packages/templates-dev/src/blockchain/types.ts:60 |
waitUntilSeen | boolean | packages/templates-dev/src/blockchain/types.ts:61 |