Get an Ethereum provider instance from the Base Account SDK
getProvider()
method returns an Ethereum provider instance that complies with EIP-1193 standards. This provider can be used with popular web3 libraries like Viem, Wagmi, and Web3.js.
eth_requestAccounts
, eth_sendTransaction
, wallet_sendCalls
etc.)coinbase_fetchPermissions
)accountsChanged
, chainChanged
, etc.)getProvider()
method is the primary way to interact with Base Account from your application, providing a standard interface that works seamlessly with the web3 ecosystem.