v1

latestOpenAPI 3.1.0GPL 3.02026-07-131857173.1 KB
Accounts

Manage names

Query addresses or names of well-known accounts. Corresponds to the <a href="/chifra/accounts/#chifra-names">chifra names</a> command line.

get/names

Query parameters

termsstring[] required

a space separated list of one or more search terms

expandboolean

expand search to include all fields (search name, address, and symbol otherwise)

matchCaseboolean

do case-sensitive search

allboolean

include all (including custom) names in the search

customboolean

include only custom named accounts in the search

prefundboolean

include prefund accounts in the search

addrboolean

display only addresses in the results (useful for scripting, assumes --no_header)

tagsboolean

export the list of tags and subtags only

cleanboolean

clean the data (addrs to lower case, sort by addr)

regularboolean

only available with --clean, cleans regular names database

countboolean

return the number of names matching the search terms or other options

dryRunboolean

only available with --clean or --autoname, outputs changes to stdout instead of updating databases

autonamestring address

an address assumed to be a token, added automatically to names database if true

createstring

create a new item

updatestring

update an existing item

deletestring

delete the item, but do not remove it

undeletestring

undelete a previously deleted item

removestring

remove a previously deleted item

chainstring

the chain to use

noHeaderboolean

suppress the header in the output

fmtstring

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

Response

returns the requested data

Example response

{
  "tags": "50-Tokens:ERC20",
  "address": "0xfe5f141bf94fe84bc28ded0ab966c16b17490657",
  "name": "LibraToken",
  "symbol": "LBA",
  "source": "On chain",
  "decimals": 18
}