简体   繁体   English

如何在 R 中使用 API 获取智能合约中的信息数据

[英]How to get informative data in smart contract with using API in R

I want to get informative data about the contract with using API.我想获取有关使用 API 的合同的信息数据。

I found hash address with using Etherscan.我使用 Etherscan 找到了 hash 地址。 I copied the contract to the R.我将合同复制到 R。 But I don't know how to get informative data (such as balance, token info etc.)但我不知道如何获取信息数据(例如余额、代币信息等)

My screen look like this:我的屏幕如下所示:

在此处输入图像描述

Smart contracts are written in Solidity programming language.智能合约是用 Solidity 编程语言编写的。 Solidity programming language is not R programming language. Solidity 编程语言不是 R 编程语言。 You just cannot copy paste stuff from one language for another.您只是不能将一种语言的粘贴内容复制到另一种语言。

The correct answer is to run Ethereum node and use JSON-RPC API.正确答案是运行以太坊节点并使用 JSON-RPC API。 But seems like your starting level of programming knowledge is too low for this, so recommend doing basic programming courses and learning before trying to try anything this complex.但是似乎您的编程知识的起始水平太低了,因此建议您在尝试任何复杂的事情之前先学习基本的编程课程和学习。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 R 中使用 assertr::verify 时如何获得信息量更大的断言? - How to get a more informative assertion when using assertr::verify in R? 在R中使用NSE产生信息丰富的stopifnot()错误 - Making informative `stopifnot()` errors using NSE in R R的帮助。 我正在使用信息性非共轭先验为mu和sig ^ 2运行用于普通数据的Simple Gibbs采样器 - R help. I'm running a Simple Gibbs Sampler for mu and sig^2 for normal data using informative non-conjugate priors 如何从 R 中的 WTO API 获取数据 - how to get data from the WTO API in R 如何从 r 中的 api 获取数据? - How to get data from an api in r? R中数据帧的智能转置 - Smart transpose of a data frame in R 使用 RJSDMX R 从 API 获取 XML 数据 - get XML data from API using RJSDMX R R:如何使用运输智能卡数据将旅程段组合到旅程中 - R: how to combine trip segments into a journey with Transport smart card data R,该参数很适合使用“图”构建信息性直方图来获得非均匀bin - R which argument fits well to obtain nonuniform bins using “plot” to build an informative histogram 如何在 R 中使用 API 来获取数据以存储到数据库中? - How to use an API in R to be able to get data for storing into a db?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM