blokboard/ Open app

EXAMPLE 08 OF 16 · Easy

Send a Solana wallet report to Telegram

Read a public wallet, format its SOL and token balances, and deliver a compact report through your bot.

Browser or DesktopSolanaTelegramJavaScript

Before you begin#

  • Choose Solana mainnet and a working RPC route in runtime settings. These examples read live data; illustrative results below will differ.
  • Create and select your bot using Telegram setup, then set chatId in Globals. Keep bot tokens in the connection.
  • Set walletAddress to a public address. Reading balances does not require its private key or a signing wallet.

WORKFLOW SNAPSHOT

Solana wallet report to Telegram

5 nodes

Interactive workflow preview loads here. Download the JSON to inspect it in the app.

Import creates an inactive copy. Set your own inputs and connections before running.

3 setup requirements
  • input: Set walletAddress in Globals
  • input: Set chatId in Globals
  • connection: Choose the telegram connection for send

Walk through the workflow#

  1. SOL balance reads native SOL. Token holdings then reads the wallet’s token accounts; native SOL is separate from that list.
  2. Code combines the first result with the incoming holdings. It keeps decimal amounts as strings and limits the message to eight token accounts.
  3. Telegram sends the formatted text to chatId. Run once and compare the addresses and amounts with the node outputs.

What arrives#

An illustrative message begins with your wallet address, SOL: 1.5, and Token accounts: 2, followed by mint addresses and decimal balances. Two accounts for the same mint remain separate; this is an account inventory, not a dollar valuation.

Understand the Code node#

The incoming value is the holdings result. The earlier SOL result remains available as variables.solanaBalance.output. slice limits message length, map formats each account, and join places each item on its own line.

Make it yours#

Change the heading in Code. Once a manual run works, configure Start for an interval and activate the workflow in your chosen runtime. For a complete spreadsheet, continue with the multi-wallet report.

If it does not match#

A missing token account can mean it has a zero balance and was filtered out. A wrong SOL balance can mean the wrong network. For Telegram delivery errors, check the selected connection and chat ID; starting a conversation with your bot is part of setup.