Using FMZ to Query Tron and Call SunSwap Contracts
Summary
This tutorial describes FMZ support for interacting with the Tron blockchain, including wallet and node setup, balance queries, account and transaction lookups, TRC20 token checks, and smart contract calls. It explains how Tron addresses and token amounts need to be handled when querying balances, and gives examples of using both JSON-RPC methods and FMZ's gRPC interface. The practical example reaches SunSwap's factory contract to retrieve pool information. The article lists several useful node methods and covers encoding, decoding, private key configuration, and signing. Its evidence consists of code examples and a reported balance comparison against a blockchain explorer; it does not present a trading strategy or performance evaluation. The SunSwap section is only an initial demonstration, with detailed DEX trading deferred, and users must supply their own wallet and node configuration.
Key ideas
- FMZ supports on-chain interaction with both Ethereum and Tron through configured wallet and node details.
- Tron balance queries can use Ethereum-compatible JSON-RPC methods, with address conversion and token precision handled explicitly.
- FMZ's Tron gRPC interface exposes account, transaction, block, bandwidth, and TRC20 query methods.
- Contract calls require encoding inputs and decoding returned data, and signing uses the configured private key.
- The SunSwap example reads pool count and a pool address but does not develop a complete trading strategy.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.