Socket
Socket
Sign inDemoInstall

@xchainjs/xchain-ethereum

Package Overview
Dependencies
Maintainers
0
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xchainjs/xchain-ethereum

Ethereum EVM client for XChainJS


Version published
Weekly downloads
297
decreased by-21.01%
Maintainers
0
Weekly downloads
 
Created
Source

@xchainjs/xchain-ethereum

Modules

  • client - Custom client for communicating with Ethereum by using ethers

Installation

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

Documentation

xchain ethereum

How xchain-ethereum works
How to use xchain-ethereum

Service Providers

This package uses the following service providers:

FunctionServiceNotes
ETH balancesEtherscanhttps://etherscan.io/apis#accounts (module=account, action=balance)
Token balancesEtherscanhttps://etherscan.io/apis#tokens (module=account, action=tokenbalance)
ETH transaction historyEtherscanhttps://etherscan.io/apis#accounts (module=account, action=txlistinternal)
Token transaction historyEtherscanhttps://etherscan.io/apis#accounts (module=account, action=tokentx)
Transaction feesEtherscanhttps://etherscan.io/apis#gastracker (module=gastracker, action=gasoracle)
Transaction broadcastEtherscanhttps://sebs.github.io/etherscan-api/#eth_sendrawtransaction
ExplorerEtherscanhttps://etherscan.io/

Etherscan API rate limits: https://info.etherscan.com/api-return-errors/

  • This package uses etherjs library, by default it uses several providers. (https://docs.ethers.io/v5/api-keys/)

Enviroment variables

ETHERSCAN_API_KEY={YOUR_ETHERSCAN_API_KEY}

Default config can access.

process.env.ETHERSCAN_API_KEY

Keywords

FAQs

Package last updated on 25 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc