0

如果

1) 钱包 A 将 1 个以太币转入智能合约 B

同时

2) 智能合约 B 将以太币转移到钱包 C

A->B->C

使用 eth_getTransactionReceipt,如何查看已发送到钱包 C 的金额?

4

1 回答 1

1

为了使用 eth_getTransactionReceipt 方法,您需要 b -> c 转账的 TX 编号。您可以通过多种方式获取 TX,但通常是发出事件的方式。获得 TX 后,您可以如下调用:

curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["<TX number goes here>"],"id":1}'

链接自:https ://github.com/ethereum/wiki/wiki/JSON-RPC#eth_gettransactionreceipt

于 2019-04-03T16:44:26.067 回答