Connects to the EVM network
OptionalchainId: number(Optional) The chainId of this network
OptionalisEIP1559: boolean(Optional) Whether this network uses EIP-1559
A boolean indicating whether the connection was successful
When parameters are not provided, they are automatically inferred from the network.
Creates a skeleton transaction
Get the balance of a token
The address of the token contract
The address of the wallet
The balance of the token
Listen for all events from a contract
The address of the contract to listen to
The ABI of the contract to listen to
The callback to call when an event is emitted
Rest...args: any[]A function to remove the listener
Listen for a specific event from a contract
The address of the contract to listen to
The ABI of the contract to listen to
The event to listen to
The timeout in milliseconds before the listener is removed
A promise that resolves to the event data or rejects if the timeout is reached
AliasCreates a signed transaction to transfer default chain currency
The amount to transfer
Optionaloptions: { Options
OptionalgasThe signed transaction
prepareTransfer
Creates a list of signed transactions to transfer default chain currency
A list of transfers to prepare
Optionaloptions: { Options
OptionalgasAn ordered list of signed transactions
Creates a signed transaction to transfer default chain currency
The signed transaction
Creatthis.provider = new JsonRpcProvider(this.rpc_url)es a list of signed transactions to transfer default chain currency
A list of transfers to prepare
Optionaloptions: OptionsOptions
An ordered list of signed transactions
Signs a list of transactions using the connected wallet. The transaction nonce is incremented for each transaction in order of appearance.
A list of transactions to sign
Optionaloptions: { Options
OptionalprivateStaticcreate
Interface for web sdk exclusive methods