Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How does EOS query ABI

Shulou Source: shulou.com Published: 2022-06-01 02:21:34 09月25日 Update

This article mainly explains "EOS how to query ABI", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "EOS how to query ABI" bar!

Query ABI

Command format: $cleos get code-a ${contract} .abi ${contract}

We can query the .abi of the contract in the block chain, where we can view the list of available operations and their respective message structures.

$cleos get code-a currency.abi currencycode hash: 9b9db1a7940503a88535517049e64467a6e8f4e9e03af15e9968ec89dd794975saving abi to currency.abi$ cat currency.abi {"types": [{"newTypeName": "AccountName", "type": "Name"}], "structs": [{"name": "transfer", "base": "", "fields": {"from": "AccountName", "to": "AccountName" "amount": "UInt64"}, {"name": "account", "base": "", "fields": {"account": "Name", "balance": "UInt64"}], "actions": [{"action": "transfer", "type": "transfer"}] "tables": [{"table": "account", "indextype": "i64", "keynames": ["account"], "keytype": [], "type": "account"}]} Thank you for reading The above is the content of "EOS how to query ABI". After the study of this article, I believe you have a deeper understanding of how to query ABI in EOS, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Queries learning content blocks contracts commands that is ideas situations articles more formats messages knowledge knowledge points articles structure follow questions practice Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Information Shulou Technology MariaDB NVidia