Protected chainProtected dataProtected explorerProtected feeProtected networkProtected phraseProtected rootBuild a BCH transaction.
The transaction build options.
A promise that resolves with the transaction builder, UTXOs, and inputs.
Protected compileGet the current address.
Generates a network-specific key-pair and returns the corresponding address.
The index of the address to retrieve.
The current address.
Thrown if the phrase has not been set before.
Thrown if failed to create account from phrase.
Get the current address asynchronously. Generates a network-specific key-pair and returns the corresponding address.
A promise that resolves with the current address.
Thrown if the phrase has not been set before.
Thrown if failed to create account from phrase.
Private getBCHKeysPrivate function to get BCH keys. Generates a key pair from the provided phrase and derivation path.
The phrase used for generating the private key.
The BIP44 derivation path.
The key pair generated from the phrase and derivation path.
Thrown if an invalid phrase is provided.
Protected getProtected getProtected getPrepare a BCH transaction.
The transaction preparation options.
A promise that resolves with the prepared transaction and UTXOs.
Protected roundBroadcasts a transaction hex using a round-robin approach across multiple data providers.
The transaction hex to broadcast.
The hash of the broadcasted transaction.
Throws an error if no provider is able to broadcast the transaction.
Protected roundProtected roundProtected roundRound-robin method to get transaction data from data providers. Throws error if no provider can get transaction data.
The transaction ID to get data for.
The transaction data.
Error If no provider is able to get transaction data.
Protected roundRound-robin method to get transactions from data providers. Throws error if no provider can get transactions.
The parameters for fetching transactions.
The transaction history.
Error If no provider is able to get transactions.
Protected roundRound-robin method to get unspent transactions from data providers. Throws error if no provider can get unspent transactions.
The address to get unspent transactions for.
Flag to indicate whether to get confirmed transactions only.
The unspent transactions.
Error If no provider is able to get unspent transactions.
Protected scanUTXOsProtected thornodeAPIGetGenerated using TypeDoc
Custom Bitcoin Cash client class.