TrxSys Blockchain API and SDK

Updated: March 30, 2021
 
While many TrxSys users find that the built in graphical or presentation layer for Chain Apps is sufficient for their use others will require access to TrxSys from their own applications. TrxSys provides an API to submit and query both transactions and Chain Apps.

API... Application Programming Interface

SDK... Software Development Kit

The following examples are in Python (v3) but should suffice to demonstrate in other languages as well.

Related content:


Submit a transaction to TrxSys using API

A transaction is the most basic unit of data within TrxSys. However, a transaction is extremely flexible and can support a wide range of functions (i.e.types of transactions) as well as large data sets within the message field of a transaction.

API Example: Submit a transaction
 
The above example Python (v3) code demonstrates how to send a transaction to the TrxSys API.

 

 

API Example: Submit a transaction results
 
The above example Python (v3) code demonstrates the results from a transaction sent to the TrxSys API.  

 

Viewing a Transaction Example
 
The above example screenshot from My Account shows how a message was recorded on the TrxSys blockchain.

To learn more about the TrxSys transaction and its parts, visit Understanding the TrxSys Transaction

 

 

Query a TrxSys transaction using API

API Example: Query a transaction
 
The above example Python (v3) code demonstrates how to query a transaction from the TrxSys API based on transaction ID.  

 

API Example: Query a transaction results
 
The above example Python (v3) code demonstrates the results from a transaction query submitted to the TrxSys API.  

Query a set of transactions for a Chain App ID using API

API Example: Query a Chain ID for list of transactions
 
The above example Python (v3) code demonstrates how to query a set of transactions (a Chain App ID) from the TrxSys API based on chain app ID.  

 

API Example: Chain App ID query results
 
The above example Python (v3) code demonstrates the results from a Chain App ID query submitted to the TrxSys API.