CEP_Account.getTransaction()
With this method you can search a specific transaction by the blockID and the TxID.
Function Signature
public Map<String, Object> getTransaction(String BlockID, String txId) throws Exception
Parameters
Parameter Name
Datatype
blockNum
String
txID
String
Example
//...
String tx_id = "your_txid" //usually you get that from the submitCertificateMethod
String block_id = "your_block_id" //usually you get that from the getTransactionOutcome method
Map<String, Object> status = account.get_transaction(block_id, tx_id)
if (status.get("Result") == 200){
System.out.println("Transaction executed");
} else {
System.out.println("Error on retrieving transaction");
}
//...
Expected Result
{
"Result":200,
"Response":{
"BlockID":"your_block_id",
"BroadcastFee":1.0,
"DeveloperFee":0.0,
"From":"your_wallet_address",
"GasLimit":0.0,
"ID":"your_tx_id",
"Instructions":0,
"NagFee":0.5,
"NodeID":"",
"Nonce":"299",
"OSignature":"3046022100e35a304f202b2ee5b7bd639c0560409ef637d1cc560f59770a623da391274ace022100a5dd58f3b6ced7c68d858927a1dba719ee5e076aed998c2a1d4949c958055512",
"Payload":"your_hex_data",
"ProcessingFee":7.0,
"ProtocolFee":3.0,
"Status":"Executed",
"Timestamp":"2025:03:23-09:28:15",
"To":"your_wallet_address",
"Type":"C_TYPE_CERTIFICATE"
},
"Node":"selected_node"
}
Last updated