How to use Coinbase balances onchain with Base Account
wallet_getCapabilities
RPC calls with the auxiliaryFunds
capability for each chain Base Account users can use their Coinbase balances on.
If your app supports Base Account, it should not assume it knows the full balances available to a user if the auxiliaryFunds
capability is present on a given chain. For example, if your app disables a transaction button if it sees that the wallet has insufficient funds, your app should take auxiliaryFunds
into account and enable the button if the account has auxiliaryFunds
on the chain the user is transacting on.
address
stored in your component state (from your wallet connection flow).
auxiliaryFunds
) is available for that address on Base and if not, disable the send button accordingly.
address
from your own wallet logic.wallet_getCapabilities
whenever the address changes.auxiliaryFunds.supported
for the Base chain (8453
).