Learn how to interact with the TRUF.NETWORK using SDKs.
streamID
?streamID
is the unique identifier for a data stream on the TRUF.NETWORK. You can find the streamID
for any stream on its page in the TRUF.NETWORK Explorer. You will use this ID in the SDK functions to retrieve data.
SDK Method
for a stream (like get_index_change
). These methods correspond to the core functions available in all our SDKs. Here are the most common ones:
getRecord
/ get_records
: Retrieves the raw, original numeric values from a stream. Use this when you need the exact, unaltered data. This is the most fundamental query.
getIndex
: Transforms the raw values into a normalized index (based to 100). This is useful for comparing the performance of different streams on the same scale.
getIndexChange
: Calculates the percentage change of a stream’s index over a specified time interval (e.g., day-over-day, year-over-year).
getRecord
)getRecord
method to fetch the raw data points from a stream.
system:network_writer
role within the network’s role-based access control (RBAC) system.
Only wallets that are members of the system:network_writer
role are authorized to deploy new streams using the SDKs.
How to get access:
If you are a partner or data provider interested in deploying streams on the TRUF.NETWORK, please contact our team. We will guide you through the process of obtaining the necessary permissions by granting your wallet the system:network_writer
role.
http://localhost:8484
(the default).
http://localhost:8484
) instead of the default public gateway. For detailed instructions and code examples, refer to the guide in the README of the respective SDK repository: