Package Exports
- @mayaprotocol/xchain-avax
- @mayaprotocol/xchain-avax/lib/index.esm.js
- @mayaprotocol/xchain-avax/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mayaprotocol/xchain-avax) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@mayaprotocol/xchain-avax
Modules
client
- Custom client for communicating with avax by usingethers
Installation
yarn add @mayaprotocol/xchain-avax
Following peer dependencies have to be installed into your project. These are not included in @mayaprotocol/xchain-avax
.
yarn add @mayaprotocol/xchain-evm @mayaprotocol/xchain-client @mayaprotocol/xchain-crypto @mayaprotocol/xchain-util axios ethers
Documentation
xchain avax
How xchain-avax works
How 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
etherjs
library, by default it uses several providers. (https://docs.ethers.io/v5/api-keys/
)