
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@xchainjs/xchain-ethereum
Advanced tools
@xchainjs/xchain-ethereum
client
- Custom client for communicating with Ethereum by using ethers
yarn add @xchainjs/xchain-ethereum
Following peer dependencies have to be installed into your project. These are not included in @xchainjs/xchain-ethereum
.
yarn add @xchainjs/xchain-client @xchainjs/xchain-crypto @xchainjs/xchain-util axios ethers
xchain ethereum
How xchain-ethereum works
How to use xchain-ethereum
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/
etherjs
library, by default it uses several providers. (https://docs.ethers.io/v5/api-keys/
)ETHERSCAN_API_KEY={YOUR_ETHERSCAN_API_KEY}
Default config can access.
process.env.ETHERSCAN_API_KEY
FAQs
Ethereum EVM client for XChainJS
We found that @xchainjs/xchain-ethereum demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.