Security Note: Your private key grants full access to your associated funds. Store it securely and never share it with anyone. Do not commit or upload your .env
file to version control systems like Git.
Vana_PRIVATE_KEY=your-private-key-here
Vana_PUBLIC_KEY=your-public-key-here
The RPC URL is inferred from the chains
. To use custom RPC URLs, add the following to your .env
file:
Vana_PROVIDER_URL=https://rpc.islander.vana.org
Vana_PROVIDER_URL=https://rpc.moksha.vana.org #testnet
The Wallet Provider initializes with Vana as the default. It:
- Provides the context of the currently connected address and its balance.
- Creates Public and Wallet clients to interact with the supported chains.
Transfer tokens from one address to another on Vana. Just specify the:
- Chain
- Token
- Amount
- Recipient Address
- Data(Optional)
Example usage:
Transfer 1 VANA to 0x on Vana.