Skip to main content
Base uses the same transaction model as Ethereum, so any EVM library works. Here’s a minimal send using viem.

Send a Transaction

send.ts
Never hardcode or expose a private key. '0xYourPrivateKey' is a placeholder. Load the key from an environment variable or a secrets manager, keep it server-side, and never commit it to source control.
Transactions confirm in under a second on Base thanks to Flashblocks, and typically cost a fraction of a cent in gas.

Next Steps

Issue a Stablecoin

Launch a fiat-backed token in one call.

Facilitate Payments

Accept USDC with one-tap checkout.