@xchainjs/xchain-evm-providers
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

XChainJS API UTXO providers Interface

A specification for a generalised interface for api providers, to be used by XChainJS implementations. The providers should not have any functionality to generate a key, instead, the xchain-crypto library should be used to ensure cross-chain compatible keystores are handled. The providers is only ever passed a master BIP39 phrase, from which a temporary key and address is decoded.

Documentation

Design

The OnlineDataProvider has the following signature:

export interface OnlineDataProvider {
  getBalance(address: Address, assets?: Asset[]): Promise<Balance[]>
  getTransactions(params: TxHistoryParams): Promise<TxsPage>
  getTransactionData(txId: string, assetAddress?: Address): Promise<Tx>
}

Implementations

Etherscan / bscscan / snowtrace

Websites:         https://snowtrace.io/ , https://bscscan.com/ , https://etherscan.io/
Status:           Complete
FreeTier:         Yes
Chains supported: ETH, BSC, ETH

Covalent

Website:          https://www.covalenthq.com/
Status:           Complete
FreeTier:         Yes
Chains supported: ETH, BSC, ETH

Readme

Keywords

none

Package Sidebar

Install

npm i @xchainjs/xchain-evm-providers

Weekly Downloads

346

Version

1.0.9

License

MIT

Unpacked Size

80.6 kB

Total Files

16

Last publish

Collaborators

  • xchainjsadmin
  • thorianite
  • polaris_9r
  • thorchain_org
  • _stu
  • veado
  • thatstrangeguy
  • junkai121
  • sarawut11
  • thorswap
  • hodrthemediocre