v1

latestOpenAPI 3.1.0GPL 3.02026-07-131857173.1 KB
Accounts

Export details

Export full details of transactions for one or more addresses. Corresponds to the <a href="/chifra/accounts/#chifra-export">chifra export</a> command line.

get/export

Query parameters

addrsstring[] required

one or more addresses (0x...) to export

topicsstring[]

filter by one or more log topics (only for --logs option)

fourbytesstring[]

filter by one or more fourbytes (only for transactions and trace options)

appearancesboolean

export a list of appearances

receiptsboolean

export receipts instead of transactional data

logsboolean

export logs instead of transactional data

approvalsboolean

export all token approval transactions for the given address

tracesboolean

export traces instead of transactional data

neighborsboolean

export the neighbors of the given address

statementsboolean

export only statements

transfersboolean

export only eth or token transfers

assetsboolean

list all assets (with names) that appear in any transfer

balancesboolean

traverse the transaction history and show each change in ETH balances

withdrawalsboolean

export withdrawals for the given address

articulateboolean

articulate transactions, traces, logs, and outputs

cacheTracesboolean

force the transaction's traces into the cache

countboolean

for --appearances mode only, display only the count of records

firstRecordnumber

the first record to process

maxRecordsnumber

the maximum number of records to process

relevantboolean

for log and accounting export only, export only logs relevant to one of the given export addresses

emitterstring[]

for the --logs option only, filter logs to show only those logs emitted by the given address(es)

topicstring[]

for the --logs option only, filter logs to show only those with this topic(s)

nftsboolean

for the --logs option only, filter logs to show only nft transfers

revertedboolean

export only transactions that were reverted

assetstring[]

export transfers, balances, or statements only for this asset

flow'in' | 'out' | 'zero'

export transfers, balances, or statements with incoming, outgoing, or zero value

factoryboolean

for --traces only, report addresses created by (or self-destructed by) the given address(es)

unripeboolean

export transactions labeled unripe (i.e. less than 28 blocks old)

reversedboolean

produce results in reverse chronological order

noZeroboolean

for the --count option only, suppress the display of zero appearance accounts

firstBlocknumber

first block to process (inclusive)

lastBlocknumber

last block to process (inclusive)

accountingboolean

deprecated option, you may simply remove it

chainstring

the chain to use

noHeaderboolean

suppress the header in the output

cacheboolean

force the results of the query into the cache

decacheboolean

removes related items from the cache

etherboolean

export values in ether

fmtstring

export format, one of [ txt | csv | json ]

Response

returns the requested data

Example response

{
  "hash": "0x78a17b79e638190d72a3030a79645c32cf3420a133ea2835206778e5ab63fdc7",
  "blockHash": "0xdf551eb24dd5275c22d497b9076f1111f483b71ca37002bee51d5db55d20d2fa",
  "blockNumber": 4037786,
  "transactionIndex": 47,
  "timestamp": 1500352888,
  "from": "0x29205869522cc9d1f84b0ad5279a8e74a7c66c15",
  "to": "0xff9387a9aae1f5daab1cd8eb0e92113ea9d19ca3",
  "value": 84353870000000000,
  "gas": 90000,
  "gasPrice": 20000000000,
  "maxFeePerGas": 0,
  "maxPriorityFeePerGas": 0,
  "isError": 0,
  "hasToken": 0,
  "receipt": {
    "contractAddress": "0x0",
    "gasUsed": 21000,
    "effectiveGasPrice": 20000000000,
    "status": null
  },
  "compressedTx": "0x()",
  "gasCost": 420000000000000,
  "gasUsed": 21000,
  "date": "2017-07-18 04:41:28 UTC",
  "ether": 0.08435387
}