@xchainjs/xchain-avax
v2.0.15
Published
Avax EVM client for XChainJS
Readme
@xchainjs/xchain-avax
Modules
client- Custom client for communicating with avax by usingethers
Installation
yarn add @xchainjs/xchain-avaxor
npm install @xchainjs/xchain-avaxFollowing peer dependencies have to be installed into your project. These are not included in @xchainjs/xchain-avax.
yarn add @xchainjs/xchain-evm @xchainjs/xchain-client @xchainjs/xchain-crypto @xchainjs/xchain-util axios ethersDocumentation
xchain avax
How xchain-avax worksHow to use xchain-avax
Service Providers
This package uses the following service providers:
| Function | Service | Notes |
| ------------------------- | --------- | ---------------------------------------------------------------------------------- |
| ETH balances | Etherscan | https://api.snowtrace.io/apis#accounts (module=account, action=balance) |
| Token balances | Etherscan | https://api.snowtrace.io/apis#tokens (module=account, action=tokenbalance) |
| ETH transaction history | Etherscan | https://api.snowtrace.io/apis#accounts (module=account, action=txlistinternal) |
| Token transaction history | Etherscan | https://api.snowtrace.io/apis#accounts (module=account, action=tokentx) |
| Explorer | Etherscan | https://snowtrace.io/ |
Etherscan API rate limits: https://snowtrace.io/apis
- This package uses
etherjslibrary, by default it uses several providers. (https://docs.ethers.io/v5/api-keys/)
Environment Variables
SNOWTRACE_API_KEY={YOUR_SNOWTRACE_API_KEY}
COVALENT_API_KEY={YOUR_COVALENT_API_KEY}Default config can access.
process.env.SNOWTRACE_API_KEY
process.env.COVALENT_API_KEY