Circular Documentation
  • Getting Started
  • Introduction
    • Introducing Circular
  • Circular's Mission
  • Circular's Technology
    • Certificates & Data Anchoring
    • Multi-Chain Architecture
    • Certified Nodes & Jurisdictional Deployment
    • HyperCode & GPU Accelerated Processing
    • Proof of Reputation Consensus Mechanism
  • Certified Intelligence
  • Developer Tools
    • Enterprise APIs
      • Javascript
        • CEP_Account.open()
        • CEP_Account.setNetwork()
        • CEP_Account.setBlockchain()
        • CEP_Account.update()
        • CEP_Account.submitCertificate()
        • CEP_Account.getTransactionOutcome()
        • CEP_Account.getTransaction()
        • CEP_Account.close()
      • Node.JS
        • CEP_Account.open()
        • CEP_Account.setNetwork()
        • CEP_Account.setBlockchain()
        • CEP_Account.update()
        • CEP_Account.submitCertificate()
        • CEP_Account.getTransactionOutcome()
        • CEP_Account.getTransaction()
        • CEP_Account.close()
      • PHP
        • CEP_Account.open()
        • CEP_Account.setNetwork()
        • CEP_Account.setBlockchain()
        • CEP_Account.updateAccount()
        • CEP_Account.submitCertificate()
        • CEP_Account.getTransactionOutcome()
        • CEP_Account.getTransaction()
        • CEP_Account.close()
      • Python
        • CEP_Account.open()
        • CEP_Account.set_network()
        • CEP_Account.set_blockchain()
        • CEP_Account.update_account()
        • CEP_Account.submit_certificate()
        • CEP_Account.get_transaction_outcome()
        • CEP_Account.get_transaction()
        • CEP_Account.close()
      • Java
        • CEP_Account.open()
        • CEP_Account.setNetwork()
        • CEP_Account.setBlockchain()
        • CEP_Account.updateAccount()
        • CEP_Account.submitCertificate()
        • CEP_Account.getTransactionOutcome()
        • CEP_Account.getTransaction()
        • CEP_Account.close()
  • SDK
  • CLI & Tooling
  • Core Concepts
    • Overview
    • Certificates
  • Accounts
  • Private Chains
  • Data Management
  • Fees
  • Nodes
  • Private Keys
  • Recovery Phrases
  • Tutorials & Examples
    • Circular Connect Guide
      • Create an Organisation Account
      • Create a Blockchain Account
      • Purchase Certificates
      • Using the Explorer & Viewing Certificate Details
    • Create Your First Certificate
  • Industry Use Cases
    • Industry Use Cases - Overview
    • Clinical Trials
    • Medical Devices
    • Public Health
    • Pharma Supply Chains
    • Research and Academia
Powered by GitBook
On this page
  • Function Signature
  • Parameters
  • Example
  • Expected Result
  1. Developer Tools
  2. Enterprise APIs
  3. Javascript

CEP_Account.getTransactionOutcome()

With this method you can perform polling on the blockchain to get the transaction outcome as soon as the transaction gets executed.

Function Signature

async getTransactionOutcome(TxID, timeoutSec)

Parameters

Parameter Name
Datatype

TxID

String

timeoutSec

int

Example

const Address = 'your-wallet-address';

let account = new CEP_Account();

//...
var txID = "some_txid"; // Usually you get that from the submitCertificate response
var timeout = 25;
console.log("Getting Transaction Outcome");
const outcome = account.GetTransactionOutcome(txID, timeout);
console.log("Report ", outcome);
//...

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"
}

PreviousCEP_Account.submitCertificate()NextCEP_Account.getTransaction()

Last updated 10 days ago