Protected
chainProtected
dataProtected
explorerProtected
feeProtected
networkProtected
phraseProtected
rootBuilds a Dogecoin transaction (PSBT).
Builds a Partially Signed Bitcoin Transaction (PSBT) with the specified parameters.
The transaction build options including sender, recipient, amount, memo, and fee rate.
A promise that resolves to the built PSBT and the unspent transaction outputs (UTXOs) used in the transaction.
This method is deprecated. Use the transfer
method instead.
Protected
compileAsynchronously creates transaction information for ledger sign.
Builds a transaction (PSBT) and prepares necessary information for ledger signing.
The parameters for creating transaction information.
A promise that resolves to the transaction information used for ledger sign.
Get the Dogecoin address.
Generates a Dogecoin address using the provided phrase and index.
The index of the address to retrieve. Default is 0.
The Dogecoin address.
Thrown if the index is less than zero.
Thrown if the phrase is not provided.
Thrown if failed to create the address from the phrase.
Get the current address. Asynchronous version of getAddress method. Generates a network-specific key-pair by first converting the buffer to a Wallet-Import-Format (WIF) The address is then decoded into type P2WPKH and returned.
The current address.
Thrown if phrase has not been set before.
Thrown if failed creating account from phrase.
Private
getPrivate
Get private key.
Private function to get keyPair from the this.phrase
The phrase to be used for generating privkey
The privkey generated from the given phrase
Throws an error if failed creating Doge keys from the given phrase
Protected
getCalculates the transaction fee based on the provided UTXOs, fee rate, and optional data.
The unspent transaction outputs (UTXOs) used as inputs.
The fee rate for the transaction.
The compiled memo (optional).
The calculated transaction fee.
Protected
getProtected
getAsynchronously prepares a transaction for transfer.
Builds a transaction (PSBT) with the specified transfer options.
The transfer options including sender address, fee rate, and optional flag for spending pending UTXOs.
A promise that resolves to the raw unsigned transaction (PSBT).
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
thornodeAPIGetAsynchronously transfers Dogecoin.
Builds, signs, and broadcasts a Dogecoin transaction with the specified parameters.
The transfer parameters including transaction details and optional fee rate.
A promise that resolves to the transaction hash once the transfer is completed.
Generated using TypeDoc
Custom Dogecoin client extending UTXOClient. Implements methods for Dogecoin-specific functionality.