0.0.1 • Published 5 years ago

blockchain-tx-service v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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);
0.0.1

5 years ago