blockchain-tx-service
Delegated transaction service for the Ethereum blockchain
Last updated 2 years ago by adamjlemmon .
MIT · Original npm · Tarball · package.json
$ cnpm install blockchain-tx-service 
SYNC missed versions from official npm registry.

Delegation Service

  1. Deploy contract to the Kovan testnet and push all contract ABIs to ipfs
  2. Send transactions directly from this service

API

sendTransaction(abiMultihash, address, method, inputParameters)

* delegate the transaction, by paying for it through to an infura node.

Usage

  1. Subscribe online to retrieve your api key
  2. Add the module to your application

.. code-block:: console

yarn add ethereum-delegated-transaction
  1. Import the module

.. code-block:: JavaScript

const TxService = require('ethereum-tx-service');
  1. Create a connection to the service

.. code-block:: JavaScript

const txService = new TxService(url, apiKey);
// ie. infura: const ipfs = ipfsAPI({host: 'ipfs.infura.io', port: '5001', protocol: 'https'})
  1. Start delegating transactions!

.. code-block:: JavaScript

const tx = await txService.delegateTransaction(... bunch of input params);

Current Tags

  • 0.0.1                                ...           latest (2 years ago)

1 Versions

  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |