An open API service indexing awesome lists of open source software.

https://github.com/tradle/ethereum-adapter

Tradle adapts to many chains, this is Ethereum adapter
https://github.com/tradle/ethereum-adapter

Last synced: about 1 year ago
JSON representation

Tradle adapts to many chains, this is Ethereum adapter

Awesome Lists containing this project

README

          

# @tradle/ethereum-adapter

Ethereum network adapter for [@tradle/engine](https://github.com/tradle/engine)

See adapter [API spec](https://github.com/tradle/engine/blob/eth/adapter.md)

## Usage

```js
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.