window.ethereum
.
You can use this provider in your app to request users’ Ethereum accounts, read on-chain data, and have the user sign messages and transactions, without using the Coinbase Wallet SDK.
ethereum.request({ method: 'eth_requestAccounts' })
will start a built-in onboarding flow.ethereum.request({ method: 'eth_requestAccounts' })
will automatically deep-link to your app in the Coinbase Wallet native mobile app.window.ethereum.providers
containing the injected provider from each wallet. Coinbase Wallet can be identified in this array by the isCoinbaseWallet
property.
More information can be found in our doc on Handling Multiple Injected Extensions.
isCoinbaseWallet
request(args)
request(args)
to wrap an RPC API. The params and return value vary by RPC method.
If the request fails for any reason, the Promise will reject with an Ethereum RPC Error.
Coinbase Wallet supports many standardized Ethereum RPC methods, including:
eth_requestAccounts
wallet_addEthereumChain
wallet_switchEthereumChain
wallet_watchAsset
eth_sendTransaction
eth_sendRawTransaction
eth_newFilter
eth_newBlockFilter
eth_newPendingTransactionFilter
eth_getFilterChanges
eth_getFilterLogs
eth_sign
personal_sign
eth_signTypedData
eth_signTransaction
signTypedData_v1
signTypedData_v3
signTypedData_v4