request method allows apps to make Ethereum RPC requests to the wallet.
Specification
Example
Request Handling
Requests are handled in one of three ways- Sent to the Wallet application (Wallet mobile app, extension, or popup window).
- Handled locally by the SDK.
- Passed onto default RPC provider for the given chain, if it exists.
1. Sent to the Wallet application
The following RPC requests are sent to the Wallet application:personal_signeth_sendTransactioneth_sendRawTransactioneth_signTypedData_v4wallet_addEthereumChainwallet_watchAssetwallet_sendCallswallet_getCallsStatuswallet_connectwallet_getCapabilitieswallet_switchEthereumChainwallet_addSubAccountwallet_getSubAccountscoinbase_fetchPermissionscoinbase_fetchPermission
2. Handled Locally by the SDK
The following requests are handled locally by the SDK, with no external calls:3. Passed to RPC Provider
Standard Ethereum RPC methods are passed to the configured RPC provider for the current chain, including:eth_getBalanceeth_blockNumbereth_gasPriceeth_estimateGaseth_feeHistoryeth_getBlockByNumbereth_getBlockByHasheth_getTransactionByHasheth_getTransactionReceipteth_getTransactionCounteth_getTransactionByBlockHashAndIndexeth_getTransactionByBlockNumberAndIndexeth_getBlockTransactionCountByHasheth_getBlockTransactionCountByNumbereth_getCodeeth_getStorageAteth_getLogseth_getProofeth_getUncleCountByBlockHasheth_getUncleCountByBlockNumbereth_sendRawTransaction