This plugin provides actions and providers for interacting with Arthera.
By default, Arthera is enabled. To use it, simply add your private key to the .env file:
ARTHERA_PRIVATE_KEY=your-private-key-hereBy default, the RPC URL is inferred from the viem/chains config. To use a custom RPC URL for a specific chain, add the following to your .env file:
ETHEREUM_PROVIDER_<CHAIN_NAME>=https://your-custom-rpc-urlExample usage:
ETHEREUM_PROVIDER_ARTHERA=https://rpc.arthera.netThe Wallet Provider initializes with Arthera. It:
- Provides the context of the currently connected address and its balance.
- Creates Public and Wallet clients to interact with the supported chain.
Transfer tokens from one address to another on Arthera. Just specify the:
- Amount
- Chain
- Recipient Address
Example usage:
Transfer 1 AA to 0xRecipient on arthera.The plugin contains tests. Whether you're using TDD or not, please make sure to run the tests before submitting a PR.
Navigate to the plugin-arthera directory and run:
pnpm test