Manage Abi files
Fetches the ABI for a smart contract. Corresponds to the <a href="/chifra/accounts/#chifra-abis">chifra abis</a> command line.
Query parameters
a list of one or more smart contracts whose ABIs to display
load common 'known' ABIs from cache
redirects the query to this implementation
a list of downloaded abi files
show the functions and events instead of summaries for all abi files
show the number of abis downloaded
search for function or event declarations given a four- or 32-byte code(s)
for the --find option only, provide hints to speed up the search
generate the 32-byte encoding for a given canonical function or event signature
the chain to use
suppress the header in the output
force the results of the query into the cache
removes related items from the cache
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"
}
]
}