Common JSON Data Structures for SOON RPC Methods
Various SOON RPC methods return complex responses as structured JSON objects. Here are the most common JSON data structures you’ll encounter:Reports
Reports are the primary data structure in SOON’s Oracle system. They contain price feed information and associated metadata. The JSON structure of a report is defined as follows:Price Feed Data
Price feeds are another crucial data structure in SOON. Each feed has specific attributes:Account Information
Account data structure on SOON follows the SVM (Solana Virtual Machine) format:Oracle Observations
Raw oracle observations before aggregation are structured as:Important Notes
-
Numeric Values:
- Large numbers are often returned as strings to preserve precision
- Timestamps are in Unix format (seconds since epoch)
- Decimal values maintain 18 decimal places for price data
-
Encoding:
- Addresses and hashes are hex-encoded strings
- Signatures are base64-encoded strings
- Binary data is typically base58-encoded
-
Price Representation:
- All prices include 18 decimal places
- Use appropriate decimal handling when displaying prices
- Both string and numeric representations may be provided