blockchain-tx-service
v0.0.1
Published
Delegated transaction service for the Ethereum blockchain
Downloads
3
Readme
Delegation Service
- Deploy contract to the Kovan testnet and push all contract ABIs to ipfs
- 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
- Subscribe online to retrieve your api key
- Add the module to your application
.. code-block:: console
yarn add ethereum-delegated-transaction
- Import the module
.. code-block:: JavaScript
const TxService = require('ethereum-tx-service');
- 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'})
- Start delegating transactions!
.. code-block:: JavaScript
const tx = await txService.delegateTransaction(... bunch of input params);