Skip to main content
Run the network status check from your application before requesting a wallet signature. The script reports whether the Receiver, Node API, and Solana RPC respond.

Before you start

  • Install the TSN SDK in your Node.js 22 application.
  • Get the Receiver base URL and Solana RPC URL for your TSN deployment.

Configure your app

Set these variables in your application’s environment. For a local test, save them to .env with the URLs from your integration.
.env

Check your endpoints

Save check-network.mjs beside your application’s package.json:
check-network.mjs
When all three probes pass, the script prints:
Use the reported service name to diagnose a failing endpoint. Check endpoint health

Build your first payment

If the recipient needs an identifier, create a TIN first. Then use a sender wallet with an accepted token and enough SOL for the deposit fee. Accept a wallet-to-TIN payment