Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
What you’ll build
A simple payment app that can:- Check TIP-20 token balances
- Send stablecoin transfers
- Attach invoice IDs as payment memos
- Monitor incoming payments
Prerequisites
- Node.js v18 or higher
- A Tempo node deployed on Chainstack (mainnet or testnet)
- Basic JavaScript/TypeScript knowledge
Deploy a Tempo node
See also View node access and credentials.Tempo network details
- Mainnet
- Testnet
No native gas token: Tempo uses USD stablecoins for fees. When you transfer a TIP-20 token, fees are paid in that same token automatically.
Stablecoin tokens
Tempo provides these TIP-20 stablecoins (same addresses on mainnet and testnet):Project setup
Create a new project and install dependencies:Get testnet tokens
The faucet is only available on Tempo testnet. On mainnet, acquire stablecoins from issuers or ecosystem partners.
tempo_fundAddress RPC method on the public Tempo RPC:
TIP-20 token interface
TIP-20 extends ERC-20 with payment-optimized features. The key functions are:Check token balance
Query the balance of any address:Send a basic transfer
Transfer TIP-20 tokens to another address:Send a transfer with memo
Attach a payment reference (invoice ID, order number) to your transfer:Memo limit: The memo field is 32 bytes. For longer references, store the full data off-chain and use a hash or short ID in the memo.
Monitor incoming payments
Watch for transfers to your address using event filters:Query historical payments
Fetch past transfers usingeth_getLogs:
Complete payment app
Here’s a full example combining all the functionality. ReplaceYOUR_CHAINSTACK_ENDPOINT with your actual Chainstack Tempo node endpoint:
Tempo-specific notes
Key differences from other EVM chains:- Sub-second finality: Transactions finalize in ~0.5 seconds with no reorganizations
- USD-denominated fees: No volatile gas token; fees are paid in the token you’re transferring
- 6 decimals: All TIP-20 tokens use 6 decimals (standard for stablecoins)
- 32-byte memos: Native support for payment references aligned with ISO 20022
Next steps
Now that you can send and receive payments:- Add invoice tracking with a database
- Implement webhook notifications for incoming payments
- Build a payment page for your application
- Explore batch payments with TempoTransactions
See also
- Tempo API reference
- eth_getLogs — query historical events
- eth_call — read contract state