ZcashBlockbookClient
Defined in: wallet-zcash/src/blockbook.ts:24
Minimal chain-data client every transport implements. Values in zatoshis.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ZcashBlockbookClient(
config,fetchFn?,timeoutMs?):ZcashBlockbookClient
Defined in: wallet-zcash/src/blockbook.ts:30
Parameters
Section titled “Parameters”config
Section titled “config”headers?
Section titled “headers?”Record<string, string>
string
fetchFn?
Section titled “fetchFn?”{(input, init?): Promise<Response>; (input, init?): Promise<Response>; }
timeoutMs?
Section titled “timeoutMs?”number = DEFAULT_TIMEOUT_MS
Returns
Section titled “Returns”ZcashBlockbookClient
Methods
Section titled “Methods”broadcast()
Section titled “broadcast()”broadcast(
rawTx):Promise<string>
Defined in: wallet-zcash/src/blockbook.ts:99
Broadcast raw hex; returns the txid.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<string>
Implementation of
Section titled “Implementation of”close()
Section titled “close()”close():
Promise<void>
Defined in: wallet-zcash/src/blockbook.ts:38
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”connect()
Section titled “connect()”connect():
Promise<void>
Defined in: wallet-zcash/src/blockbook.ts:37
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”getBalance()
Section titled “getBalance()”getBalance(
address):Promise<{confirmed:bigint;unconfirmed:bigint; }>
Defined in: wallet-zcash/src/blockbook.ts:55
Parameters
Section titled “Parameters”address
Section titled “address”string
Returns
Section titled “Returns”Promise<{ confirmed: bigint; unconfirmed: bigint; }>
Implementation of
Section titled “Implementation of”getBlockHeight()
Section titled “getBlockHeight()”getBlockHeight():
Promise<number>
Defined in: wallet-zcash/src/blockbook.ts:106
Current chain tip height (expiry height, anti-fee-sniping lock time, consensus branch selection).
Returns
Section titled “Returns”Promise<number>
Implementation of
Section titled “Implementation of”getOutput()
Section titled “getOutput()”getOutput(
txid,vout):Promise<SpentOutput|undefined>
Defined in: wallet-zcash/src/blockbook.ts:83
Value + scriptPubKey of one output of an existing transaction (what signing a spend of it needs).
Parameters
Section titled “Parameters”string
number
Returns
Section titled “Returns”Promise<SpentOutput | undefined>
Implementation of
Section titled “Implementation of”getTransaction()
Section titled “getTransaction()”getTransaction(
txid):Promise<string>
Defined in: wallet-zcash/src/blockbook.ts:77
Raw transaction hex (any version — only used to read prevouts and for receipts).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<string>
Implementation of
Section titled “Implementation of”getTransactionDetails()
Section titled “getTransactionDetails()”getTransactionDetails(
txid):Promise<BlockbookTxDetails|undefined>
Defined in: wallet-zcash/src/blockbook.ts:70
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<BlockbookTxDetails | undefined>
getTransactionInfo()
Section titled “getTransactionInfo()”getTransactionInfo(
txid):Promise<ZcashTxInfo|undefined>
Defined in: wallet-zcash/src/blockbook.ts:90
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<ZcashTxInfo | undefined>
Implementation of
Section titled “Implementation of”ZcashClient.getTransactionInfo
listUnspent()
Section titled “listUnspent()”listUnspent(
address):Promise<Utxo[]>
Defined in: wallet-zcash/src/blockbook.ts:60
Parameters
Section titled “Parameters”address
Section titled “address”string
Returns
Section titled “Returns”Promise<Utxo[]>