@tradle/ethereum-adapter

2.0.1 • Public • Published

@tradle/ethereum-adapter

Ethereum network adapter for @tradle/engine

See adapter API spec

Usage

const EthAdapter = require('@tradle/ethereum-adapter')
const network = EthAdapter.createNetwork({
  networkName: 'ropsten'
})

const privateKey = KEY_BUFFER
const node = tradle.node({
  // ...
  network,
  blockchain: network.createBlockchainAPI(),
  transactor: network.createTransactor({ privateKey })
  // ..
})

Todo

to enable new version detection the deterministic address can be put in the data field. In bitcoin-adapter, it's put in a 2nd output address.

Readme

Keywords

none

Package Sidebar

Install

npm i @tradle/ethereum-adapter

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

18.5 kB

Total Files

6

Last publish

Collaborators

  • spwilko
  • genevayngrib
  • tenaciousmv
  • pgmemk