@xchainjs/xchain-arbitrum
v1.0.12
Published
Arbitrum EVM client for XChainJS
Downloads
227
Readme
@xchainjs/xchain-arbitrum
Modules
client
- Custom client for communicating with Arbitrum by usingethers
Installation
yarn add @xchainjs/xchain-arbitrum
Following peer dependencies have to be installed into your project. These are not included in @xchainjs/xchain-arbitrum
.
yarn add @xchainjs/xchain-evm @xchainjs/xchain-client @xchainjs/xchain-crypto @xchainjs/xchain-util axios ethers
Documentation
xchain arbitrum
How xchain-arbitrum works
How to use xchain-arbitrum
Service Providers
This package uses the following service providers:
| Function | Service | Notes |
| ------------------------- | --------- | ---------------------------------------------------------------------------------- |
| ETH balances | Arbirscan | https://api.arbiscan.io/apis#accounts (module=account
, action=balance
) |
| Token balances | Arbiscan | https://api.arbiscan.io/apis#tokens (module=account
, action=tokenbalance
) |
| ETH transaction history | Arbiscan | https://api.arbiscan.io/apis#accounts (module=account
, action=txlistinternal
) |
| Token transaction history | Arbiscan | https://api.arbiscan.io/apis#accounts (module=account
, action=tokentx
) |
| Explorer | Arbiscan | https://arbiscan.io/ |
Etherscan API rate limits: https://arbiscan.io/apis
- This package uses
etherjs
library, by default it uses several providers. (https://docs.ethers.io/v5/api-keys/
)
// set in env variables so default config can access.
ARBISCAN_API_KEY={YOUR_ARBISCAN_API_KEY}
//Default config can access. process.env.ARBISCAN_API_KEY