sync-infura
v0.0.1
Published
## install:
Downloads
3
Readme
sync-infura
install:
npm install -g infura
yarn global add infura
usage:
Usage: infura [options]
Options:
-V, --version output the version number
-p, --provider <required> provider url
-b, --build-dir <required> build folder
-m, --mongo-url <required> mongo url (default: mongodb://localhost:27017/infura)
-e, --exit-onerror exit on error
-n, --network-id networkId
-h, --help output usage information
example:
$ infura --provider=https://rinkeby.infura.io/WpC3zN9Ep7LZNuKenSY3 \
--build-dir=/Users/Cheerfyt/Art/Demo/Solidity/xSphinx/expressage/backend/build/contracts
out put
{ __v: 0,
blockHash: '0xb4e2fd61518283f4bdefd3f9daf937cb15d74b6d3e32ade9bcfa2734e88e1f06',
blockNumber: '0x14ea9a',
contractAddress: null,
cumulativeGasUsed: '0x539fd',
from: '0x43a93c24de26edae0ef1edeb72e8fdf785cc0f8a',
gasUsed: '0x19e98',
logsBloom: '0x000000000000002008000000100000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000
0000080000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000
0000800000000000000080000000000000000000200000000000000000000000000000000000200000000000000000000000000000000000000000000000',
status: '0x1',
to: '0x8b89d9c5dd3321d18d0a0b29126c96863f736abb',
transactionHash: '0x9a7a26fe7cd0e65465c02b57576f9a9851e3bdc92c8b3775a51ff3ecd3c9beb6',
transactionIndex: '0x2',
_id: 5a28b01d1a06d246bfb748d1,
logs:
[ { args: [Object],
event: 'SetOrderInfo',
removed: false,
logIndex: 0,
blockHash: '0xb4e2fd61518283f4bdefd3f9daf937cb15d74b6d3e32ade9bcfa2734e88e1f06',
transactionIndex: 2,
transactionHash: '0x9a7a26fe7cd0e65465c02b57576f9a9851e3bdc92c8b3775a51ff3ecd3c9beb6',
blockNumber: 1370778,
address: '0xb17b0bc8b627c90092f6dc082a722ce24db26fb9' },
{ args: [Object],
event: 'CreateOrder',
removed: false,
logIndex: 1,
blockHash: '0xb4e2fd61518283f4bdefd3f9daf937cb15d74b6d3e32ade9bcfa2734e88e1f06',
transactionIndex: 2,
transactionHash: '0x9a7a26fe7cd0e65465c02b57576f9a9851e3bdc92c8b3775a51ff3ecd3c9beb6',
blockNumber: 1370778,
address: '0x8b89d9c5dd3321d18d0a0b29126c96863f736abb' } ] }