Skip to main content
Before using faremeter, you need a wallet with funds on the network you plan to use. This guide covers creating wallets and funding them for development.

Solana

Creating a wallet

1

Install Solana CLI

2

Create a new keypair

Save the output address — you’ll need it for funding.
3

Secure your keypair

Never commit keypair files to version control. Add them to your .gitignore:
If you already have a Solana wallet (Phantom, Solflare, etc.), export your private key and convert it to the keypair JSON format.
Never share your private key or keypair file. Anyone with access can control your funds.

Funding on devnet

Devnet tokens are free. Your wallet needs SOL for transaction fees and USDC for payments.
For devnet USDC, use the SPL Token Faucet or the Solana devnet faucet.

Funding on mainnet

For production use, your wallet needs:
  1. SOL — For transaction fees (~0.000005 SOL per transaction). Purchase from an exchange (Coinbase, Kraken, etc.) and transfer to your wallet address. Start with 0.05–0.1 SOL.
  2. USDC — For payments. Ensure you purchase Solana USDC (mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v), not Ethereum USDC.
Start small. Begin with 1–10 USDC to test before funding larger amounts.

EVM

Creating a wallet

Generate an EVM private key using any of these methods:
Or use a wallet like MetaMask and export the private key. The key should be a 64-character hex string (prefix with 0x in your .env).

Funding on Base Sepolia

Base Sepolia is the recommended EVM testnet. You need:
  1. Sepolia ETH — For gas fees. Use the Base Sepolia Faucet or bridge from Sepolia ETH.
  2. Testnet USDC — For payments. Available from faucets or bridging.

EVM network identifiers

When configuring an EVM wallet, you pass the chain ID and name:
See Networks & Assets for the full list of supported EVM networks.

OWS (Open Wallet Standard)

If you prefer vault-backed key management over raw keypair files, you can use Open Wallet Standard. OWS encrypts private keys at rest and never exposes them to your application — useful for production agents and shared environments.

Installing OWS

Importing an existing key

Import a Solana or EVM key into the OWS vault:
The wallet name and passphrase are used later when creating a faremeter wallet adapter. See Wallet Configuration for the next step.
OWS wallets use the same underlying keys as local keypairs. Funding instructions are identical — see the Solana and EVM sections above.

Environment variables

Create a .env file in your project root:
.env
Load it in your application:

Security best practices

  • Never commit .env files to version control
  • Never expose keypairs in logs or error messages
  • Use different wallets for development and production
Add to your .gitignore:

Next steps