Wallet & Credits
Dria uses Ethereum wallets for identity and USDC on Base for payments. The CLI handles all of this for you.Create a wallet
- Generate a new Ethereum wallet
- Register the wallet with the Dria network
- Save your config (private key + API key) to
~/.dria/config.json
--force to overwrite:
Add credits
Deposit USDC credits via the x402 payment protocol:TransferWithAuthorization on Base and settles on-chain. You’ll see the transaction hash in the output.
Check balance
How payments work
Dria uses the x402 payment protocol. When you rundria topup:
- The CLI requests payment details from the server (receives a
402response) - Your wallet signs a USDC transfer authorization (EIP-3009 / EIP-712) on Base
- The signed authorization is sent back to complete the deposit
- Credits are added to your account immediately