본문으로 건너뛰기

EVM API 개요

Pali의 EVM provider는 window.ethereum을 통해 노출되며 표준 MetaMask-style dapp integration과 호환됩니다.

일반 method

영역Method
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
Passkeyswallet_prepareSmartAccount

Provider request 형태

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

Read-only RPC proxying

Pali는 block, transaction, receipt, log, fee, balance, code, storage, proof query를 포함한 많은 read-only Ethereum JSON-RPC method를 active RPC provider로 forward합니다.

지원되지 않는 subscription

eth_subscribeeth_unsubscribe는 in-wallet provider에서 지원되지 않습니다. subscription이 많은 application state에는 자체 WebSocket RPC provider를 사용하세요.