Extends

Constructors

new EVMWallet()

new EVMWallet(wallet): EVMWallet

Parameters

ParameterType
walletWallet<EVMSmartWalletChain>

Returns

EVMWallet

Overrides

Wallet.constructor

Defined in

packages/wallets/src/wallets/evm.ts:19

Properties

PropertyTypeInherited fromDefined in
addressstringWallet.addresspackages/wallets/src/wallets/wallet.ts:41
chainEVMSmartWalletChainWallet.chainpackages/wallets/src/wallets/wallet.ts:40
owner?stringWallet.ownerpackages/wallets/src/wallets/wallet.ts:42
signerSigner<keyof SignResultMap>Wallet.signerpackages/wallets/src/wallets/wallet.ts:43

Methods

addDelegatedSigner()

addDelegatedSigner(signer): Promise<void>

Add a delegated signer to the wallet

Parameters

ParameterTypeDescription
signerobjectThe signer
signer.signerstring-

Returns

Promise<void>

The delegated signer

Inherited from

Wallet.addDelegatedSigner

Defined in

packages/wallets/src/wallets/wallet.ts:235


balances()

balances(tokens?, chains?): Promise<Balances>

Get the wallet balances - always includes USDC and native token (ETH/SOL)

Parameters

ParameterTypeDescription
tokens?string[]Additional tokens to request (optional: native token and usdc are always included)
chains?Chain[]The chains (optional)

Returns

Promise<Balances>

The balances returns nativeToken, usdc, tokens

Throws

If the balances cannot be retrieved

Inherited from

Wallet.balances

Defined in

packages/wallets/src/wallets/wallet.ts:80


delegatedSigners()

delegatedSigners(): Promise<DelegatedSigner[]>

Returns

Promise<DelegatedSigner[]>

Inherited from

Wallet.delegatedSigners

Defined in

packages/wallets/src/wallets/wallet.ts:265


experimental_activity()

experimental_activity(): Promise<WalletsV1Alpha2ActivityResponseDto>

Experimental

Get the wallet activity

Returns

Promise<WalletsV1Alpha2ActivityResponseDto>

The activity This API is experimental and may change in the future

Throws

If the activity cannot be retrieved

Inherited from

Wallet.experimental_activity

Defined in

packages/wallets/src/wallets/wallet.ts:186


experimental_nfts()

experimental_nfts(params): Promise<GetNftsResponse>

Experimental

Get the wallet NFTs

Parameters

ParameterTypeDescription
paramsobjectThe parameters
params.pagenumberThe page number
params.perPagenumberThe number of NFTs per page

Returns

Promise<GetNftsResponse>

The NFTs This API is experimental and may change in the future

Inherited from

Wallet.experimental_nfts

Defined in

packages/wallets/src/wallets/wallet.ts:164


experimental_transactions()

experimental_transactions(): Promise<GetTransactionsResponse>

Get the wallet transactions

Returns

Promise<GetTransactionsResponse>

The transactions

Inherited from

Wallet.experimental_transactions

Defined in

packages/wallets/src/wallets/wallet.ts:176


getViemClient()

getViemClient(params?): object

Parameters

ParameterType
params?object
params.transport?HttpTransport

Returns

object

account

account: undefined

The Account of the Client.

batch?

optional batch: object

Flags for batch settings.

batch.multicall?

optional multicall: boolean | object

Toggle to enable eth_call multicall aggregation.

cacheTime

cacheTime: number

Time (in ms) that cached data will remain in memory.

call()

call: (parameters) => Promise<CallReturnType>

Parameters
ParameterType
parametersCallParameters<Chain>
Returns

Promise<CallReturnType>

The call data. CallReturnType

ccipRead?

optional ccipRead: false | object

CCIP Read configuration.

chain

chain: Chain

Chain for the client.

createAccessList()

createAccessList: (parameters) => Promise<object>

Parameters
ParameterType
parametersCreateAccessListParameters<Chain>
Returns

Promise<object>

The call data. CreateAccessListReturnType

accessList

accessList: AccessList

gasUsed

gasUsed: bigint

createBlockFilter()

createBlockFilter: () => Promise<object>

Returns

Promise<object>

Filter. CreateBlockFilterReturnType

id

id: `0x${string}`

request

request: EIP1193RequestFn<readonly [object, object, object]>

type

type: "block"

createContractEventFilter()

createContractEventFilter: <abi, eventName, args, strict, fromBlock, toBlock>(args) => Promise<CreateContractEventFilterReturnType<abi, eventName, args, strict, fromBlock, toBlock>>

Type Parameters
Type ParameterDefault type
abi extends Abi | readonly unknown[]-
eventName extends undefined | string-
args extends undefined | Record<string, unknown> | readonly unknown[]-
strict extends undefined | booleanundefined
fromBlock extends undefined | bigint | BlockTagundefined
toBlock extends undefined | bigint | BlockTagundefined
Parameters
ParameterTypeDescription
argsCreateContractEventFilterParameters<abi, eventName, args, strict, fromBlock, toBlock>CreateContractEventFilterParameters
Returns

Promise<CreateContractEventFilterReturnType<abi, eventName, args, strict, fromBlock, toBlock>>

Filter. CreateContractEventFilterReturnType

createEventFilter()

createEventFilter: <abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args>(args?) => Promise<{ [K in string | number | symbol]: Filter<“event”, abiEvents, _EventName, _Args, strict, fromBlock, toBlock>[K] }>

Type Parameters
Type ParameterDefault type
abiEvent extends undefined | AbiEventundefined
abiEvents extends undefined | readonly unknown[] | readonly AbiEvent[]abiEvent extends AbiEvent ? [abiEvent<abiEvent>] : undefined
strict extends undefined | booleanundefined
fromBlock extends undefined | bigint | BlockTagundefined
toBlock extends undefined | bigint | BlockTagundefined
_EventName extends undefined | stringMaybeAbiEventName<abiEvent>
_Args extends undefined | Record<string, unknown> | readonly unknown[]undefined
Parameters
ParameterTypeDescription
args?CreateEventFilterParameters<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args>CreateEventFilterParameters
Returns

Promise<{ [K in string | number | symbol]: Filter<“event”, abiEvents, _EventName, _Args, strict, fromBlock, toBlock>[K] }>

Filter. CreateEventFilterReturnType

createPendingTransactionFilter()

createPendingTransactionFilter: () => Promise<object>

Returns

Promise<object>

Filter. CreateBlockFilterReturnType

id

id: `0x${string}`

request

request: EIP1193RequestFn<readonly [object, object, object]>

type

type: "transaction"

estimateContractGas()

estimateContractGas: <chain, abi, functionName, args>(args) => Promise<bigint>

Type Parameters
Type Parameter
chain extends undefined | Chain
abi extends Abi | readonly unknown[]
functionName extends string
args extends unknown
Parameters
ParameterTypeDescription
argsEstimateContractGasParameters<abi, functionName, args, chain>EstimateContractGasParameters
Returns

Promise<bigint>

The gas estimate (in wei). EstimateContractGasReturnType

estimateFeesPerGas()

estimateFeesPerGas: <chainOverride, type>(args?) => Promise<EstimateFeesPerGasReturnType<type>>

Type Parameters
Type ParameterDefault type
chainOverride extends undefined | Chainundefined
type extends FeeValuesType"eip1559"
Parameters
ParameterType
args?EstimateFeesPerGasParameters<Chain, chainOverride, type>
Returns

Promise<EstimateFeesPerGasReturnType<type>>

An estimate (in wei) for the fees per gas. EstimateFeesPerGasReturnType

estimateGas()

estimateGas: (args) => Promise<bigint>

Parameters
ParameterTypeDescription
argsEstimateGasParameters<Chain>EstimateGasParameters
Returns

Promise<bigint>

The gas estimate (in wei). EstimateGasReturnType

estimateMaxPriorityFeePerGas()

estimateMaxPriorityFeePerGas: <chainOverride>(args?) => Promise<bigint>

Type Parameters
Type ParameterDefault type
chainOverride extends undefined | Chainundefined
Parameters
ParameterType
args?object
args.chain?null | chainOverride
Returns

Promise<bigint>

An estimate (in wei) for the max priority fee per gas. EstimateMaxPriorityFeePerGasReturnType

extend()

extend: <client>(fn) => Client<HttpTransport, Chain, undefined, PublicRpcSchema, { [K in string | number | symbol]: client[K] } & PublicActions<HttpTransport, Chain>>

Type Parameters
Type Parameter
client extends object & ExactPartial<ExtendableProtectedActions<HttpTransport, Chain, undefined>>
Parameters
ParameterType
fn(client) => client
Returns

Client<HttpTransport, Chain, undefined, PublicRpcSchema, { [K in string | number | symbol]: client[K] } & PublicActions<HttpTransport, Chain>>

getBalance()

getBalance: (args) => Promise<bigint>

Parameters
ParameterTypeDescription
argsGetBalanceParametersGetBalanceParameters
Returns

Promise<bigint>

The balance of the address in wei. GetBalanceReturnType

getBlobBaseFee()

getBlobBaseFee: () => Promise<bigint>

Returns

Promise<bigint>

The blob base fee (in wei). GetBlobBaseFeeReturnType

getBlock()

getBlock: <includeTransactions, blockTag>(args?) => Promise<object>

Type Parameters
Type ParameterDefault type
includeTransactions extends booleanfalse
blockTag extends BlockTag"latest"
Parameters
ParameterTypeDescription
args?GetBlockParameters<includeTransactions, blockTag>GetBlockParameters
Returns

Promise<object>

Information about the block. GetBlockReturnType

baseFeePerGas

baseFeePerGas: null | bigint

Base fee per gas

blobGasUsed

blobGasUsed: bigint

Total used blob gas by all transactions in this block

difficulty

difficulty: bigint

Difficulty for this block

excessBlobGas

excessBlobGas: bigint

Excess blob gas

extraData

extraData: `0x${string}`

“Extra data” field of this block

gasLimit

gasLimit: bigint

Maximum gas allowed in this block

gasUsed

gasUsed: bigint

Total used gas by all transactions in this block

hash

hash: blockTag extends "pending" ? null : `0x${string}`

Block hash or null if pending

logsBloom

logsBloom: blockTag extends "pending" ? null : `0x${string}`

Logs bloom filter or null if pending

miner

miner: `0x${string}`

Address that received this block’s mining rewards

mixHash

mixHash: `0x${string}`

Unique identifier for the block.

nonce

nonce: blockTag extends "pending" ? null : `0x${string}`

Proof-of-work hash or null if pending

number

number: blockTag extends "pending" ? null : bigint

Block number or null if pending

parentBeaconBlockRoot?

optional parentBeaconBlockRoot: `0x${string}`

Root of the parent beacon chain block

parentHash

parentHash: `0x${string}`

Parent block hash

receiptsRoot

receiptsRoot: `0x${string}`

Root of the this block’s receipts trie

sealFields

sealFields: `0x${string}`[]

sha3Uncles

sha3Uncles: `0x${string}`

SHA3 of the uncles data in this block

size

size: bigint

Size of this block in bytes

stateRoot

stateRoot: `0x${string}`

Root of this block’s final state trie

timestamp

timestamp: bigint

Unix timestamp of when this block was collated

totalDifficulty

totalDifficulty: null | bigint

Total difficulty of the chain until this block

transactions

transactions: includeTransactions extends true ? (object | object | object | object | object)[] : `0x${string}`[]

transactionsRoot

transactionsRoot: `0x${string}`

Root of this block’s transaction trie

uncles

uncles: `0x${string}`[]

List of uncle hashes

withdrawals?

optional withdrawals: Withdrawal[]

List of withdrawal objects

withdrawalsRoot?

optional withdrawalsRoot: `0x${string}`

Root of the this block’s withdrawals trie

getBlockNumber()

getBlockNumber: (args?) => Promise<bigint>

Parameters
ParameterTypeDescription
args?GetBlockNumberParametersGetBlockNumberParameters
Returns

Promise<bigint>

The number of the block. GetBlockNumberReturnType

getBlockTransactionCount()

getBlockTransactionCount: (args?) => Promise<number>

Parameters
ParameterTypeDescription
args?GetBlockTransactionCountParametersGetBlockTransactionCountParameters
Returns

Promise<number>

The block transaction count. GetBlockTransactionCountReturnType

getBytecode()

getBytecode: (args) => Promise<GetCodeReturnType>

Parameters
ParameterType
argsGetCodeParameters
Returns

Promise<GetCodeReturnType>

Deprecated

Use getCode instead.

getChainId()

getChainId: () => Promise<number>

Returns

Promise<number>

The current chain ID. GetChainIdReturnType

getCode()

getCode: (args) => Promise<GetCodeReturnType>

Parameters
ParameterTypeDescription
argsGetCodeParametersGetBytecodeParameters
Returns

Promise<GetCodeReturnType>

The contract’s bytecode. GetBytecodeReturnType

getContractEvents()

getContractEvents: <abi, eventName, strict, fromBlock, toBlock>(args) => Promise<GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>

Type Parameters
Type ParameterDefault type
abi extends Abi | readonly unknown[]-
eventName extends undefined | stringundefined
strict extends undefined | booleanundefined
fromBlock extends undefined | bigint | BlockTagundefined
toBlock extends undefined | bigint | BlockTagundefined
Parameters
ParameterType
argsGetContractEventsParameters<abi, eventName, strict, fromBlock, toBlock>
Returns

Promise<GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>

A list of event logs. GetContractEventsReturnType

getEip712Domain()

getEip712Domain: (args) => Promise<GetEip712DomainReturnType>

Parameters
ParameterType
argsGetEip712DomainParameters
Returns

Promise<GetEip712DomainReturnType>

The EIP-712 domain, fields, and extensions. GetEip712DomainReturnType

getEnsAddress()

getEnsAddress: (args) => Promise<GetEnsAddressReturnType>

Parameters
ParameterTypeDescription
argsobjectGetEnsAddressParameters
args.blockNumber?bigintThe balance of the account at a block number.
args.blockTag?BlockTagThe balance of the account at a block tag. Default 'latest'
args.coinType?numberENSIP-9 compliant coinType used to resolve addresses for other chains
args.gatewayUrls?string[]Universal Resolver gateway URLs to use for resolving CCIP-read requests.
args.namestringName to get the address for.
args.strict?booleanWhether or not to throw errors propagated from the ENS Universal Resolver Contract.
args.universalResolverAddress?`0x${string}`Address of ENS Universal Resolver Contract.
Returns

Promise<GetEnsAddressReturnType>

Address for ENS name or null if not found. GetEnsAddressReturnType

getEnsAvatar()

getEnsAvatar: (args) => Promise<GetEnsAvatarReturnType>

Parameters
ParameterTypeDescription
argsobjectGetEnsAvatarParameters
args.assetGatewayUrls?AssetGatewayUrlsGateway urls to resolve IPFS and/or Arweave assets.
args.blockNumber?bigintThe balance of the account at a block number.
args.blockTag?BlockTagThe balance of the account at a block tag. Default 'latest'
args.gatewayUrls?string[]Universal Resolver gateway URLs to use for resolving CCIP-read requests.
args.namestringENS name to get Text for.
args.strict?booleanWhether or not to throw errors propagated from the ENS Universal Resolver Contract.
args.universalResolverAddress?`0x${string}`Address of ENS Universal Resolver Contract.
Returns

Promise<GetEnsAvatarReturnType>

Avatar URI or null if not found. GetEnsAvatarReturnType

getEnsName()

getEnsName: (args) => Promise<GetEnsNameReturnType>

Parameters
ParameterTypeDescription
argsobjectGetEnsNameParameters
args.address`0x${string}`Address to get ENS name for.
args.blockNumber?bigintThe balance of the account at a block number.
args.blockTag?BlockTagThe balance of the account at a block tag. Default 'latest'
args.gatewayUrls?string[]Universal Resolver gateway URLs to use for resolving CCIP-read requests.
args.strict?booleanWhether or not to throw errors propagated from the ENS Universal Resolver Contract.
args.universalResolverAddress?`0x${string}`Address of ENS Universal Resolver Contract.
Returns

Promise<GetEnsNameReturnType>

Name or null if not found. GetEnsNameReturnType

getEnsResolver()

getEnsResolver: (args) => Promise<`0x${string}`>

Parameters
ParameterTypeDescription
argsobjectGetEnsResolverParameters
args.blockNumber?bigintThe balance of the account at a block number.
args.blockTag?BlockTagThe balance of the account at a block tag. Default 'latest'
args.namestringName to get the address for.
args.universalResolverAddress?`0x${string}`Address of ENS Universal Resolver Contract.
Returns

Promise<`0x${string}`>

Address for ENS resolver. GetEnsResolverReturnType

getEnsText()

getEnsText: (args) => Promise<GetEnsTextReturnType>

Parameters
ParameterTypeDescription
argsobjectGetEnsTextParameters
args.blockNumber?bigintThe balance of the account at a block number.
args.blockTag?BlockTagThe balance of the account at a block tag. Default 'latest'
args.gatewayUrls?string[]Universal Resolver gateway URLs to use for resolving CCIP-read requests.
args.keystringText record to retrieve.
args.namestringENS name to get Text for.
args.strict?booleanWhether or not to throw errors propagated from the ENS Universal Resolver Contract.
args.universalResolverAddress?`0x${string}`Address of ENS Universal Resolver Contract.
Returns

Promise<GetEnsTextReturnType>

Address for ENS resolver. GetEnsTextReturnType

getFeeHistory()

getFeeHistory: (args) => Promise<GetFeeHistoryReturnType>

Parameters
ParameterTypeDescription
argsGetFeeHistoryParametersGetFeeHistoryParameters
Returns

Promise<GetFeeHistoryReturnType>

The gas estimate (in wei). GetFeeHistoryReturnType

getFilterChanges()

getFilterChanges: <filterType, abi, eventName, strict, fromBlock, toBlock>(args) => Promise<GetFilterChangesReturnType<filterType, abi, eventName, strict, fromBlock, toBlock>>

Type Parameters
Type ParameterDefault type
filterType extends FilterType-
abi extends undefined | Abi | readonly unknown[]-
eventName extends undefined | string-
strict extends undefined | booleanundefined
fromBlock extends undefined | bigint | BlockTagundefined
toBlock extends undefined | bigint | BlockTagundefined
Parameters
ParameterTypeDescription
argsGetFilterChangesParameters<filterType, abi, eventName, strict, fromBlock, toBlock>GetFilterChangesParameters
Returns

Promise<GetFilterChangesReturnType<filterType, abi, eventName, strict, fromBlock, toBlock>>

Logs or hashes. GetFilterChangesReturnType

getFilterLogs()

getFilterLogs: <abi, eventName, strict, fromBlock, toBlock>(args) => Promise<GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>>

Type Parameters
Type ParameterDefault type
abi extends undefined | Abi | readonly unknown[]-
eventName extends undefined | string-
strict extends undefined | booleanundefined
fromBlock extends undefined | bigint | BlockTagundefined
toBlock extends undefined | bigint | BlockTagundefined
Parameters
ParameterTypeDescription
argsGetFilterLogsParameters<abi, eventName, strict, fromBlock, toBlock>GetFilterLogsParameters
Returns

Promise<GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>>

A list of event logs. GetFilterLogsReturnType

getGasPrice()

getGasPrice: () => Promise<bigint>

Returns

Promise<bigint>

The gas price (in wei). GetGasPriceReturnType

getLogs()

getLogs: <abiEvent, abiEvents, strict, fromBlock, toBlock>(args?) => Promise<GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>>

Type Parameters
Type ParameterDefault type
abiEvent extends undefined | AbiEventundefined
abiEvents extends undefined | readonly unknown[] | readonly AbiEvent[]abiEvent extends AbiEvent ? [abiEvent<abiEvent>] : undefined
strict extends undefined | booleanundefined
fromBlock extends undefined | bigint | BlockTagundefined
toBlock extends undefined | bigint | BlockTagundefined
Parameters
ParameterTypeDescription
args?GetLogsParameters<abiEvent, abiEvents, strict, fromBlock, toBlock>GetLogsParameters
Returns

Promise<GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>>

A list of event logs. GetLogsReturnType

getProof()

getProof: (args) => Promise<GetProofReturnType>

Parameters
ParameterType
argsGetProofParameters
Returns

Promise<GetProofReturnType>

Proof data. GetProofReturnType

getStorageAt()

getStorageAt: (args) => Promise<GetStorageAtReturnType>

Parameters
ParameterTypeDescription
argsGetStorageAtParametersGetStorageAtParameters
Returns

Promise<GetStorageAtReturnType>

The value of the storage slot. GetStorageAtReturnType

getTransaction()

getTransaction: <blockTag>(args) => Promise<object | object | object | object | object>

Type Parameters
Type ParameterDefault type
blockTag extends BlockTag"latest"
Parameters
ParameterTypeDescription
argsGetTransactionParameters<blockTag>GetTransactionParameters
Returns

Promise<object | object | object | object | object>

The transaction information. GetTransactionReturnType

getTransactionConfirmations()

getTransactionConfirmations: (args) => Promise<bigint>

Parameters
ParameterTypeDescription
argsGetTransactionConfirmationsParameters<Chain>GetTransactionConfirmationsParameters
Returns

Promise<bigint>

The number of blocks passed since the transaction was processed. If confirmations is 0, then the Transaction has not been confirmed & processed yet. GetTransactionConfirmationsReturnType

getTransactionCount()

getTransactionCount: (args) => Promise<number>

Parameters
ParameterTypeDescription
argsGetTransactionCountParametersGetTransactionCountParameters
Returns

Promise<number>

The number of transactions an account has sent. GetTransactionCountReturnType

getTransactionReceipt()

getTransactionReceipt: (args) => Promise<TransactionReceipt>

Parameters
ParameterTypeDescription
argsGetTransactionReceiptParametersGetTransactionReceiptParameters
Returns

Promise<TransactionReceipt>

The transaction receipt. GetTransactionReceiptReturnType

key

key: string

A key for the client.

multicall()

multicall: <contracts, allowFailure>(args) => Promise<MulticallReturnType<contracts, allowFailure>>

Type Parameters
Type ParameterDefault type
contracts extends readonly unknown[]-
allowFailure extends booleantrue
Parameters
ParameterTypeDescription
argsMulticallParameters<contracts, allowFailure>MulticallParameters
Returns

Promise<MulticallReturnType<contracts, allowFailure>>

An array of results with accompanying status. MulticallReturnType

name

name: string

A name for the client.

pollingInterval

pollingInterval: number

Frequency (in ms) for polling enabled actions & events. Defaults to 4_000 milliseconds.

prepareTransactionRequest()

prepareTransactionRequest: <request, chainOverride, accountOverride>(args) => Promise<{ [K in string | number | symbol]: (UnionRequiredBy<Extract<UnionOmit<(…), (…)> & ((…) extends (…) ? (…) : (…)) & ((…) extends (…) ? (…) : (…)), IsNever<(…)> extends true ? unknown : ExactPartial<(…)>> & Object, ParameterTypeToParameters<request[“parameters”] extends readonly PrepareTransactionRequestParameterType[] ? any[any][number] : “type” | “fees” | “gas” | “nonce” | “blobVersionedHashes” | “chainId”>> & (unknown extends request[“kzg”] ? Object : Pick<request, “kzg”>))[K] }>

Type Parameters
Type ParameterDefault type
request extends Omit<object, "from"> | Omit<object, "from"> | Omit<object, "from"> | Omit<object, "from"> | Omit<object, "from"> & object & object-
chainOverride extends undefined | Chainundefined
accountOverride extends undefined | `0x${string}` | Accountundefined
Parameters
ParameterTypeDescription
argsPrepareTransactionRequestParameters<Chain, undefined | Account, chainOverride, accountOverride, request>PrepareTransactionRequestParameters
Returns

Promise<{ [K in string | number | symbol]: (UnionRequiredBy<Extract<UnionOmit<(…), (…)> & ((…) extends (…) ? (…) : (…)) & ((…) extends (…) ? (…) : (…)), IsNever<(…)> extends true ? unknown : ExactPartial<(…)>> & Object, ParameterTypeToParameters<request[“parameters”] extends readonly PrepareTransactionRequestParameterType[] ? any[any][number] : “type” | “fees” | “gas” | “nonce” | “blobVersionedHashes” | “chainId”>> & (unknown extends request[“kzg”] ? Object : Pick<request, “kzg”>))[K] }>

The transaction request. PrepareTransactionRequestReturnType

readContract()

readContract: <abi, functionName, args>(args) => Promise<ReadContractReturnType<abi, functionName, args>>

Type Parameters
Type Parameter
abi extends Abi | readonly unknown[]
functionName extends string
args extends unknown
Parameters
ParameterTypeDescription
argsReadContractParameters<abi, functionName, args>ReadContractParameters
Returns

Promise<ReadContractReturnType<abi, functionName, args>>

The response from the contract. Type is inferred. ReadContractReturnType

request

request: EIP1193RequestFn<PublicRpcSchema>

Request function wrapped with friendly error handling

sendRawTransaction()

sendRawTransaction: (args) => Promise<`0x${string}`>

Parameters
ParameterType
argsSendRawTransactionParameters
Returns

Promise<`0x${string}`>

The transaction hash. SendRawTransactionReturnType

simulate()

simulate: <calls>(args) => Promise<SimulateBlocksReturnType<calls>>

Type Parameters
Type Parameter
calls extends readonly unknown[]
Parameters
ParameterType
argsSimulateBlocksParameters<calls>
Returns

Promise<SimulateBlocksReturnType<calls>>

Deprecated

Use simulateBlocks instead.

simulateBlocks()

simulateBlocks: <calls>(args) => Promise<SimulateBlocksReturnType<calls>>

Type Parameters
Type Parameter
calls extends readonly unknown[]
Parameters
ParameterType
argsSimulateBlocksParameters<calls>
Returns

Promise<SimulateBlocksReturnType<calls>>

Simulated blocks. SimulateReturnType

simulateCalls()

simulateCalls: <calls>(args) => Promise<SimulateCallsReturnType<calls>>

Type Parameters
Type Parameter
calls extends readonly unknown[]
Parameters
ParameterType
argsSimulateCallsParameters<calls>
Returns

Promise<SimulateCallsReturnType<calls>>

Results. SimulateCallsReturnType

simulateContract()

simulateContract: <abi, functionName, args, chainOverride, accountOverride>(args) => Promise<SimulateContractReturnType<abi, functionName, args, Chain, undefined | Account, chainOverride, accountOverride>>

Type Parameters
Type ParameterDefault type
abi extends Abi | readonly unknown[]-
functionName extends string-
args extends unknown-
chainOverride extends undefined | Chain-
accountOverride extends undefined | `0x${string}` | Accountundefined
Parameters
ParameterTypeDescription
argsSimulateContractParameters<abi, functionName, args, Chain, chainOverride, accountOverride>SimulateContractParameters
Returns

Promise<SimulateContractReturnType<abi, functionName, args, Chain, undefined | Account, chainOverride, accountOverride>>

The simulation result and write request. SimulateContractReturnType

transport

transport: TransportConfig<"http", EIP1193RequestFn> & object

The RPC transport

Type declaration
fetchOptions?

optional fetchOptions: Omit<RequestInit, "body">

url?

optional url: string

type

type: string

The type of client.

uid

uid: string

A unique ID for the client.

uninstallFilter()

uninstallFilter: (args) => Promise<boolean>

Parameters
ParameterTypeDescription
argsUninstallFilterParametersUninstallFilterParameters
Returns

Promise<boolean>

A boolean indicating if the Filter was successfully uninstalled. UninstallFilterReturnType

verifyMessage()

verifyMessage: (args) => Promise<boolean>

Parameters
ParameterTypeDescription
argsobject-
args.address`0x${string}`The address that signed the original message.
args.blockNumber?bigintThe balance of the account at a block number.
args.blockTag?BlockTagThe balance of the account at a block tag. Default 'latest'
args.factory?`0x${string}`-
args.factoryData?`0x${string}`-
args.messageSignableMessageThe message to be verified.
args.signature`0x${string}` | Signature | ByteArrayThe signature that was generated by signing the message with the address’s private key.
args.universalSignatureVerifierAddress?`0x${string}`-
Returns

Promise<boolean>

Whether or not the signature is valid. VerifyMessageReturnType

verifySiweMessage()

verifySiweMessage: (args) => Promise<boolean>

Parameters
ParameterTypeDescription
argsobject-
args.address?`0x${string}`Ethereum address to check against.
args.blockNumber?bigintThe balance of the account at a block number.
args.blockTag?BlockTagThe balance of the account at a block tag. Default 'latest'
args.domain?stringRFC 3986 authority to check against.
args.messagestringEIP-4361 formatted message.
args.nonce?stringRandom string to check against.
args.scheme?stringRFC 3986 URI scheme to check against.
args.signature`0x${string}`Signature to check against.
args.time?DateCurrent time to check optional expirationTime and notBefore fields. Default new Date()
Returns

Promise<boolean>

Whether or not the signature is valid. VerifySiweMessageReturnType

verifyTypedData()

verifyTypedData: (args) => Promise<boolean>

Parameters
ParameterType
argsVerifyTypedDataParameters
Returns

Promise<boolean>

Whether or not the signature is valid. VerifyTypedDataReturnType

waitForTransactionReceipt()

waitForTransactionReceipt: (args) => Promise<TransactionReceipt>

Parameters
ParameterTypeDescription
argsWaitForTransactionReceiptParameters<Chain>WaitForTransactionReceiptParameters
Returns

Promise<TransactionReceipt>

The transaction receipt. WaitForTransactionReceiptReturnType

watchBlockNumber()

watchBlockNumber: (args) => WatchBlockNumberReturnType

Parameters
ParameterTypeDescription
argsWatchBlockNumberParametersWatchBlockNumberParameters
Returns

WatchBlockNumberReturnType

A function that can be invoked to stop watching for new block numbers. WatchBlockNumberReturnType

watchBlocks()

watchBlocks: <includeTransactions, blockTag>(args) => WatchBlocksReturnType

Type Parameters
Type ParameterDefault type
includeTransactions extends booleanfalse
blockTag extends BlockTag"latest"
Parameters
ParameterTypeDescription
argsWatchBlocksParameters<HttpTransport, Chain, includeTransactions, blockTag>WatchBlocksParameters
Returns

WatchBlocksReturnType

A function that can be invoked to stop watching for new block numbers. WatchBlocksReturnType

watchContractEvent()

watchContractEvent: <abi, eventName, strict>(args) => WatchContractEventReturnType

Type Parameters
Type ParameterDefault type
abi extends Abi | readonly unknown[]-
eventName extends string-
strict extends undefined | booleanundefined
Parameters
ParameterTypeDescription
argsWatchContractEventParameters<abi, eventName, strict, HttpTransport>WatchContractEventParameters
Returns

WatchContractEventReturnType

A function that can be invoked to stop watching for new event logs. WatchContractEventReturnType

watchEvent()

watchEvent: <abiEvent, abiEvents, strict>(args) => WatchEventReturnType

Type Parameters
Type ParameterDefault type
abiEvent extends undefined | AbiEventundefined
abiEvents extends undefined | readonly unknown[] | readonly AbiEvent[]abiEvent extends AbiEvent ? [abiEvent<abiEvent>] : undefined
strict extends undefined | booleanundefined
Parameters
ParameterTypeDescription
argsWatchEventParameters<abiEvent, abiEvents, strict, HttpTransport>WatchEventParameters
Returns

WatchEventReturnType

A function that can be invoked to stop watching for new Event Logs. WatchEventReturnType

watchPendingTransactions()

watchPendingTransactions: (args) => WatchPendingTransactionsReturnType

Parameters
ParameterTypeDescription
argsWatchPendingTransactionsParameters<HttpTransport>WatchPendingTransactionsParameters
Returns

WatchPendingTransactionsReturnType

A function that can be invoked to stop watching for new pending transaction hashes. WatchPendingTransactionsReturnType

Defined in

packages/wallets/src/wallets/evm.ts:124


send()

send<T>(to, token, amount, options?): Promise<Transaction<T extends object ? true : false>>

Send a token to a wallet or user locator

Type Parameters

Type ParameterDefault type
T extends undefined | TransactionInputOptionsundefined

Parameters

ParameterTypeDescription
tostring | UserLocatorThe recipient (address or user locator)
tokenstringThe token (address or currency symbol)
amountstringThe amount to send (decimal units)
options?TThe options for the transaction

Returns

Promise<Transaction<T extends object ? true : false>>

The transaction

Inherited from

Wallet.send

Defined in

packages/wallets/src/wallets/wallet.ts:202


sendTransaction()

sendTransaction<T>(params): Promise<Transaction<T["options"] extends object ? true : false>>

Type Parameters

Type Parameter
T extends EVMTransactionInput

Parameters

ParameterType
paramsT

Returns

Promise<Transaction<T["options"] extends object ? true : false>>

Defined in

packages/wallets/src/wallets/evm.ts:40


signMessage()

signMessage(message): Promise<string>

Parameters

ParameterType
messagestring

Returns

Promise<string>

Defined in

packages/wallets/src/wallets/evm.ts:57


signTypedData()

signTypedData<typedData, primaryType>(params): Promise<string>

Type Parameters

Type ParameterDefault type
typedData extends Record<string, unknown> | object-
primaryType extends string | number | symbolkeyof typedData

Parameters

ParameterType
paramsTypedDataDefinition<typedData, primaryType, typedData extends object ? keyof typedData<typedData> : string> & object

Returns

Promise<string>

Defined in

packages/wallets/src/wallets/evm.ts:76


from()

static from(wallet): EVMWallet

Parameters

ParameterType
walletWallet<Chain>

Returns

EVMWallet

Defined in

packages/wallets/src/wallets/evm.ts:32