Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the method for EOS to query smart contracts?

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

This article Xiaobian for you to introduce in detail "what is the method of EOS query intelligent contract", the content is detailed, the steps are clear, the details are handled properly, I hope this article "what is the method of EOS query intelligent contract" can help you solve your doubts, the following is to follow the editor's ideas slowly in depth, together to learn new knowledge.

Query smart contracts

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

According to the table structure defined in the contract, you can query the data in the contract. For example, the currency contract ABI contains an account table.

$cleos get code-a currency.abi currencycode hash: 9b9db1a7940503a88535517049e64467a6e8f4e9e03af15e9968ec89dd794975saving abi to currency.abi$ cat currency.abi {... "tables": [{"table": "account", "indextype": "i64", "keynames": ["account"], "keytype": [], "type": "account"}]} this is the end of this article, "what is the method of EOS querying Smart contracts?" If you want to master the knowledge of this article, you still need to practice and use it. If you want to know more about the articles, you are welcome to follow the industry information channel.

Tags: Contracts queries intelligence methods articles content appropriateness commands ideas data new knowledge more formats steps knowledge knowledge points articles details structure industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Tech Info OPPO Reno MySQL Xiaomi