Skip to main content

EVM API overview

Pali's EVM provider is exposed through window.ethereum and is compatible with standard MetaMask-style dapp integrations.

Common methods

AreaMethods
Connecteth_requestAccounts, eth_accounts
Networketh_chainId, net_version, wallet_switchEthereumChain, wallet_addEthereumChain
Transactionseth_sendTransaction, eth_sendRawTransaction, eth_estimateGas, eth_call
Signingpersonal_sign, eth_sign, eth_signTypedData, eth_signTypedData_v3, eth_signTypedData_v4
Permissionswallet_requestPermissions, wallet_getPermissions, wallet_revokePermissions
Assetswallet_watchAsset
Batcheswallet_sendCalls, wallet_getCapabilities
Smart accountswallet_prepareSmartAccount

Provider request shape

const result = await window.ethereum.request({
method: 'eth_chainId',
params: [],
});

Read-only RPC proxying

Pali forwards many read-only Ethereum JSON-RPC methods to the active RPC provider, including block, transaction, receipt, log, fee, balance, code, storage, and proof queries.

Unsupported subscriptions

eth_subscribe and eth_unsubscribe are not supported by the in-wallet provider. Use your own WebSocket RPC provider for subscription-heavy application state.