AccountQuoteSwapOptions
Configuration options for creating the swap quote.
Promise
<AccountQuoteSwapResult
>
A promise that resolves to the swap quote or a response indicating that liquidity is unavailable.
Omit
<SendTransactionOptions
, "address"
>
Configuration options for sending the transaction.
Promise
<TransactionResult
>
A promise that resolves to the transaction hash.
AccountSwapOptions
Configuration options for the swap.
Promise
<AccountSwapResult
>
A promise that resolves to the transaction hash.
TransferOptions
The options for the transfer.
Promise
<{
transactionHash
: Hex
;
}>
An object containing the transaction hash.
UseSpendPermissionOptions
Configuration options for using the spend permission.
Promise
<TransactionResult
>
A promise that resolves to the transaction result.
Property | Type | Description | Defined in |
---|---|---|---|
fund | (options : Omit <EvmFundOptions , "address" >) => Promise <FundOperationResult > | Funds an EVM account with the specified token amount. Example const fundOperation = await account.fund({ network: "base", token: "usdc", amount: 1000000n, }); | src/actions/evm/types.ts:126 |
listTokenBalances | (options : Omit <ListTokenBalancesOptions , "address" >) => Promise <ListTokenBalancesResult > | List the token balances of an account. Example lines const balances = await account.listTokenBalances({ network: "base-sepolia", }); | src/actions/evm/types.ts:58 |
quoteFund | (options : Omit <EvmQuoteFundOptions , "address" >) => Promise <EvmQuote > | Gets a quote to fund an EVM account. Example const quote = await account.quoteFund({ network: "base", token: "usdc", amount: 1000000n, }); | src/actions/evm/types.ts:103 |
requestFaucet | (options : Omit <RequestFaucetOptions , "address" >) => Promise <RequestFaucetResult > | Requests funds from an EVM faucet. Example const result = await account.requestFaucet({ network: "base-sepolia", token: "eth", }); | src/actions/evm/types.ts:80 |
WaitForFundOperationOptions
The options for the wait for fund operation.
Promise
<WaitForFundOperationResult
>
A promise that resolves to the completed transfer receipt containing details about the funding operation.
Omit
<GetUserOperationOptions
, "smartAccount"
>
Parameters for getting the user operation.
Promise
<UserOperation
>
A promise that resolves to the user operation.
SmartAccountQuoteSwapOptions
Configuration options for creating the swap quote.
Promise
<SmartAccountQuoteSwapResult
>
A promise that resolves to the swap quote or a response indicating that liquidity is unavailable.
Omit
<SendUserOperationOptions
<unknown
[]>, "smartAccount"
>
Parameters for sending the user operation.
Promise
<SendUserOperationReturnType
>
A promise that resolves to an object containing the smart account address,
the user operation hash, and the status of the user operation.
Omit
<SignTypedDataOptions
, "address"
> & {
network
: KnownEvmNetworks
;
}
Configuration options for signing the typed data.
Promise
<Hex
>
A promise that resolves to the signature.
SmartAccountSwapOptions
Configuration options for the swap.
Promise
<SmartAccountSwapResult
>
A promise that resolves to the user operation result.
SmartAccountTransferOptions
The options for the transfer.
Promise
<SendUserOperationReturnType
>
The user operation result.
UseSpendPermissionOptions
Configuration options for using the spend permission.
Promise
<SendUserOperationReturnType
>
A promise that resolves to the user operation result.
Omit
<WaitForUserOperationOptions
, "smartAccountAddress"
>
Parameters for waiting for the user operation.
Promise
<WaitForUserOperationReturnType
>
A promise that resolves to the transaction receipt.