v2 Contract SDK
  • Orbs Contract SDK
  • Getting Started
    • About smart contracts
    • Becoming a Go developer
    • Installing Gamma - local blockchain
    • Deploying your first contract
    • The Orbs Starter Kit
    • Downloading the Contract SDK
  • Orbs Contracts
    • Smart contracts
    • Layout of a contract file
    • Data types (Exported Functions)
    • State
    • Address
    • Events
    • Error handling
    • Calling other contracts
    • Calling Ethereum contract
    • API Reference
    • Limitations of Orbs Contracts
    • Creating a new contract
  • Gamma in Depth
    • Starting and stopping the server
    • Test keys and accounts
    • Deploying smart contracts
    • Sending transactions and queries
    • Checking sent transaction status
    • Reading Logs from Contracts
    • Working with multiple environments
    • Upgrading to latest versions
    • Gamma server under the hood
    • Deploying Gamma in the Cloud
      • Amazon Web Services
      • Google Cloud Platform
      • Azure
Powered by GitBook
On this page
  • Life span of a transaction
  • Using Gamma CLI
  • Command parameters
  • Cryptographic proof for a transaction
  1. Gamma in Depth

Checking sent transaction status

PreviousSending transactions and queriesNextReading Logs from Contracts

Last updated 6 years ago

Life span of a transaction

Once a transaction is sent to the blockchain, it is held in the transaction pool of nodes until it is executed (mined). During this time the transaction is in PENDING status.

When the transaction is finally executed, verified under consensus and added to a block, it transitions toCOMMITTED status. It now also includes a receipt holding the execution output.

If the transaction fails to verify or ultimately expires, its status changes to REJECTED.

Using Gamma CLI

After sending a transaction with gamma-cli send-tx, the transaction ID should be returned.

Use the TxId to check the status of the transaction

gamma-cli get-status 0x189403BAA46F80150F1EA77fE9F47f40Fb1d8C52AF0b90D83DCB084385f1C6e5F7763D62D276bF86

Command parameters

gamma-cli get-status <TX_ID>
  • <TX_ID> Transaction ID in as returned from gamma-cli send-tx

Cryptographic proof for a transaction

The Orbs blockchain is able to provide cryptographic proof for the execution of a transaction. This proof can be verified by light clients or third-party auditors without synchronizing the entire blockchain state.

Use the TxId to obtain the proof

gamma-cli tx-proof 0x189403BAA46F80150F1EA77fE9F47f40Fb1d8C52AF0b90D83DCB084385f1C6e5F7763D62D276bF86

The command parameters are identical to gamma-cli send-tx

Base64