call
执行一个可以立即获得结果的请求,无需区块链共识
参数
groupID
:unsigned int
- 群组IDobject
: - 请求信息,其字段如下:from
:string
- 发送者的地址to
:string
- 接收者的地址value
:string
- (可选)转移的值data
:string
- (可选)编码的参数,编码规范参考Ethereum Contract ABI
返回值
string
- 执行的结果- 示例
- // Request
- curl -X POST --data '{"jsonrpc":"2.0","method":"call","params":[1,{"from":"0x6bc952a2e4db9c0c86a368d83e9df0c6ab481102","to":"0xd6f1a71052366dbae2f7ab2d5d5845e77965cf0d","value":"0x1","data":"0x3"}],"id":1}' http://127.0.0.1:8545 |jq
- // Result
- {
- "id": 1,
- "jsonrpc": "2.0",
- "result": {
- "currentBlockNumber": "0x1",
- "output": "0x"
- }
- }
当前内容版权归 FISCO BCOS 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 FISCO BCOS .