WDK logoWDK documentation

API Reference

Complete API documentation for @tetherto/wdk-wallet-spark

API Reference

Table of Contents

ClassDescriptionMethods
WalletManagerSparkExtends @tetherto/wdk-wallet.Constructor, Methods, Properties
WalletAccountReadOnlySparkExtends @tetherto/wdk-wallet.Constructor, Methods, Properties
WalletAccountSparkExtends @tetherto/wdk-wallet-spark.Constructor, Methods, Properties

WalletManagerSpark

Extends @tetherto/wdk-wallet

Constructor

new WalletManagerSpark(seed, config?)
Parameters
  • seed (string | Uint8Array<ArrayBufferLike>): The wallet's BIP-39 seed phrase.
  • config (SparkWalletConfig, optional): The configuration object.
Source

src/wallet-manager-spark.js#L30

Methods

MethodDescriptionReturnsThrows
dispose()Disposes all the wallet accounts, erasing their private keys from the memory.void-
getAccount(index)Returns the wallet account at a specific index (see BIP-44).Promise<WalletAccountSpark>-
getAccountByPath(path)Returns the wallet account at a specific BIP-44 derivation path.Promise<WalletAccountSpark>-
getFeeRates()Returns the current fee rates.Promise<FeeRates>-
(static) getRandomSeedPhrase(wordCount)Returns a random BIP-39 seed phrase.string-
(static) isValidSeedPhrase(seedPhrase)Checks if a seed phrase is valid.boolean-

dispose()

Disposes all the wallet accounts, erasing their private keys from the memory.

Returns

void

getAccount(index)

Returns the wallet account at a specific index (see BIP-44).

Parameters
  • index (number): The index of the account to get (default: 0).
Returns

Promise<WalletAccountSpark> - The account.

Example
// Returns the account with derivation path m/44'/998'/0'/0/1
const account = await wallet.getAccount(1);
Source

src/wallet-manager-spark.js#L43

getAccountByPath(path)

Returns the wallet account at a specific BIP-44 derivation path.

Parameters
  • path (string): The derivation path (e.g. "0'/0/0").
Returns

Promise<WalletAccountSpark> - The account.

Source

src/wallet-manager-spark.js#L59

getFeeRates()

Returns the current fee rates.

Returns

Promise<FeeRates> - The fee rates (in satoshis).

Source

src/wallet-manager-spark.js#L68

getRandomSeedPhrase(wordCount) (static)

Returns a random BIP-39 seed phrase.

Parameters
  • wordCount (12 | unknown, optional): The number of words in the seed phrase.
Returns

string - The seed phrase.

isValidSeedPhrase(seedPhrase) (static)

Checks if a seed phrase is valid.

Parameters
  • seedPhrase (string): The seed phrase.
Returns

boolean - True if the seed phrase is valid.

Properties

PropertyTypeDescription
seedUint8ArrayThe seed phrase of the wallet.

WalletAccountReadOnlySpark

Extends @tetherto/wdk-wallet

Constructor

new WalletAccountReadOnlySpark(address, config?)
Parameters
  • address (string): The account's address.
  • config (SparkWalletConfig, optional): The configuration object.
Source

src/wallet-account-read-only-spark.js#L70

Methods

MethodDescriptionReturnsThrows
getAddress()Returns the account's address.Promise<string>-
getBalance()Returns the account's available (non-pending) bitcoin balance.Promise<bigint>-
getIdentityKey()Returns the account's identity public key.Promise<string>-
getSparkInvoices(params)Queries the status of Spark invoices.Promise<object>-
getStaticDepositAddresses()Returns all existing static deposit addresses for the account.Promise<DepositAddressQueryResult[]>-
getTokenBalance(tokenAddress)Returns the account balance for a specific token.Promise<bigint>-
getTransactionReceipt(hash)Returns a Spark transfer by its ID. Only returns Spark transfers, not on-chain Bitcoin transactions.Promise<Transfer>-
getTransfers(options)Returns the Spark transfer history of the account. Only returns Spark transfers, not on-chain Bitcoin transactions.Promise<Transfer[]>-
getUnusedDepositAddresses(options)Returns unused single-use deposit addresses for the account.Promise<object>-
getUtxosForDepositAddress(options)Returns confirmed UTXOs for a specific deposit address.Promise<object>-
quoteSendTransaction(tx)Quotes the costs of a send transaction operation.Promise<Omit<TransactionResult, "hash">>-
quoteTransfer(options)Quotes the costs of a transfer operation.Promise<Omit<TransferResult, "hash">>-
verify(message, signature)Verifies a message's signature.Promise<boolean>-

getAddress()

Returns the account's address.

Returns

Promise<string> - The account's address.

getBalance()

Returns the account's available (non-pending) bitcoin balance.

Returns

Promise<bigint> - The bitcoin balance (in satoshis).

Source

src/wallet-account-read-only-spark.js#L111

getIdentityKey()

Returns the account's identity public key.

Returns

Promise<string> - The identity public key (hex-encoded).

Source

src/wallet-account-read-only-spark.js#L170

getSparkInvoices(params)

Queries the status of Spark invoices.

Parameters
Returns

Promise<object> - The invoice statuses.

Source

src/wallet-account-read-only-spark.js#L274

getStaticDepositAddresses()

Returns all existing static deposit addresses for the account.

Returns

Promise<DepositAddressQueryResult[]> - The static deposit addresses.

Source

src/wallet-account-read-only-spark.js#L253

getTokenBalance(tokenAddress)

Returns the account balance for a specific token.

Parameters
  • tokenAddress (string): The token identifier (Bech32m token identifier, e.g., btkn1...).
Returns

Promise<bigint> - The token balance (in base unit).

Source

src/wallet-account-read-only-spark.js#L126

getTransactionReceipt(hash)

Returns a Spark transfer by its ID. Only returns Spark transfers, not on-chain Bitcoin transactions.

Parameters
  • hash (string): The Spark transfer's ID.
Returns

Promise<Transfer> - The Spark transfer, or null if not found.

Source

src/wallet-account-read-only-spark.js#L160

getTransfers(options)

Returns the Spark transfer history of the account. Only returns Spark transfers, not on-chain Bitcoin transactions.

Parameters
Returns

Promise<Transfer[]> - The Spark transfers.

Source

src/wallet-account-read-only-spark.js#L200

getUnusedDepositAddresses(options)

Returns unused single-use deposit addresses for the account.

Parameters
Returns

Promise<object> - The unused deposit addresses.

Source

src/wallet-account-read-only-spark.js#L240

getUtxosForDepositAddress(options)

Returns confirmed UTXOs for a specific deposit address.

Parameters
Returns

Promise<object> - The UTXOs.

Source

src/wallet-account-read-only-spark.js#L264

quoteSendTransaction(tx)

Quotes the costs of a send transaction operation.

Parameters
Returns

Promise<Omit<TransactionResult, "hash">> - The transaction's quotes.

Source

src/wallet-account-read-only-spark.js#L140

quoteTransfer(options)

Quotes the costs of a transfer operation.

Parameters
Returns

Promise<Omit<TransferResult, "hash">> - The transfer's quotes.

Source

src/wallet-account-read-only-spark.js#L150

verify(message, signature)

Verifies a message's signature.

Parameters
  • message (string): The original message.
  • signature (string): The signature to verify (hex-encoded, DER or compact).
Returns

Promise<boolean> - True if the signature is valid.

Source

src/wallet-account-read-only-spark.js#L184

Properties

PropertyTypeDescription
_addressstringThe account's address.

WalletAccountSpark

Extends @tetherto/wdk-wallet-spark

Constructor

new WalletAccountSpark(wallet, config?)
Parameters
  • wallet (SparkWalletNodeJS): The underlying Spark wallet instance.
  • config (SparkWalletConfig, optional): The configuration object.
Source

src/wallet-account-spark.js#L93

Methods

MethodDescriptionReturnsThrows
claimDeposit(txId)Claims a deposit to the wallet.Promise<WalletLeaf[]>-
claimStaticDeposit(txId)Claims a static deposit to the wallet.Promise<WalletLeaf[]>-
cleanupConnections()Cleans up and closes the connections with the spark blockchain.Promise<void>-
createLightningInvoice(options)Creates a Lightning invoice for receiving payments.Promise<LightningReceiveRequest>-
createSparkSatsInvoice(options)Creates a Spark invoice for receiving a sats payment.Promise<unknown>-
createSparkTokensInvoice(options)Creates a Spark invoice for receiving a token payment.Promise<unknown>-
dispose()Disposes the wallet account, erasing its private keys from the memory.void-
getAddress()Returns the account's Spark address.Promise<unknown>-
getBalance()Returns the account's total (available + locked in outgoing transfer) bitcoin balance.Promise<bigint>-
getIdentityKey()Returns the account's identity public key.Promise<string>-
getLightningReceiveRequest(invoiceId)Gets a Lightning receive request by id.Promise<LightningReceiveRequest>-
getLightningSendRequest(requestId)Gets a Lightning send request by id.Promise<LightningSendRequest>-
getSingleUseDepositAddress()Generates a single-use deposit address for bitcoin deposits from layer 1. Once you deposit funds to this address, it cannot be used again.Promise<string>-
getSparkInvoices(params)Queries the status of Spark invoices.Promise<object>-
getStaticDepositAddress()Returns a static deposit address for Bitcoin deposits from layer 1, generating one if it does not already exist. The address is reusable.Promise<string>-
getStaticDepositAddresses()Returns all existing static deposit addresses for the account.Promise<DepositAddressQueryResult[]>-
getTokenBalance(tokenAddress)Returns the account balance for a specific token.Promise<bigint>-
getTransactionReceipt(hash)Returns a Spark transfer by its ID. Only returns Spark transfers, not on-chain Bitcoin transactions.Promise<Transfer>-
getTransfers(options)Returns the Spark transfer history of the account. Only returns Spark transfers, not on-chain Bitcoin transactions.Promise<Transfer[]>-
getUnusedDepositAddresses(options)Returns unused single-use deposit addresses for the account.Promise<object>-
getUtxosForDepositAddress(options)Returns confirmed UTXOs for a specific deposit address.Promise<object>-
payLightningInvoice(options)Pays a Lightning invoice.Promise<LightningSendRequest>-
paySparkInvoice(invoices)Fulfills one or more Spark invoices by paying them.Promise<FulfillSparkInvoiceResponse>-
quotePayLightningInvoice(options)Gets fee estimate for sending Lightning payments.Promise<bigint>-
quoteSendTransaction(tx)Quotes the costs of a send transaction operation.Promise<Omit<TransactionResult, "hash">>-
quoteTransfer(options)Quotes the costs of a transfer operation.Promise<Omit<TransferResult, "hash">>-
quoteWithdraw(options)Gets a fee quote for withdrawing funds from Spark cooperatively to an on-chain Bitcoin address.Promise<CoopExitFeeQuote>-
refundStaticDeposit(options)Refunds a deposit made to a static deposit address back to a specified Bitcoin address. The minimum fee is 300 satoshis.Promise<string>-
sendTransaction(tx)Sends a transaction.Promise<TransactionResult>-
sign(message)Signs a message.Promise<string>-
signTransaction(tx)Signs a transaction. Not supported on spark: transfers are signed collaboratively with the spark operators via a FROST / Statechain protocol, so a signed payload cannot be produced locally and broadcast independently. Use sendTransaction instead.Promise<never>-
syncWalletBalance()Reconciles the wallet's internal state with the server and waits for any triggered optimisation to complete.Promise<void>-
toReadOnlyAccount()Returns a read-only copy of the account.Promise<WalletAccountReadOnlySpark>-
transfer(options)Transfers a token to another address.Promise<TransferResult>-
verify(message, signature)Verifies a message's signature.Promise<boolean>-
withdraw(options)Initiates a withdrawal to move funds from the Spark network to an on-chain Bitcoin address.Promise<CoopExitRequest>-
(static) at(seed, index, config)Creates a new spark wallet account.Promise<WalletAccountSpark>-

claimDeposit(txId)

Claims a deposit to the wallet.

Parameters
  • txId (string): The transaction id of the deposit.
Returns

Promise<WalletLeaf[]> - The nodes resulting from the deposit.

Source

src/wallet-account-spark.js#L271

claimStaticDeposit(txId)

Claims a static deposit to the wallet.

Parameters
  • txId (string): The transaction id of the deposit.
Returns

Promise<WalletLeaf[]> - The nodes resulting from the deposit.

Source

src/wallet-account-spark.js#L281

cleanupConnections()

Cleans up and closes the connections with the spark blockchain.

Returns

Promise<void>

Source

src/wallet-account-spark.js#L456

createLightningInvoice(options)

Creates a Lightning invoice for receiving payments.

Parameters
Returns

Promise<LightningReceiveRequest> - BOLT11 encoded invoice.

Source

src/wallet-account-spark.js#L337

createSparkSatsInvoice(options)

Creates a Spark invoice for receiving a sats payment.

Parameters
Returns

Promise<unknown> - A Spark invoice that can be paid by another Spark wallet.

Source

src/wallet-account-spark.js#L397

createSparkTokensInvoice(options)

Creates a Spark invoice for receiving a token payment.

Parameters
Returns

Promise<unknown> - A Spark invoice that can be paid by another Spark wallet.

Source

src/wallet-account-spark.js#L407

dispose()

Disposes the wallet account, erasing its private keys from the memory.

Returns

void

Source

src/wallet-account-spark.js#L465

getAddress()

Returns the account's Spark address.

Returns

Promise<unknown> - The account's Spark address.

Source

src/wallet-account-spark.js#L162

getBalance()

Returns the account's total (available + locked in outgoing transfer) bitcoin balance.

Returns

Promise<bigint> - The bitcoin balance (in satoshis).

Source

src/wallet-account-spark.js#L171

getIdentityKey()

Returns the account's identity public key.

Returns

Promise<string> - The identity public key (hex-encoded).

Source

src/wallet-account-read-only-spark.js#L170

getLightningReceiveRequest(invoiceId)

Gets a Lightning receive request by id.

Parameters
  • invoiceId (string): The id of the Lightning receive request.
Returns

Promise<LightningReceiveRequest> - The Lightning receive request.

Source

src/wallet-account-spark.js#L347

getLightningSendRequest(requestId)

Gets a Lightning send request by id.

Parameters
  • requestId (string): The id of the Lightning send request.
Returns

Promise<LightningSendRequest> - The Lightning send request.

Source

src/wallet-account-spark.js#L357

getSingleUseDepositAddress()

Generates a single-use deposit address for bitcoin deposits from layer 1. Once you deposit funds to this address, it cannot be used again.

Returns

Promise<string> - The single-use deposit address.

Source

src/wallet-account-spark.js#L251

getSparkInvoices(params)

Queries the status of Spark invoices.

Parameters
Returns

Promise<object> - The invoice statuses.

Source

src/wallet-account-read-only-spark.js#L274

getStaticDepositAddress()

Returns a static deposit address for Bitcoin deposits from layer 1, generating one if it does not already exist. The address is reusable.

Returns

Promise<string> - The static deposit address.

Source

src/wallet-account-spark.js#L261

getStaticDepositAddresses()

Returns all existing static deposit addresses for the account.

Returns

Promise<DepositAddressQueryResult[]> - The static deposit addresses.

Source

src/wallet-account-read-only-spark.js#L253

getTokenBalance(tokenAddress)

Returns the account balance for a specific token.

Parameters
  • tokenAddress (string): The token identifier (Bech32m token identifier, e.g., btkn1...).
Returns

Promise<bigint> - The token balance (in base unit).

Source

src/wallet-account-read-only-spark.js#L126

getTransactionReceipt(hash)

Returns a Spark transfer by its ID. Only returns Spark transfers, not on-chain Bitcoin transactions.

Parameters
  • hash (string): The Spark transfer's ID.
Returns

Promise<Transfer> - The Spark transfer, or null if not found.

Source

src/wallet-account-read-only-spark.js#L160

getTransfers(options)

Returns the Spark transfer history of the account. Only returns Spark transfers, not on-chain Bitcoin transactions.

Parameters
Returns

Promise<Transfer[]> - The Spark transfers.

Source

src/wallet-account-read-only-spark.js#L200

getUnusedDepositAddresses(options)

Returns unused single-use deposit addresses for the account.

Parameters
Returns

Promise<object> - The unused deposit addresses.

Source

src/wallet-account-read-only-spark.js#L240

getUtxosForDepositAddress(options)

Returns confirmed UTXOs for a specific deposit address.

Parameters
Returns

Promise<object> - The UTXOs.

Source

src/wallet-account-read-only-spark.js#L264

payLightningInvoice(options)

Pays a Lightning invoice.

Parameters
Returns

Promise<LightningSendRequest> - The Lightning payment request details.

Source

src/wallet-account-spark.js#L367

paySparkInvoice(invoices)

Fulfills one or more Spark invoices by paying them.

Parameters
Returns

Promise<FulfillSparkInvoiceResponse> - Response containing transaction results and errors.

Source

src/wallet-account-spark.js#L417

quotePayLightningInvoice(options)

Gets fee estimate for sending Lightning payments.

Parameters
Returns

Promise<bigint> - Fee estimate for sending Lightning payments.

Source

src/wallet-account-spark.js#L386

quoteSendTransaction(tx)

Quotes the costs of a send transaction operation.

Parameters
Returns

Promise<Omit<TransactionResult, "hash">> - The transaction's quotes.

Source

src/wallet-account-read-only-spark.js#L140

quoteTransfer(options)

Quotes the costs of a transfer operation.

Parameters
Returns

Promise<Omit<TransferResult, "hash">> - The transfer's quotes.

Source

src/wallet-account-read-only-spark.js#L150

quoteWithdraw(options)

Gets a fee quote for withdrawing funds from Spark cooperatively to an on-chain Bitcoin address.

Parameters
Returns

Promise<CoopExitFeeQuote> - The withdrawal fee quote.

Source

src/wallet-account-spark.js#L308

refundStaticDeposit(options)

Refunds a deposit made to a static deposit address back to a specified Bitcoin address. The minimum fee is 300 satoshis.

Parameters
Returns

Promise<string> - The refund transaction as a hex string that needs to be broadcast.

Source

src/wallet-account-spark.js#L298

sendTransaction(tx)

Sends a transaction.

Parameters
Returns

Promise<TransactionResult> - The transaction's result.

Source

src/wallet-account-spark.js#L211

sign(message)

Signs a message.

Parameters
  • message (string): The message to sign.
Returns

Promise<string> - The message's signature.

Source

src/wallet-account-spark.js#L187

signTransaction(tx)

Signs a transaction.

Not supported on spark: transfers are signed collaboratively with the spark operators via a FROST / Statechain protocol, so a signed payload cannot be produced locally and broadcast independently. Use sendTransaction instead.

Parameters
Returns

Promise<never> - Never resolves; always throws.

Source

src/wallet-account-spark.js#L201

syncWalletBalance()

Reconciles the wallet's internal state with the server and waits for any triggered optimisation to complete.

Returns

Promise<void>

Source

src/wallet-account-spark.js#L427

toReadOnlyAccount()

Returns a read-only copy of the account.

Returns

Promise<WalletAccountReadOnlySpark> - The read-only account.

Source

src/wallet-account-spark.js#L442

transfer(options)

Transfers a token to another address.

Parameters
Returns

Promise<TransferResult> - The transfer's result.

Source

src/wallet-account-spark.js#L235

verify(message, signature)

Verifies a message's signature.

Parameters
  • message (string): The original message.
  • signature (string): The signature to verify (hex-encoded, DER or compact).
Returns

Promise<boolean> - True if the signature is valid.

Source

src/wallet-account-read-only-spark.js#L184

withdraw(options)

Initiates a withdrawal to move funds from the Spark network to an on-chain Bitcoin address.

Parameters
Returns

Promise<CoopExitRequest> - The withdrawal request details, or null/undefined if the request cannot be completed.

Source

src/wallet-account-spark.js#L318

at(seed, index, config) (static)

Creates a new spark wallet account.

Parameters
  • seed (string | Uint8Array<ArrayBufferLike>): The wallet's BIP-39 seed phrase.
  • index (number): The index of the account.
  • config (SparkWalletConfig, optional): The configuration object.
Returns

Promise<WalletAccountSpark> - The wallet account.

Source

src/wallet-account-spark.js#L111

Properties

PropertyTypeDescription
_addressstringThe account's address.
indexnumberThe derivation path's index of this account.
keyPairKeyPairThe account's key pair.
pathstringThe derivation path of this account (see BIP-44).

Types

CreateSatsInvoiceOptions

PropertyTypeDescription
amount?numberThe amount of sats to receive (optional for open invoices).
expiryTime?DateOptional expiry time for the invoice.
memo?stringOptional memo/description for the payment.
senderSparkAddress?unknownOptional Spark address of the expected sender.
Source

src/wallet-account-spark.js#L63

CreateTokensInvoiceOptions

PropertyTypeDescription
amount?bigintThe amount of tokens to receive.
expiryTime?DateOptional expiry time for the invoice.
memo?stringOptional memo/description for the payment.
senderSparkAddress?unknownOptional Spark address of the expected sender.
tokenIdentifier?stringThe Bech32m token identifier (e.g., btkn1...).
Source

src/wallet-account-spark.js#L71

GetTransfersOptions

PropertyTypeDescription
direction?`"incoming"unknown
limit?numberThe number of transfers to return (default: 10).
skip?numberThe number of transfers to skip (default: 0).
Source

src/wallet-account-read-only-spark.js#L55

QuoteWithdrawOptions

PropertyTypeDescription
amountSatsnumberThe amount in satoshis to withdraw.
withdrawalAddressstringThe Bitcoin address where the funds should be sent.
Source

src/wallet-account-spark.js#L49

RefundStaticDepositOptions

PropertyTypeDescription
depositTransactionIdstringThe transaction ID of the original deposit.
destinationAddressstringThe Bitcoin address to send the refund to.
outputIndexnumberThe output index of the deposit.
satsPerVbyteFeenumberThe fee rate in sats per vbyte for the refund transaction.
Source

src/wallet-account-spark.js#L55

SparkInvoice

PropertyTypeDescription
amount?bigintAmount to pay (required for invoices without encoded amount).
invoiceunknownThe Spark invoice to pay.
Source

src/wallet-account-spark.js#L80

SparkTransaction

PropertyTypeDescription
tostringThe transaction's recipient.
value`numberbigint`
Source

src/wallet-account-read-only-spark.js#L42

SparkWalletConfig

PropertyTypeDescription
network?`"MAINNET"unknown
sparkscan?SparkScanConfigOptional sparkscan client config
syncAndRetry?booleanWhen true, failed sends and Lightning payments will automatically sync wallet state and retry once (default: false).
Source

src/wallet-account-read-only-spark.js#L48

On this page

Table of Contents
WalletManagerSpark
Constructor
Parameters
Source
Methods
dispose()
Returns
getAccount(index)
Parameters
Returns
Example
Source
getAccountByPath(path)
Parameters
Returns
Source
getFeeRates()
Returns
Source
getRandomSeedPhrase(wordCount) (static)
Parameters
Returns
isValidSeedPhrase(seedPhrase) (static)
Parameters
Returns
Properties
WalletAccountReadOnlySpark
Constructor
Parameters
Source
Methods
getAddress()
Returns
getBalance()
Returns
Source
getIdentityKey()
Returns
Source
getSparkInvoices(params)
Parameters
Returns
Source
getStaticDepositAddresses()
Returns
Source
getTokenBalance(tokenAddress)
Parameters
Returns
Source
getTransactionReceipt(hash)
Parameters
Returns
Source
getTransfers(options)
Parameters
Returns
Source
getUnusedDepositAddresses(options)
Parameters
Returns
Source
getUtxosForDepositAddress(options)
Parameters
Returns
Source
quoteSendTransaction(tx)
Parameters
Returns
Source
quoteTransfer(options)
Parameters
Returns
Source
verify(message, signature)
Parameters
Returns
Source
Properties
WalletAccountSpark
Constructor
Parameters
Source
Methods
claimDeposit(txId)
Parameters
Returns
Source
claimStaticDeposit(txId)
Parameters
Returns
Source
cleanupConnections()
Returns
Source
createLightningInvoice(options)
Parameters
Returns
Source
createSparkSatsInvoice(options)
Parameters
Returns
Source
createSparkTokensInvoice(options)
Parameters
Returns
Source
dispose()
Returns
Source
getAddress()
Returns
Source
getBalance()
Returns
Source
getIdentityKey()
Returns
Source
getLightningReceiveRequest(invoiceId)
Parameters
Returns
Source
getLightningSendRequest(requestId)
Parameters
Returns
Source
getSingleUseDepositAddress()
Returns
Source
getSparkInvoices(params)
Parameters
Returns
Source
getStaticDepositAddress()
Returns
Source
getStaticDepositAddresses()
Returns
Source
getTokenBalance(tokenAddress)
Parameters
Returns
Source
getTransactionReceipt(hash)
Parameters
Returns
Source
getTransfers(options)
Parameters
Returns
Source
getUnusedDepositAddresses(options)
Parameters
Returns
Source
getUtxosForDepositAddress(options)
Parameters
Returns
Source
payLightningInvoice(options)
Parameters
Returns
Source
paySparkInvoice(invoices)
Parameters
Returns
Source
quotePayLightningInvoice(options)
Parameters
Returns
Source
quoteSendTransaction(tx)
Parameters
Returns
Source
quoteTransfer(options)
Parameters
Returns
Source
quoteWithdraw(options)
Parameters
Returns
Source
refundStaticDeposit(options)
Parameters
Returns
Source
sendTransaction(tx)
Parameters
Returns
Source
sign(message)
Parameters
Returns
Source
signTransaction(tx)
Parameters
Returns
Source
syncWalletBalance()
Returns
Source
toReadOnlyAccount()
Returns
Source
transfer(options)
Parameters
Returns
Source
verify(message, signature)
Parameters
Returns
Source
withdraw(options)
Parameters
Returns
Source
at(seed, index, config) (static)
Parameters
Returns
Source
Properties
Types
CreateSatsInvoiceOptions
Source
CreateTokensInvoiceOptions
Source
GetTransfersOptions
Source
QuoteWithdrawOptions
Source
RefundStaticDepositOptions
Source
SparkInvoice
Source
SparkTransaction
Source
SparkWalletConfig
Source