Protected
chainProtected
dataProtected
explorerProtected
feeProtected
networkPrivate
Optional
nodePrivate
nodeProtected
phraseProtected
rootBuilds a Litecoin (LTC) transaction.
The transaction build options.
A promise that resolves to the PSBT (Partially Signed Bitcoin Transaction) and UTXOs (Unspent Transaction Outputs).
This function will eventually be removed. Use prepareTx
instead.
Protected
compile[DEPRECATED] Retrieves the address at the specified index.
The index of the address.
The address at the specified index.
Use getAddressAsync
instead.
Thrown when the index is less than zero.
Thrown when the phrase has not been set.
Thrown when the address cannot be defined.
Retrieves the current address asynchronously.
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.
A promise that resolves to the current address
Thrown if phrase has not been set before.
Thrown if failed creating account from phrase.
Protected
getCalculates the transaction fee based on the provided UTXOs, fee rate, and optional compiled memo.
The The UTXOs used as inputs in the transaction.
The fee rate.
The compiled memo (Optional).
The calculated fee amount.
Protected
getProtected
getPrivate
getPrivate
[PRIVATE] Retrieves the private key.
Private function to get keyPair from the this.phrase
The phrase used to generate the private key.
The privkey generated from the given phrase
Throws an error if failed creating LTC keys from the given phrase
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 Litecoin client.