Type Declaration
quoteSwap()
Parameters
options
AccountQuoteSwapOptions
Configuration options for creating the swap quote.
Returns
Promise<AccountQuoteSwapResult>
A promise that resolves to the swap quote or a response indicating that liquidity is unavailable.
Example
sendTransaction()
Parameters
options
Omit<SendTransactionOptions, "address">
Configuration options for sending the transaction.
Returns
Promise<TransactionResult>
A promise that resolves to the transaction hash.
Examples
Sending an RLP-encoded transactionswap()
Parameters
options
AccountSwapOptions
Configuration options for the swap.
Returns
Promise<AccountSwapResult>
A promise that resolves to the transaction hash.
Throws
If liquidity is not available when using inline options.Examples
transfer()
Parameters
options
TransferOptions
The options for the transfer.
Returns
Promise<{
transactionHash: Hex;
}>
An object containing the transaction hash.
Examples
useSpendPermission()
Parameters
options
UseSpendPermissionOptions
Configuration options for using the spend permission.
Returns
Promise<TransactionResult>
A promise that resolves to the transaction result.