ConfirmTransaction
Confirm whether the transaction is on chain
Parameter​
- id:
- jsonrpc:
- params:
- txhash: Transaction Hash
- height: Transaction height
{
"id":"1",
"jsonrpc":"2.0",
"params":{
"txhash":"64e91e7fa9ce873a1891806ae1adcc0af98d38ff78660c8408ad9caa81c67495",
"height": "500"
}
}
Response​
- code: Return value number
- 0 success
- -1 Nodelist size is empty
- -2 FilterHeightNodeList size is empty
- -3 CreateWait error
- -4 AddResNode error
- -5 WaitData error
- -6 susSize node list is empty
- -7 The amount received was too small to verify transaction on-chain
- -8 tx Parse error
- message: return message
- tx: Transaction entity information
- percent: On chain rate
- sendsize: Number of request nodes
- receivedsize: Number of replies received
{
"id": "1",
"jsonrpc": "2.0",
"method": "ConfirmTransaction",
"result": {
"code": 0,
"message": "success",
"percent": "1.000000",
"receivedsize": "27",
"sendsize": "34",
"tx": {
"Consensus": 7,
"Type": "Tx",
"data": {
"TxInfo": {
"BonusAddr": "0xFFFc74b51BC5e75527fE5970D04355958dd3657C",
"InvestAmount": 1000000000000,
"InvestType": "Normal"
}
},
"identity": "0x0796B6DB27e5eb1e9F8Bd2c4d03191C902D22F0f",
"time": 1716775934685374,
"txHash": "0x64e91e7fa9ce873a1891806ae1adcc0af98d38ff78660c8408ad9caa81c67495",
"txType": 4,
"utxo": {
"multisign": [
{
"pub": "Hv7Z7SrYgnK9WGI0qZJJkCcDBVG5mYZlAN2fe0RsdEEIY3i9iAbRK+JtT+hxrv1+pWJeR3IdT/81Mx6TlAkkAg==",
"sign": "Hv7Z7SrYgnK9WGI0qZJJkCcDBVG5mYZlAN2fe0RsdEEIY3i9iAbRK+JtT+hxrv1+pWJeR3IdT/81Mx6TlAkkAg=="
}
],
"owner": [
"0xFFFc74b51BC5e75527fE5970D04355958dd3657C"
],
"vin": {
"prevout": {
"hash": [
"0x7dd57386b958cb7ad02170bd5c190e369c1694f596d524d2b2bfa5e1a55c253b"
]
},
"vinsign": [
{
"pub": "MCowBQYDK2VwAyEA+X/pIfbC/gTA+iuG5yoLn6AH90PFdko5gWfURmCYC90=",
"sign": "eArBhLH2J24CjgE6SnPMV1/p+5Uqyuh2QwCwD7ldeqpJ63hPpcQ0n9CiNXh8CNPeKJNufduL1WjfDvqHymiZBA=="
}
]
},
"vout": [
{
"addr": "VirtualInvest",
"value": 1000000000000
},
{
"addr": "0xFFFc74b51BC5e75527fE5970D04355958dd3657C",
"value": 6998899999939100
},
{
"addr": "VirtualBurnGas",
"value": 32400
}
]
},
"verifySign": [
{
"pub": "MCowBQYDK2VwAyEAHDoLfSX+ygmvSICr/1Q/UnfLlPFkAQBB4oPZne/SoVo=",
"sign": "bCoIyAR1qH5LDHpX5Y5E5OqZogQo0EDDPnihTaPDHV5jQdT9AEadCo/+uhRMOi7l9XlwxhrCcxesnfJDXbQmCg==",
"signaddr": "0x0796B6DB27e5eb1e9F8Bd2c4d03191C902D22F0f"
},
{
"pub": "MCowBQYDK2VwAyEABK13LqOyxq7skjywUZwpTTLVXU3yPMSClL0u9xI5+hg=",
"sign": "",
"signaddr": "0x2eb2F635320c3Dbf29eadD35E894c13EE3F20bd5"
},
......
]
},
"txhash": "0x64e91e7fa9ce873a1891806ae1adcc0af98d38ff78660c8408ad9caa81c67495"
}
}
Example​
curl http://localhost:41517/ConfirmTransaction -X POST -H "Content-Type: application/json" -d '
{
"id":"1",
"jsonrpc":"2.0",
"params":{
"txhash":"64e91e7fa9ce873a1891806ae1adcc0af98d38ff78660c8408ad9caa81c67495",
"height": "500"
}
}
'