Catalog npm
PACKAGE EXPLORERView in registry

3box-activity

npm

An API for dapps to create an Ethereum activity feed

Versions collected9
Direct dependencies17From release 0.0.9
Last observed20 Oct, 19:31 UTC

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.

Versions 9

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.9Registry latest19 Feb 201917
0.0.820 Nov 201817
0.0.720 Nov 201817
0.0.613 Sept 20189
0.0.513 Sept 20189
0.0.413 Sept 20189
0.0.312 Sept 20188
0.0.211 Sept 20188
0.0.110 Sept 20187

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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:b4aa14c526a7b466e662aae87d303687036f52dc8806a33449474d139e3cceff