GetTransaction
Send ordinary trading entities
Parameter​
- fromAddr: Initiator's address
- toAddr: Receiver array
- value: Transfer amount
- addr: Recipient Address
- isFindUtxo: Is the entire network searching for the current status of UTXO
- txInfo: Transaction description information
{
"id": "",
"jsonrpc": "",
"params": {
"fromAddr": [
"cED97dA085527Fe7e1772CA59Aa1e64A78143128"
],
"isFindUtxo": false,
"toAddr": [
{
"addr": "06BA76F46631d4F344d1344303895001F1E3Af29",
"value": "13.5"
}
],
"txInfo": ""
}
}
Response​
- code: Return Code
- 0 success
- -1 db get top failed
- -2 Check parameters failed
- -3 to addr is empty
- -4 To address is not address!
- -5 from address is same with toaddr
- -6 Value is zero!
- -7 The information entered exceeds the specified length
- -8 FindUtxo failed!
- -9 Utxo is empty!
- -10 Tx owner is empty!
- -11 Generate Gas failed!
- -12 Insufficient balance (original -72013)
- -13 Find packager failed
- -14 utxo is using!
- message: Return value information (see error return information corresponding to code for details)
- txJson: Transaction entity information
- height: height
- vrfJson: VRF information
- txType: transaction type
- time: Time of sending transaction
- gas: fuel
{
"id": "",
"jsonrpc": "",
"method": "",
"result": {
"code": 0,
"gas": "20200",
"height": "600",
"message": "0",
"time": "1717148047269517",
"txJson": "{\"time\":\"1717148047269517\",\"identity\":\"2eb2F635320c3Dbf29eadD35E894c13EE3F20bd5\",\"utxo\":{\"owner\":[\"cED97dA085527Fe7e1772CA59Aa1e64A78143128\"],\"vin\":[{\"prevOut\":[{\"hash\":\"3f1342e96e426e2905021ad991787131ec70d31298646b1e80da9d912eeff274\"}]}],\"vout\":[{\"value\":\"1350000000\",\"addr\":\"06BA76F46631d4F344d1344303895001F1E3Af29\"},{\"value\":\"1982446992477\",\"addr\":\"cED97dA085527Fe7e1772CA59Aa1e64A78143128\"},{\"value\":\"20200\",\"addr\":\"VirtualBurnGas\"}]},\"type\":\"Tx\",\"consensus\":7,\"txType\":1}",
"txType": "1",
"vrfJson": "{\"vrfdata\":{\"hash\":\"6cf89d80c98eecd9138caca4f55d7ad0fda2aed9d8e68dd4642543ae3ee056d6\"},\"Vrfsign\":{\"sign\":\"u5dNZ16Rd77B4nLd8gAcKTwz+GxeHH1HIlcGennGbPaKgIFXUkmFzS/EnVxRC4nmSfESAdWyMEmj4pKBhwuqAg==\",\"pub\":\"MCowBQYDK2VwAyEAcUcydwF7CSr9bjBiUbd3drV+WMd4yd8xFL7HWGA4FTw=\"}}"
}
}