Skip to content

Documentation / @cashconnect-js/templates-dev / blockchain/types

BlockchainCallback() ​

ts
type BlockchainCallback<Payload> = (id, payload?) => void;

Defined in: packages/templates-dev/src/blockchain/types.ts:9

Type Parameters ​

Type ParameterDefault type
Payloadundefined

Parameters ​

ParameterType
idstring
payload?Payload

Returns ​

void


BlockchainUnsubscribeCallback() ​

ts
type BlockchainUnsubscribeCallback = () => Promise<boolean>;

Defined in: packages/templates-dev/src/blockchain/types.ts:16

Returns ​

Promise<boolean>


BlockchainTransaction ​

ts
type BlockchainTransaction = object;

Defined in: packages/templates-dev/src/blockchain/types.ts:18

Properties ​

hash ​

ts
hash: TransactionHash;

Defined in: packages/templates-dev/src/blockchain/types.ts:19

height ​

ts
height: number;

Defined in: packages/templates-dev/src/blockchain/types.ts:20

transaction ​

ts
transaction: Transaction;

Defined in: packages/templates-dev/src/blockchain/types.ts:21


BlockchainTransactions ​

ts
type BlockchainTransactions = ExtMap<BlockchainTransaction>;

Defined in: packages/templates-dev/src/blockchain/types.ts:26


BlockchainUTXO ​

ts
type BlockchainUTXO = object;

Defined in: packages/templates-dev/src/blockchain/types.ts:33

Properties ​

height ​

ts
height: number;

Defined in: packages/templates-dev/src/blockchain/types.ts:34

utxo ​

ts
utxo: UTXO;

Defined in: packages/templates-dev/src/blockchain/types.ts:35


BlockchainUTXOs ​

ts
type BlockchainUTXOs = ExtMap<BlockchainUTXO>;

Defined in: packages/templates-dev/src/blockchain/types.ts:40


AddressStatusPayload ​

ts
type AddressStatusPayload = object;

Defined in: packages/templates-dev/src/blockchain/types.ts:43

Properties ​

type ​

ts
type: "address-status";

Defined in: packages/templates-dev/src/blockchain/types.ts:44

status ​

ts
status: string | null;

Defined in: packages/templates-dev/src/blockchain/types.ts:45


BlockHeightPayload ​

ts
type BlockHeightPayload = object;

Defined in: packages/templates-dev/src/blockchain/types.ts:48

Properties ​

type ​

ts
type: "block-height";

Defined in: packages/templates-dev/src/blockchain/types.ts:49

height ​

ts
height: number | null;

Defined in: packages/templates-dev/src/blockchain/types.ts:50


BlockchainChainTip ​

ts
type BlockchainChainTip = object;

Defined in: packages/templates-dev/src/blockchain/types.ts:53

Properties ​

height ​

ts
height: number;

Defined in: packages/templates-dev/src/blockchain/types.ts:54

blockHeader ​

ts
blockHeader: BlockHeader;

Defined in: packages/templates-dev/src/blockchain/types.ts:55


BroadcastOpts ​

Defined in: packages/templates-dev/src/blockchain/types.ts:59

Properties ​

PropertyTypeDefined in
timeoutMsnumberpackages/templates-dev/src/blockchain/types.ts:60
waitUntilSeenbooleanpackages/templates-dev/src/blockchain/types.ts:61