check_tx_key - 检查交易密钥
check_tx_key
使用密钥检查区块链上指定的交易。无别名。
输入参数
- txid:要检查的交易ID,string
- tx_key:交易密钥,string
- address:交易目标地址,string
输出结果
- confirmations: 交易确认数,unsigned int
- in_pool:交易是否在交易池,boolean
- received:交易金额,unsigned int
示例代码
curl请求:
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"check_tx_key","params":{"txid":"19d5089f9469db3d90aca9024dfcb17ce94b948300101c8345a5e9f7257353be","tx_key":"feba662cf8fb6d0d0da18fc9b70ab28e01cc76311278fdd7fe7ab16360762b06","address":"7BnERTpvL5MbCLtj5n9No7J5oE5hHiB3tVCK5cjSvCsYWD2WRJLFuWeKTLiXo5QJqt2ZwUaLy2Vh1Ad51K7FNgqcHgjW85o"}}' -H 'Content-Type: application/json'
响应结果:
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"confirmations": 0,
"in_pool": false,
"received": 1000000000000
}
}