new EVMWallet(wallet
):EVMWallet
Parameter | Type |
---|---|
wallet | Wallet <EVMSmartWalletChain > |
EVMWallet
Wallet
.constructor
Property | Type | Inherited from | Defined in |
---|---|---|---|
address | string | Wallet .address | packages/wallets/src/wallets/wallet.ts:41 |
chain | EVMSmartWalletChain | Wallet .chain | packages/wallets/src/wallets/wallet.ts:40 |
owner? | string | Wallet .owner | packages/wallets/src/wallets/wallet.ts:42 |
signer | Signer <keyof SignResultMap > | Wallet .signer | packages/wallets/src/wallets/wallet.ts:43 |
addDelegatedSigner(Add a delegated signer to the walletsigner
):Promise
<void
>
Parameter | Type | Description |
---|---|---|
signer | object | The signer |
signer.signer | string | - |
Promise
<void
>
The delegated signer
Wallet
.addDelegatedSigner
balances(Get the wallet balances - always includes USDC and native token (ETH/SOL)tokens
?,chains
?):Promise
<Balances
>
Parameter | Type | Description |
---|---|---|
tokens ? | string [] | Additional tokens to request (optional: native token and usdc are always included) |
chains ? | Chain [] | The chains (optional) |
Promise
<Balances
>
The balances returns nativeToken, usdc, tokens
Wallet
.balances
delegatedSigners():Promise
<DelegatedSigner
[]>
Promise
<DelegatedSigner
[]>
Wallet
.delegatedSigners
experimental_activity():Promise
<WalletsV1Alpha2ActivityResponseDto
>
Experimental
Get the wallet activity
Promise
<WalletsV1Alpha2ActivityResponseDto
>
The activity
This API is experimental and may change in the future
Wallet
.experimental_activity
experimental_nfts(params
):Promise
<GetNftsResponse
>
Experimental
Get the wallet NFTs
Parameter | Type | Description |
---|---|---|
params | object | The parameters |
params.page | number | The page number |
params.perPage | number | The number of NFTs per page |
Promise
<GetNftsResponse
>
The NFTs
This API is experimental and may change in the future
Wallet
.experimental_nfts
experimental_transactions():Get the wallet transactionsPromise
<GetTransactionsResponse
>
Promise
<GetTransactionsResponse
>
The transactions
Wallet
.experimental_transactions
getViemClient(params
?):object
Parameter | Type |
---|---|
params ? | object |
params.transport ? | HttpTransport |
object
account: undefined
The Account of the Client.
Flags for batch settings.optional
batch:object
Toggle to enableoptional
multicall:boolean
|object
eth_call
multicall aggregation.
cacheTime: number
Time (in ms) that cached data will remain in memory.
call: (parameters
) =>Promise
<CallReturnType
>
Parameter | Type |
---|---|
parameters | CallParameters <Chain > |
Promise
<CallReturnType
>
The call data. CallReturnType
CCIP Read configuration.optional
ccipRead:false
|object
chain: Chain
Chain for the client.
createAccessList: (parameters
) =>Promise
<object
>
Parameter | Type |
---|---|
parameters | CreateAccessListParameters <Chain > |
Promise
<object
>
The call data. CreateAccessListReturnType
accessList: AccessList
gasUsed: bigint
createBlockFilter: () =>Promise
<object
>
Promise
<object
>
Filter. CreateBlockFilterReturnType
id: `0x${string}`
request:EIP1193RequestFn
<readonly [object
,object
,object
]>
type: "block"
createContractEventFilter: <abi
,eventName
,args
,strict
,fromBlock
,toBlock
>(args
) =>Promise
<CreateContractEventFilterReturnType
<abi
,eventName
,args
,strict
,fromBlock
,toBlock
>>
Type Parameter | Default type |
---|---|
abi extends Abi | readonly unknown [] | - |
eventName extends undefined | string | - |
args extends undefined | Record <string , unknown > | readonly unknown [] | - |
strict extends undefined | boolean | undefined |
fromBlock extends undefined | bigint | BlockTag | undefined |
toBlock extends undefined | bigint | BlockTag | undefined |
Parameter | Type | Description |
---|---|---|
args | CreateContractEventFilterParameters <abi , eventName , args , strict , fromBlock , toBlock > | CreateContractEventFilterParameters |
Promise
<CreateContractEventFilterReturnType
<abi
, eventName
, args
, strict
, fromBlock
, toBlock
>>
Filter
. CreateContractEventFilterReturnType
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 Parameter | Default type |
---|---|
abiEvent extends undefined | AbiEvent | undefined |
abiEvents extends undefined | readonly unknown [] | readonly AbiEvent [] | abiEvent extends AbiEvent ? [abiEvent <abiEvent >] : undefined |
strict extends undefined | boolean | undefined |
fromBlock extends undefined | bigint | BlockTag | undefined |
toBlock extends undefined | bigint | BlockTag | undefined |
_EventName extends undefined | string | MaybeAbiEventName <abiEvent > |
_Args extends undefined | Record <string , unknown > | readonly unknown [] | undefined |
Parameter | Type | Description |
---|---|---|
args ? | CreateEventFilterParameters <abiEvent , abiEvents , strict , fromBlock , toBlock , _EventName , _Args > | CreateEventFilterParameters |
Promise
<{ [K in string | number | symbol]: Filter<“event”, abiEvents, _EventName, _Args, strict, fromBlock, toBlock>[K] }>
Filter
. CreateEventFilterReturnType
createPendingTransactionFilter: () =>Promise
<object
>
Promise
<object
>
Filter
. CreateBlockFilterReturnType
id: `0x${string}`
request:EIP1193RequestFn
<readonly [object
,object
,object
]>
type: "transaction"
estimateContractGas: <chain
,abi
,functionName
,args
>(args
) =>Promise
<bigint
>
Type Parameter |
---|
chain extends undefined | Chain |
abi extends Abi | readonly unknown [] |
functionName extends string |
args extends unknown |
Parameter | Type | Description |
---|---|---|
args | EstimateContractGasParameters <abi , functionName , args , chain > | EstimateContractGasParameters |
Promise
<bigint
>
The gas estimate (in wei). EstimateContractGasReturnType
estimateFeesPerGas: <chainOverride
,type
>(args
?) =>Promise
<EstimateFeesPerGasReturnType
<type
>>
Type Parameter | Default type |
---|---|
chainOverride extends undefined | Chain | undefined |
type extends FeeValuesType | "eip1559" |
Parameter | Type |
---|---|
args ? | EstimateFeesPerGasParameters <Chain , chainOverride , type > |
Promise
<EstimateFeesPerGasReturnType
<type
>>
An estimate (in wei) for the fees per gas. EstimateFeesPerGasReturnType
estimateGas: (args
) =>Promise
<bigint
>
Parameter | Type | Description |
---|---|---|
args | EstimateGasParameters <Chain > | EstimateGasParameters |
Promise
<bigint
>
The gas estimate (in wei). EstimateGasReturnType
estimateMaxPriorityFeePerGas: <chainOverride
>(args
?) =>Promise
<bigint
>
Type Parameter | Default type |
---|---|
chainOverride extends undefined | Chain | undefined |
Parameter | Type |
---|---|
args ? | object |
args.chain ? | null | chainOverride |
Promise
<bigint
>
An estimate (in wei) for the max priority fee per gas. EstimateMaxPriorityFeePerGasReturnType
extend: <client
>(fn
) =>Client
<HttpTransport
,Chain
,undefined
,PublicRpcSchema
, { [K in string | number | symbol]: client[K] } &PublicActions
<HttpTransport
,Chain
>>
Type Parameter |
---|
client extends object & ExactPartial <ExtendableProtectedActions <HttpTransport , Chain , undefined >> |
Parameter | Type |
---|---|
fn | (client ) => client |
Client
<HttpTransport
, Chain
, undefined
, PublicRpcSchema
, { [K in string | number | symbol]: client[K] } & PublicActions
<HttpTransport
, Chain
>>
getBalance: (args
) =>Promise
<bigint
>
Parameter | Type | Description |
---|---|---|
args | GetBalanceParameters | GetBalanceParameters |
Promise
<bigint
>
The balance of the address in wei. GetBalanceReturnType
getBlobBaseFee: () =>Promise
<bigint
>
Promise
<bigint
>
The blob base fee (in wei). GetBlobBaseFeeReturnType
getBlock: <includeTransactions
,blockTag
>(args
?) =>Promise
<object
>
Type Parameter | Default type |
---|---|
includeTransactions extends boolean | false |
blockTag extends BlockTag | "latest" |
Parameter | Type | Description |
---|---|---|
args ? | GetBlockParameters <includeTransactions , blockTag > | GetBlockParameters |
Promise
<object
>
Information about the block. GetBlockReturnType
baseFeePerGas:Base fee per gasnull
|bigint
blobGasUsed: bigint
Total used blob gas by all transactions in this block
difficulty: bigint
Difficulty for this block
excessBlobGas: bigint
Excess blob gas
extraData: `0x${string}`“Extra data” field of this block
gasLimit: bigint
Maximum gas allowed in this block
gasUsed: bigint
Total used gas by all transactions in this block
hash:Block hash orblockTag
extends"pending"
?null
: `0x${string}`
null
if pending
logsBloom:Logs bloom filter orblockTag
extends"pending"
?null
: `0x${string}`
null
if pending
miner: `0x${string}`Address that received this block’s mining rewards
mixHash: `0x${string}`Unique identifier for the block.
nonce:Proof-of-work hash orblockTag
extends"pending"
?null
: `0x${string}`
null
if pending
number:Block number orblockTag
extends"pending"
?null
:bigint
null
if pending
optional
parentBeaconBlockRoot: `0x${string}`
Root of the parent beacon chain block
parentHash: `0x${string}`Parent block hash
receiptsRoot: `0x${string}`Root of the this block’s receipts trie
sealFields: `0x${string}`[]
sha3Uncles: `0x${string}`SHA3 of the uncles data in this block
size: bigint
Size of this block in bytes
stateRoot: `0x${string}`Root of this block’s final state trie
timestamp: bigint
Unix timestamp of when this block was collated
totalDifficulty:Total difficulty of the chain until this blocknull
|bigint
transactions:includeTransactions
extendstrue
? (object
|object
|object
|object
|object
)[] : `0x${string}`[]
transactionsRoot: `0x${string}`Root of this block’s transaction trie
uncles: `0x${string}`[]List of uncle hashes
List of withdrawal objectsoptional
withdrawals:Withdrawal
[]
optional
withdrawalsRoot: `0x${string}`
Root of the this block’s withdrawals trie
getBlockNumber: (args
?) =>Promise
<bigint
>
Parameter | Type | Description |
---|---|---|
args ? | GetBlockNumberParameters | GetBlockNumberParameters |
Promise
<bigint
>
The number of the block. GetBlockNumberReturnType
getBlockTransactionCount: (args
?) =>Promise
<number
>
Parameter | Type | Description |
---|---|---|
args ? | GetBlockTransactionCountParameters | GetBlockTransactionCountParameters |
Promise
<number
>
The block transaction count. GetBlockTransactionCountReturnType
getBytecode: (args
) =>Promise
<GetCodeReturnType
>
Parameter | Type |
---|---|
args | GetCodeParameters |
Promise
<GetCodeReturnType
>
getCode
instead.
getChainId: () =>Promise
<number
>
Promise
<number
>
The current chain ID. GetChainIdReturnType
getCode: (args
) =>Promise
<GetCodeReturnType
>
Parameter | Type | Description |
---|---|---|
args | GetCodeParameters | GetBytecodeParameters |
Promise
<GetCodeReturnType
>
The contract’s bytecode. GetBytecodeReturnType
getContractEvents: <abi
,eventName
,strict
,fromBlock
,toBlock
>(args
) =>Promise
<GetContractEventsReturnType
<abi
,eventName
,strict
,fromBlock
,toBlock
>>
Type Parameter | Default type |
---|---|
abi extends Abi | readonly unknown [] | - |
eventName extends undefined | string | undefined |
strict extends undefined | boolean | undefined |
fromBlock extends undefined | bigint | BlockTag | undefined |
toBlock extends undefined | bigint | BlockTag | undefined |
Parameter | Type |
---|---|
args | GetContractEventsParameters <abi , eventName , strict , fromBlock , toBlock > |
Promise
<GetContractEventsReturnType
<abi
, eventName
, strict
, fromBlock
, toBlock
>>
A list of event logs. GetContractEventsReturnType
getEip712Domain: (args
) =>Promise
<GetEip712DomainReturnType
>
Parameter | Type |
---|---|
args | GetEip712DomainParameters |
Promise
<GetEip712DomainReturnType
>
The EIP-712 domain, fields, and extensions. GetEip712DomainReturnType
getEnsAddress: (args
) =>Promise
<GetEnsAddressReturnType
>
Parameter | Type | Description |
---|---|---|
args | object | GetEnsAddressParameters |
args.blockNumber ? | bigint | The balance of the account at a block number. |
args.blockTag ? | BlockTag | The balance of the account at a block tag. Default 'latest' |
args.coinType ? | number | ENSIP-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.name | string | Name to get the address for. |
args.strict ? | boolean | Whether or not to throw errors propagated from the ENS Universal Resolver Contract. |
args.universalResolverAddress ? | `0x${string}` | Address of ENS Universal Resolver Contract. |
Promise
<GetEnsAddressReturnType
>
Address for ENS name or null
if not found. GetEnsAddressReturnType
getEnsAvatar: (args
) =>Promise
<GetEnsAvatarReturnType
>
Parameter | Type | Description |
---|---|---|
args | object | GetEnsAvatarParameters |
args.assetGatewayUrls ? | AssetGatewayUrls | Gateway urls to resolve IPFS and/or Arweave assets. |
args.blockNumber ? | bigint | The balance of the account at a block number. |
args.blockTag ? | BlockTag | The 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.name | string | ENS name to get Text for. |
args.strict ? | boolean | Whether or not to throw errors propagated from the ENS Universal Resolver Contract. |
args.universalResolverAddress ? | `0x${string}` | Address of ENS Universal Resolver Contract. |
Promise
<GetEnsAvatarReturnType
>
Avatar URI or null
if not found. GetEnsAvatarReturnType
getEnsName: (args
) =>Promise
<GetEnsNameReturnType
>
Parameter | Type | Description |
---|---|---|
args | object | GetEnsNameParameters |
args.address | `0x${string}` | Address to get ENS name for. |
args.blockNumber ? | bigint | The balance of the account at a block number. |
args.blockTag ? | BlockTag | The 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 ? | boolean | Whether or not to throw errors propagated from the ENS Universal Resolver Contract. |
args.universalResolverAddress ? | `0x${string}` | Address of ENS Universal Resolver Contract. |
Promise
<GetEnsNameReturnType
>
Name or null
if not found. GetEnsNameReturnType
getEnsResolver: (args
) =>Promise
<`0x${string}`>
Parameter | Type | Description |
---|---|---|
args | object | GetEnsResolverParameters |
args.blockNumber ? | bigint | The balance of the account at a block number. |
args.blockTag ? | BlockTag | The balance of the account at a block tag. Default 'latest' |
args.name | string | Name to get the address for. |
args.universalResolverAddress ? | `0x${string}` | Address of ENS Universal Resolver Contract. |
Promise
<`0x${string}`>
Address for ENS resolver. GetEnsResolverReturnType
getEnsText: (args
) =>Promise
<GetEnsTextReturnType
>
Parameter | Type | Description |
---|---|---|
args | object | GetEnsTextParameters |
args.blockNumber ? | bigint | The balance of the account at a block number. |
args.blockTag ? | BlockTag | The 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.key | string | Text record to retrieve. |
args.name | string | ENS name to get Text for. |
args.strict ? | boolean | Whether or not to throw errors propagated from the ENS Universal Resolver Contract. |
args.universalResolverAddress ? | `0x${string}` | Address of ENS Universal Resolver Contract. |
Promise
<GetEnsTextReturnType
>
Address for ENS resolver. GetEnsTextReturnType
getFeeHistory: (args
) =>Promise
<GetFeeHistoryReturnType
>
Parameter | Type | Description |
---|---|---|
args | GetFeeHistoryParameters | GetFeeHistoryParameters |
Promise
<GetFeeHistoryReturnType
>
The gas estimate (in wei). GetFeeHistoryReturnType
getFilterChanges: <filterType
,abi
,eventName
,strict
,fromBlock
,toBlock
>(args
) =>Promise
<GetFilterChangesReturnType
<filterType
,abi
,eventName
,strict
,fromBlock
,toBlock
>>
Type Parameter | Default type |
---|---|
filterType extends FilterType | - |
abi extends undefined | Abi | readonly unknown [] | - |
eventName extends undefined | string | - |
strict extends undefined | boolean | undefined |
fromBlock extends undefined | bigint | BlockTag | undefined |
toBlock extends undefined | bigint | BlockTag | undefined |
Parameter | Type | Description |
---|---|---|
args | GetFilterChangesParameters <filterType , abi , eventName , strict , fromBlock , toBlock > | GetFilterChangesParameters |
Promise
<GetFilterChangesReturnType
<filterType
, abi
, eventName
, strict
, fromBlock
, toBlock
>>
Logs or hashes. GetFilterChangesReturnType
getFilterLogs: <abi
,eventName
,strict
,fromBlock
,toBlock
>(args
) =>Promise
<GetFilterLogsReturnType
<abi
,eventName
,strict
,fromBlock
,toBlock
>>
Type Parameter | Default type |
---|---|
abi extends undefined | Abi | readonly unknown [] | - |
eventName extends undefined | string | - |
strict extends undefined | boolean | undefined |
fromBlock extends undefined | bigint | BlockTag | undefined |
toBlock extends undefined | bigint | BlockTag | undefined |
Parameter | Type | Description |
---|---|---|
args | GetFilterLogsParameters <abi , eventName , strict , fromBlock , toBlock > | GetFilterLogsParameters |
Promise
<GetFilterLogsReturnType
<abi
, eventName
, strict
, fromBlock
, toBlock
>>
A list of event logs. GetFilterLogsReturnType
getGasPrice: () =>Promise
<bigint
>
Promise
<bigint
>
The gas price (in wei). GetGasPriceReturnType
getLogs: <abiEvent
,abiEvents
,strict
,fromBlock
,toBlock
>(args
?) =>Promise
<GetLogsReturnType
<abiEvent
,abiEvents
,strict
,fromBlock
,toBlock
>>
Type Parameter | Default type |
---|---|
abiEvent extends undefined | AbiEvent | undefined |
abiEvents extends undefined | readonly unknown [] | readonly AbiEvent [] | abiEvent extends AbiEvent ? [abiEvent <abiEvent >] : undefined |
strict extends undefined | boolean | undefined |
fromBlock extends undefined | bigint | BlockTag | undefined |
toBlock extends undefined | bigint | BlockTag | undefined |
Parameter | Type | Description |
---|---|---|
args ? | GetLogsParameters <abiEvent , abiEvents , strict , fromBlock , toBlock > | GetLogsParameters |
Promise
<GetLogsReturnType
<abiEvent
, abiEvents
, strict
, fromBlock
, toBlock
>>
A list of event logs. GetLogsReturnType
getProof: (args
) =>Promise
<GetProofReturnType
>
Parameter | Type |
---|---|
args | GetProofParameters |
Promise
<GetProofReturnType
>
Proof data. GetProofReturnType
getStorageAt: (args
) =>Promise
<GetStorageAtReturnType
>
Parameter | Type | Description |
---|---|---|
args | GetStorageAtParameters | GetStorageAtParameters |
Promise
<GetStorageAtReturnType
>
The value of the storage slot. GetStorageAtReturnType
getTransaction: <blockTag
>(args
) =>Promise
<object
|object
|object
|object
|object
>
Type Parameter | Default type |
---|---|
blockTag extends BlockTag | "latest" |
Parameter | Type | Description |
---|---|---|
args | GetTransactionParameters <blockTag > | GetTransactionParameters |
Promise
<object
| object
| object
| object
| object
>
The transaction information. GetTransactionReturnType
getTransactionConfirmations: (args
) =>Promise
<bigint
>
Parameter | Type | Description |
---|---|---|
args | GetTransactionConfirmationsParameters <Chain > | GetTransactionConfirmationsParameters |
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: (args
) =>Promise
<number
>
Parameter | Type | Description |
---|---|---|
args | GetTransactionCountParameters | GetTransactionCountParameters |
Promise
<number
>
The number of transactions an account has sent. GetTransactionCountReturnType
getTransactionReceipt: (args
) =>Promise
<TransactionReceipt
>
Parameter | Type | Description |
---|---|---|
args | GetTransactionReceiptParameters | GetTransactionReceiptParameters |
Promise
<TransactionReceipt
>
The transaction receipt. GetTransactionReceiptReturnType
key: string
A key for the client.
multicall: <contracts
,allowFailure
>(args
) =>Promise
<MulticallReturnType
<contracts
,allowFailure
>>
Type Parameter | Default type |
---|---|
contracts extends readonly unknown [] | - |
allowFailure extends boolean | true |
Parameter | Type | Description |
---|---|---|
args | MulticallParameters <contracts , allowFailure > | MulticallParameters |
Promise
<MulticallReturnType
<contracts
, allowFailure
>>
An array of results with accompanying status. MulticallReturnType
name: string
A name for the client.
pollingInterval: number
Frequency (in ms) for polling enabled actions & events. Defaults to 4_000 milliseconds.
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 Parameter | Default type |
---|---|
request extends Omit <object , "from" > | Omit <object , "from" > | Omit <object , "from" > | Omit <object , "from" > | Omit <object , "from" > & object & object | - |
chainOverride extends undefined | Chain | undefined |
accountOverride extends undefined | `0x${string}` | Account | undefined |
Parameter | Type | Description |
---|---|---|
args | PrepareTransactionRequestParameters <Chain , undefined | Account , chainOverride , accountOverride , request > | PrepareTransactionRequestParameters |
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: <abi
,functionName
,args
>(args
) =>Promise
<ReadContractReturnType
<abi
,functionName
,args
>>
Type Parameter |
---|
abi extends Abi | readonly unknown [] |
functionName extends string |
args extends unknown |
Parameter | Type | Description |
---|---|---|
args | ReadContractParameters <abi , functionName , args > | ReadContractParameters |
Promise
<ReadContractReturnType
<abi
, functionName
, args
>>
The response from the contract. Type is inferred. ReadContractReturnType
request:Request function wrapped with friendly error handlingEIP1193RequestFn
<PublicRpcSchema
>
sendRawTransaction: (args
) =>Promise
<`0x${string}`>
Parameter | Type |
---|---|
args | SendRawTransactionParameters |
Promise
<`0x${string}`>
The transaction hash. SendRawTransactionReturnType
simulate: <calls
>(args
) =>Promise
<SimulateBlocksReturnType
<calls
>>
Type Parameter |
---|
calls extends readonly unknown [] |
Parameter | Type |
---|---|
args | SimulateBlocksParameters <calls > |
Promise
<SimulateBlocksReturnType
<calls
>>
simulateBlocks
instead.
simulateBlocks: <calls
>(args
) =>Promise
<SimulateBlocksReturnType
<calls
>>
Type Parameter |
---|
calls extends readonly unknown [] |
Parameter | Type |
---|---|
args | SimulateBlocksParameters <calls > |
Promise
<SimulateBlocksReturnType
<calls
>>
Simulated blocks. SimulateReturnType
simulateCalls: <calls
>(args
) =>Promise
<SimulateCallsReturnType
<calls
>>
Type Parameter |
---|
calls extends readonly unknown [] |
Parameter | Type |
---|---|
args | SimulateCallsParameters <calls > |
Promise
<SimulateCallsReturnType
<calls
>>
Results. SimulateCallsReturnType
simulateContract: <abi
,functionName
,args
,chainOverride
,accountOverride
>(args
) =>Promise
<SimulateContractReturnType
<abi
,functionName
,args
,Chain
,undefined
|Account
,chainOverride
,accountOverride
>>
Type Parameter | Default type |
---|---|
abi extends Abi | readonly unknown [] | - |
functionName extends string | - |
args extends unknown | - |
chainOverride extends undefined | Chain | - |
accountOverride extends undefined | `0x${string}` | Account | undefined |
Parameter | Type | Description |
---|---|---|
args | SimulateContractParameters <abi , functionName , args , Chain , chainOverride , accountOverride > | SimulateContractParameters |
Promise
<SimulateContractReturnType
<abi
, functionName
, args
, Chain
, undefined
| Account
, chainOverride
, accountOverride
>>
The simulation result and write request. SimulateContractReturnType
transport:The RPC transportTransportConfig
<"http"
,EIP1193RequestFn
> &object
optional
fetchOptions:Omit
<RequestInit
,"body"
>
optional
url:string
type: string
The type of client.
uid: string
A unique ID for the client.
uninstallFilter: (args
) =>Promise
<boolean
>
Parameter | Type | Description |
---|---|---|
args | UninstallFilterParameters | UninstallFilterParameters |
Promise
<boolean
>
A boolean indicating if the Filter was successfully uninstalled. UninstallFilterReturnType
verifyMessage: (args
) =>Promise
<boolean
>
Parameter | Type | Description |
---|---|---|
args | object | - |
args.address | `0x${string}` | The address that signed the original message. |
args.blockNumber ? | bigint | The balance of the account at a block number. |
args.blockTag ? | BlockTag | The balance of the account at a block tag. Default 'latest' |
args.factory ? | `0x${string}` | - |
args.factoryData ? | `0x${string}` | - |
args.message | SignableMessage | The message to be verified. |
args.signature | `0x${string}` | Signature | ByteArray | The signature that was generated by signing the message with the address’s private key. |
args.universalSignatureVerifierAddress ? | `0x${string}` | - |
Promise
<boolean
>
Whether or not the signature is valid. VerifyMessageReturnType
verifySiweMessage: (args
) =>Promise
<boolean
>
Parameter | Type | Description |
---|---|---|
args | object | - |
args.address ? | `0x${string}` | Ethereum address to check against. |
args.blockNumber ? | bigint | The balance of the account at a block number. |
args.blockTag ? | BlockTag | The balance of the account at a block tag. Default 'latest' |
args.domain ? | string | RFC 3986 authority to check against. |
args.message | string | EIP-4361 formatted message. |
args.nonce ? | string | Random string to check against. |
args.scheme ? | string | RFC 3986 URI scheme to check against. |
args.signature | `0x${string}` | Signature to check against. |
args.time ? | Date | Current time to check optional expirationTime and notBefore fields. Default new Date() |
Promise
<boolean
>
Whether or not the signature is valid. VerifySiweMessageReturnType
verifyTypedData: (args
) =>Promise
<boolean
>
Parameter | Type |
---|---|
args | VerifyTypedDataParameters |
Promise
<boolean
>
Whether or not the signature is valid. VerifyTypedDataReturnType
waitForTransactionReceipt: (args
) =>Promise
<TransactionReceipt
>
Parameter | Type | Description |
---|---|---|
args | WaitForTransactionReceiptParameters <Chain > | WaitForTransactionReceiptParameters |
Promise
<TransactionReceipt
>
The transaction receipt. WaitForTransactionReceiptReturnType
watchBlockNumber: (args
) =>WatchBlockNumberReturnType
Parameter | Type | Description |
---|---|---|
args | WatchBlockNumberParameters | WatchBlockNumberParameters |
WatchBlockNumberReturnType
A function that can be invoked to stop watching for new block numbers. WatchBlockNumberReturnType
watchBlocks: <includeTransactions
,blockTag
>(args
) =>WatchBlocksReturnType
Type Parameter | Default type |
---|---|
includeTransactions extends boolean | false |
blockTag extends BlockTag | "latest" |
Parameter | Type | Description |
---|---|---|
args | WatchBlocksParameters <HttpTransport , Chain , includeTransactions , blockTag > | WatchBlocksParameters |
WatchBlocksReturnType
A function that can be invoked to stop watching for new block numbers. WatchBlocksReturnType
watchContractEvent: <abi
,eventName
,strict
>(args
) =>WatchContractEventReturnType
Type Parameter | Default type |
---|---|
abi extends Abi | readonly unknown [] | - |
eventName extends string | - |
strict extends undefined | boolean | undefined |
Parameter | Type | Description |
---|---|---|
args | WatchContractEventParameters <abi , eventName , strict , HttpTransport > | WatchContractEventParameters |
WatchContractEventReturnType
A function that can be invoked to stop watching for new event logs. WatchContractEventReturnType
watchEvent: <abiEvent
,abiEvents
,strict
>(args
) =>WatchEventReturnType
Type Parameter | Default type |
---|---|
abiEvent extends undefined | AbiEvent | undefined |
abiEvents extends undefined | readonly unknown [] | readonly AbiEvent [] | abiEvent extends AbiEvent ? [abiEvent <abiEvent >] : undefined |
strict extends undefined | boolean | undefined |
Parameter | Type | Description |
---|---|---|
args | WatchEventParameters <abiEvent , abiEvents , strict , HttpTransport > | WatchEventParameters |
WatchEventReturnType
A function that can be invoked to stop watching for new Event Logs. WatchEventReturnType
watchPendingTransactions: (args
) =>WatchPendingTransactionsReturnType
Parameter | Type | Description |
---|---|---|
args | WatchPendingTransactionsParameters <HttpTransport > | WatchPendingTransactionsParameters |
WatchPendingTransactionsReturnType
A function that can be invoked to stop watching for new pending transaction hashes. WatchPendingTransactionsReturnType
send<Send a token to a wallet or user locatorT
>(to
,token
,amount
,options
?):Promise
<Transaction
<T
extendsobject
?true
:false
>>
Type Parameter | Default type |
---|---|
T extends undefined | TransactionInputOptions | undefined |
Parameter | Type | Description |
---|---|---|
to | string | UserLocator | The recipient (address or user locator) |
token | string | The token (address or currency symbol) |
amount | string | The amount to send (decimal units) |
options ? | T | The options for the transaction |
Promise
<Transaction
<T
extends object
? true
: false
>>
The transaction
Wallet
.send
sendTransaction<T
>(params
):Promise
<Transaction
<T
["options"
] extendsobject
?true
:false
>>
Type Parameter |
---|
T extends EVMTransactionInput |
Parameter | Type |
---|---|
params | T |
Promise
<Transaction
<T
["options"
] extends object
? true
: false
>>
signMessage(message
):Promise
<string
>
Parameter | Type |
---|---|
message | string |
Promise
<string
>
signTypedData<typedData
,primaryType
>(params
):Promise
<string
>
Type Parameter | Default type |
---|---|
typedData extends Record <string , unknown > | object | - |
primaryType extends string | number | symbol | keyof typedData |
Parameter | Type |
---|---|
params | TypedDataDefinition <typedData , primaryType , typedData extends object ? keyof typedData <typedData > : string > & object |
Promise
<string
>
static
from(wallet
):EVMWallet
Parameter | Type |
---|---|
wallet | Wallet <Chain > |
EVMWallet