Skip to main content

GetBounsTransaction

Send application transaction

Parameter​

  • Addr: Apply for address
  • isFindUtxo: Is the current status of UTXO being explored across the entire network
  • txInfo: Transaction description information
{
"id" : "1",
"jsonrpc": "2.0",
"params" : "{"Addr" : "116058AcF188BB96F9Da1317Bd11fD737E4f8Cd2","isFindUtxo": false, "txInfo": ""}"
}

Response​

  • code
    • 0: success
    • -1: Failed to get the current highest block height
    • -2: Check parameters failed
    • -3: The bouns address is incorrect
    • -4: The information entered exceeds the specified length
    • -5: Failed to obtain the amount claimed by the investor
    • -6: FindUtxo failed
    • -7: utxo is zero
    • -8: Tx owner is empty!
    • -9: GetCommissionPercentage error
    • -10: The gas charge cannot be 0
    • -11: The total amount is less than expend
    • -12: The claim amount is 0
    • -13: GetBlockPackager fail
    • -101: The bouns time is not within the prescribed limits
    • -102: Incorrect time
    • -103: GetBonusUtxoByPeriod fail
    • -104: GetTransactionByHash fail
    • -105: Failed to parse transaction body
    • -106: GetBonusUtxoByPeriod fail
    • -107: VerifyBonusAddr fail
    • -108: The bouns address is not pledged
  • message: Return value information
  • txJson: Transaction entity information
  • height: height
  • vrfJson: VRF information
  • txType: transaction type
  • time: Time of sending transaction
  • gas: Fuel
{
"id": "1",
"jsonrpc": "2.0",
"method": "GetBounsTransaction",
"result": {
"code": 0,
"gas": "25600",
"height": "597",
"message": "success",
"time": "1717147601683173",
"txJson": "{\"time\":\"1717147601683173\",\"identity\":\"08C08F389c8255c0B4d1C5e337C811D02F220B6e\",\"utxo\":{\"owner\":[\"9234e37d86AE7De3Dd0Ac57AF815b54551873504\"],\"vin\":[{\"prevOut\":[{\"hash\":\"594692911bbc616737809e0abd991637079501160b1b2eff4e7e0e83f9af4658\"}]}],\"vout\":[{\"value\":\"503890410\",\"addr\":\"9234e37d86AE7De3Dd0Ac57AF815b54551873504\"},{\"value\":\"1900026434448\",\"addr\":\"9234e37d86AE7De3Dd0Ac57AF815b54551873504\"},{\"value\":\"25600\",\"addr\":\"VirtualBurnGas\"}]},\"type\":\"Tx\",\"consensus\":7,\"txType\":99,\"data\":\"{\\\"TxInfo\\\":{\\\"BonusAddrList\\\":3,\\\"BonusAmount\\\":530410958}}\"}",
"txType": "0",
"vrfJson": "{}"
}
}

The call to the GetBounsTransaction interface is completed, and the SDK is used to sign the returned transaction body. After signing, the transaction body is broadcasted through sendMessage. The process is the same as GetTransaction.