Catalog npm
Back to packageRELEASE DETAILS

0.0.6

npm

3box-activity

An API for dapps to create an Ethereum activity feed

Published13 Sept 2018
Direct dependencies9
Transitive dependenciesNot calculated

README

Current package documentation

3box-activity

Warning: This project is under active development, APIs are subject to change.

An API for dapps to create an Ethereum activity feed

Usage

Simply install using npm

$ npm install 3box-activity

and then import into your project

const ThreeBoxActivity = require('3box-activity')

Classes

ThreeBoxActivity

ThreeBoxActivity

Kind: global class

ThreeBoxActivity.get(address) ⇒ Object

Get the activity (transaction) of the given ethereum address

Kind: static method of ThreeBoxActivity

Returns: Object - a list of activities the address has on the blockchain

The returned object has the following structure:

{
    txs: <array of transactions>,
    internal: <array of internal transactions>,
    tokens: <array of token transfers>
}

A transaction object has the following structure:

{
    blockNumber: '54092',
    timeStamp: '1439048640',
    hash: '0x9c81f44c29ff0226f835cd0a8a2f2a7eca6db52a711f8211b566fd15d3e0e8d4',
    nonce: '0',
    blockHash: '0xd3cabad6adab0b52eb632c386ea194036805713682c62cb589b5abcd76de2159',
    transactionIndex: '0',
    from: '0x5abfec25f74cd88437631a7731906932776356f9',
    to: '',
    value: '11901464239480000000000000',
    gas: '2000000',
    gasPrice: '10000000000000',
    isError: '0',
    txreceipt_status: '',
    input: '0x6060...',
    contractAddress: '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae',
    cumulativeGasUsed: '1436963',
    gasUsed: '1436963',
    confirmations: '6258536'
    }

An internal transaction object has the following structure:

{
    blockNumber: '92038',
    timeStamp: '1439665825',
    hash: '0x0da5bba6e4d8503985aec506c965a5fd3aeeed197ebf268750f65c3d50ad64a4',
    from: '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae',
    to: '0xb2d7e6cd1b25f591e2e630ba65dac638e6cd4c8e',
    value: '3091982000000000000000000',
    contractAddress: '',
    input: '',
    type: 'call',
    gas: '11674',
    gasUsed: '0',
    traceId: '0',
    isError: '1',
    errCode: ''
}

A token transfer object has the following structure:

{
    blockNumber: '4041874',
    timeStamp: '1500430428',
    hash: '0x8bcfce9af53f1c318aff183cd14a491aae68b0dd14172a3f40f83ee9cc452e68',
    nonce: '123',
    blockHash: '0x5467eba473d443d81e7841f8557e953079f9428cff72c4def556f9303907eaf9',
    from: '0x77744a927271f12dc5b9b8887064f07c37648829',
    contractAddress: '0xc63e7b1dece63a77ed7e4aeef5efb3b05c81438d',
    to: '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae',
    value: '696900',
    tokenName: 'Generictoken',
    tokenSymbol: 'TKN',
    tokenDecimal: '4',
    transactionIndex: '84',
    gas: '51810',
    gasPrice: '4000000000',
    gasUsed: '51809',
    cumulativeGasUsed: '3548636',
    input: '0xa9059...',
    confirmations: '2270754'
}

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 9

Native requirements
9 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
etherscan-api
Environment
{
  "local_name": "etherscan-api",
  "alias": false,
  "peer_metadata": null
}
^8.1.3runtime
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
^23.5.0development
babel-cli
Environment
{
  "local_name": "babel-cli",
  "alias": false,
  "peer_metadata": null
}
^6.26.0development
babel-runtime
Environment
{
  "local_name": "babel-runtime",
  "alias": false,
  "peer_metadata": null
}
^6.26.0development
babel-preset-env
Environment
{
  "local_name": "babel-preset-env",
  "alias": false,
  "peer_metadata": null
}
^1.6.1development
jsdoc-to-markdown
Environment
{
  "local_name": "jsdoc-to-markdown",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
babel-preset-react-app
Environment
{
  "local_name": "babel-preset-react-app",
  "alias": false,
  "peer_metadata": null
}
^3.1.2development
babel-plugin-transform-runtime
Environment
{
  "local_name": "babel-plugin-transform-runtime",
  "alias": false,
  "peer_metadata": null
}
^6.23.0development
babel-plugin-transform-object-rest-spread
Environment
{
  "local_name": "babel-plugin-transform-object-rest-spread",
  "alias": false,
  "peer_metadata": null
}
^6.26.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "28ab546f28557f6ec69d2027aa741a22bf213b3d",
  "tarball": "https://registry.npmjs.org/3box-activity/-/3box-activity-0.0.6.tgz",
  "fileCount": 10,
  "integrity": "sha512-xWx5IbINSysOowTyTyqNNSqqmy6lR3krl6jUzkUMNlqradjkmnIMCuXGy6aYSVStC/LCpP1n19yEzyP3vXSThA==",
  "signatures": [
    {
      "sig": "MEUCIQDJKgnYhMGcfoeFRhfZ35cbh/3W1ojCL5Qo9XWB3dO9/wIgPkpw9hUDYQIyH9VMNJI/r8WyAvuFSrEYgYHuwl3Zvko=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 99698,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbmojGCRA9TVsSAnZWagAApsEP/0ApMYaUqwV7gL5epM45\n2+KRSbRii43QvnbzuIfKcPwImjng2YuHc+AnfjaaAZTkMmlpA0nnYGIZxI83\nWMg02ztJQPZuzV7C7fmbZAAcNyihX7Wqy3VpLuauAf7BgDSOs1tziZFQyJod\n3vY5/kPzxsZJg3H0IKnaLrVubn3BuJsuVan0T9/NYx42gEP5Wrfzh0Kq770d\nxVtq65wsXIS924hB8QiNoxq1NxfYz+WrjKKmkrvbMbtfPlFpvrSY0G/zjCNo\nA2KKAGGl8Z39zvdGgh8mY1+FEnPhgqgSKt5Z9V4ysmIPoMTelbsPtiQxVNOX\nqKZJx2N7qLtBU51MgKQHY7wTrmE8CTIKmEeEp5gPFuHT7EMeu300LQc6bEyy\n5R4zF4v7gq2fts2OdnmS8VmFyQ9esqegbYBlk3yI90uRUB3tVbB7QkB5sJa9\n+HxqGEPlIz0YXQ4dkxL3KiLeZf3dDtTfvRLIRP+c2oONWKIMaB/0zQXDAEnd\nH5Z7NYzkqZRbBQVUHPZRXtYmGK8Jw3tMuDm5F9Yi7GtGJwyVykTEC0zyM0LS\nxLU3316hUW/1U0hOhM1fyH+LqXeJzbB2D6SVgvfeB/e0edYmcILhYk+YkPgY\nzzx9Mqqe9RVuY5G4NYri7BzMhdMYS3oQRQSnmDi/79q655We8wraR9GUajie\nkV4Y\r\n=LhDR\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
uport-project/3box-activity

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:31 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:b72fbf45bebcefa57f8c2eed34a83189e408f81c323aeccf3ee31c032cb66cce

Other collected versions

0.0.919 Feb0.0.820 Nov0.0.720 Nov0.0.513 Sept0.0.413 Sept0.0.312 SeptView all collected versions →