@mayaprotocol/xchain-ethereum
v0.27.5
Published
Ethereum client for XChainJS
Readme
@mayaprotocol/xchain-ethereum
Modules
client- Custom client for communicating with Ethereum by usingethers
Installation
yarn add @mayaprotocol/xchain-ethereumFollowing peer dependencies have to be installed into your project. These are not included in @mayaprotocol/xchain-ethereum.
yarn add @mayaprotocol/xchain-client @mayaprotocol/xchain-crypto @mayaprotocol/xchain-util axios ethersDocumentation
xchain ethereum
How xchain-ethereum worksHow to use xchain-ethereum
Service Providers
This package uses the following service providers:
| Function | Service | Notes |
| ------------------------- | --------- | ------------------------------------------------------------------------------ |
| ETH balances | Etherscan | https://etherscan.io/apis#accounts (module=account, action=balance) |
| Token balances | Etherscan | https://etherscan.io/apis#tokens (module=account, action=tokenbalance) |
| ETH transaction history | Etherscan | https://etherscan.io/apis#accounts (module=account, action=txlistinternal) |
| Token transaction history | Etherscan | https://etherscan.io/apis#accounts (module=account, action=tokentx) |
| Transaction fees | Etherscan | https://etherscan.io/apis#gastracker (module=gastracker, action=gasoracle) |
| Transaction broadcast | Etherscan | https://sebs.github.io/etherscan-api/#eth_sendrawtransaction |
| Explorer | Etherscan | https://etherscan.io/ |
Etherscan API rate limits: https://info.etherscan.com/api-return-errors/
- This package uses
etherjslibrary, by default it uses several providers. (https://docs.ethers.io/v5/api-keys/)
