v1

latestOpenAPI 3.1.0GPL 3.02026-07-131857173.1 KB
Accounts

Manage Abi files

Fetches the ABI for a smart contract. Corresponds to the <a href="/chifra/accounts/#chifra-abis">chifra abis</a> command line.

get/abis

Query parameters

addrsstring[] required

a list of one or more smart contracts whose ABIs to display

knownboolean

load common 'known' ABIs from cache

proxyForstring address

redirects the query to this implementation

listboolean

a list of downloaded abi files

detailsboolean

show the functions and events instead of summaries for all abi files

countboolean

show the number of abis downloaded

findstring[]

search for function or event declarations given a four- or 32-byte code(s)

hintstring[]

for the --find option only, provide hints to speed up the search

encodestring

generate the 32-byte encoding for a given canonical function or event signature

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

fmtstring

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

Response

returns the requested data

Example response

{
  "name": "PairCreated",
  "type": "event",
  "stateMutability": "nonpayable",
  "signature": "PairCreated(address,address,address,uint256)",
  "encoding": "0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9",
  "inputs": [
    {
      "type": "address",
      "name": "token0",
      "indexed": true,
      "internalType": "address"
    },
    {
      "type": "address",
      "name": "token1",
      "indexed": true,
      "internalType": "address"
    },
    {
      "type": "address",
      "name": "pair",
      "internalType": "address"
    },
    {
      "type": "uint256",
      "name": "val_0",
      "internalType": "uint256"
    }
  ]
}