Skip to content

Commit

Permalink
Update read-functions-off-chain.md
Browse files Browse the repository at this point in the history
  • Loading branch information
crosschainer authored Feb 12, 2025
1 parent 01c03f4 commit b02b966
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/read-functions-off-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ The process works as follows:
The hex-encoded payload is appended to the RPC URL path for a simulated transaction query (using `https://node.xian.org/abci_query?path="/simulate_tx/<hex>"`).

4. **Response Handling:**
The response is received in Base64 encoding. It is then decoded and checked:
- If the decoded value is invalid or empty, the contract’s variable is queried directly.
- Otherwise, the function extracts the computed result (the balance).

5. **Result Formatting:**
The balance is parsed as a floating-point number and formatted to 8 decimal places before being returned.
The response is received in Base64 encoding. It is then decoded

## Code Example

Expand Down

0 comments on commit b02b966

Please sign in to comment.