Overview
CoinbaseWalletProvider
is an EIP-1193 compliant Ethereum Javascript provider.
It handles requests via its request
method. For example
example.ts
const provider = sdk.makeWeb3Provider();
const addresses = provider.request('eth_requestAccounts');
provider.request('personal_sign', [
`0x${Buffer.from('test message', 'utf8').toString('hex')}`,
addresses[0],
]);
Please see the EIP for detailed specifications of request and response format.
We will not document all requests that can be made with this method. There is good documentation of this elsewhere. We will, however, document a few new RPCs that can be uniquely used with Smart Wallet.