v1

latestOpenAPI 3.1.0GPL 3.02026-07-131857173.1 KB
Other

Slurp Api services

Fetch data from Etherscan and other APIs for any address. Corresponds to the <a href="/chifra/other/#chifra-slurp">chifra slurp</a> command line.

get/slurp

Query parameters

addrsstring[] required

one or more addresses to slurp from Etherscan

blocksstring[]

an optional range of blocks to slurp

partsstring[]

which types of transactions to request

appearancesboolean

show only the blocknumber.tx_id appearances of the exported transactions

articulateboolean

articulate the retrieved data if ABIs can be found

source'etherscan' | 'covalent' | 'alchemy'

the source of the slurped data

countboolean

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

pagenumber

the page to retrieve (page number)

pageIdstring

the page to retrieve (page ID)

perPagenumber

the number of records to request on each page

sleepnumber

seconds to sleep between requests

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": "0x2ec382949ba0b22443aa4cb38267b1fb5e68e188109ac11f7a82f67571a0adf3",
  "blockHash": "0xeab8fe9da0b41b2c003db620bb9adbedd5fcc7222cc50d53431aa1df47a20dda",
  "blockNumber": "46217",
  "transactionIndex": "0",
  "timestamp": "1438919451",
  "from": "0xc8ebccc5f5689fa8659d83713341e5ad19349448",
  "to": "0xc8ebccc5f5689fa8659d83713341e5ad19349448",
  "value": "0",
  "gas": "21000",
  "gasPrice": "65334370444",
  "maxFeePerGas": "0",
  "maxPriorityFeePerGas": "0",
  "input": "0x",
  "isError": "0",
  "hasToken": "0",
  "gasUsed": "21000",
  "date": "2015-08-07 03:50:51 UTC",
  "ether": "0.000000000000000000"
}