For the complete documentation index, see llms.txt. This page is also available as Markdown.

Read balances

An API key is required to use the infrastructure to power gasless transactions. Visit https://app.rallyprotocol.com/ to generate both Amoy and Mainnet Polygon API keys.

Check balances with RLY token

import 'package:rly_network_flutter_sdk/network.dart';

//get Amoy config
final amoy = rlyAmoyNetwork;

//add your API Key
amoy.setApiKey(env.API_KEY);

//claim 10 test RLY tokens gaslessly for testing
await amoy.claimRly();

//get balance of RLY token on Amoy testnet for display purposes
await amoy.getBalance();

//get exact balance of RLY token on Amoy testnet for transfer purposes
await amoy.getExactBalance();

Check balances with your chosen ERC-20 token

Use the following code to check the chosen token balance of wallets.

Last updated