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
- Host: GitHub
- URL: https://github.com/tradle/ethereum-adapter
- Owner: tradle
- Created: 2017-04-19T23:12:09.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-04-18T18:39:49.000Z (about 4 years ago)
- Last Synced: 2025-03-28T11:51:09.742Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 144 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.