getSorobanTokenInfo
Fetch SEP-41 Soroban token metadata (symbol, name, decimals) and, with an account ID, retrieve the token balance for that Stellar account.
Instructions
Get SEP-41 Soroban token metadata (symbol, name, decimals) and optionally a balance for a Stellar account. Requires SOROBAN_RPC_URL to be configured.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contractId": "<contractId>"
},
"name": "getSorobanTokenInfo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | No | Optional Stellar account address (G... format, 56 chars) — if provided, also fetches the balance | |
| contractId | Yes | Soroban contract address (C... format, 56 chars) |