Run before putting any token amount into a transaction
solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/convert
Run before putting any token amount into a transaction. "5 USDC" is 5,000,000 raw units; wrong decimals send 1,000x too much or too little. Converts between normal amounts and raw units using the token's real on-chain decimals.
POST
https://solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/convertUptimeNot checked yet
30 days agoToday
Call it from an agent
curl -i -X POST -H 'content-type: application/json' "https://solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/convert" \
-d '{"to":"raw","token":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"5"}'
# 402 Payment Required comes back with the price and where to pay.Example input
{
"to": "raw",
"token": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "5"
}More from Solana Pulse
- solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/balanceRun before sending SOL or paying fees, to confirm the wallet really has enough. Never trust a balance remembered from earlier in a chat. Reads a wallet's SOL balance straight from the chain.0.01
- solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/blockhashFresh Solana blockhash for building a transaction, with how long it has before it expires. Run just before building a transaction to sign. Blockhashes expire in about 60-90 seconds; this says how long is left. A fresh blockhash and how many blocks (and about how many seconds) are left before it expires.0.01
- solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/build_txBuild a Solana SOL or token transfer, or a Jupiter swap, as an unsigned transaction that is already safety-checked. Run when an agent needs to send SOL or a token, or swap through Jupiter: it returns the unsigned transaction already checked, with ready_to_sign and the reasons. Sign only when ready_to_sign is true.0.03
- solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/check_transactiUse right before signing a transfer your agent built from an instruction like "send 5 USDC to X". Confirms the transaction moves exactly that token, amount and recipient and nothing else, catching hallucinated amounts, wrong decimals and injected instructions.0.02
- solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/check_txRun on every transaction before you sign it. Shows what each wallet gains and loses, blocks drainer tricks, and catches failures and expired blockhashes before you pay a fee. Decodes every step, dry-runs the transaction on live mainnet, works out each wallet's SOL and token changes, and answers OK, REVIEW or BLOCK with the reasons.0.02
- solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/convert_amountUse before putting any token amount into a transaction. "5 USDC" is 5,000,000 base units; getting decimals wrong sends 1,000x too much or too little. Converts between human amounts and base units using the token's real on-chain decimals.0.01
- solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/explain_errorUse whenever a Solana transaction or simulation fails, before retrying. Retrying without understanding the error wastes fees. Turns a Solana error (hex code, log line or RPC error object) into a plain-language cause and fix. Works offline; no chain call.0.01
- solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/explain_transacUse after a transaction lands (or fails) to report what actually happened, instead of guessing from logs. For failures it names the failing program and the fix. Reads a confirmed transaction and returns status, fee, every SOL and token balance change by wallet, the programs used, and a decoded failure reason.0.01
- solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/explain_txRun after a transaction lands (or fails) to report what really happened, instead of guessing from logs. For failures it names the program that failed and the fix. Reads a confirmed transaction and returns whether it worked, the fee, every SOL and token balance change by wallet, the programs used, and why it failed.0.01
- solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/feeRun before setting a priority fee. Gives the price in the exact unit Compute Budget expects (micro-lamports per compute unit) and the total cost in SOL, so a unit mix-up never overpays. Turns recent on-chain priority fees into three prices: cheap, normal and fast. Pass your transaction to get its compute limit and exact cost at each price.0.01
- solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/fee_adviceUse before setting a priority fee. Gives prices in the exact unit Compute Budget expects (micro-lamports per compute unit) and the total cost in SOL, so you never overpay by a unit mistake. Turns recent on-chain priority fees into three price tiers and, when you pass your transaction, a compute limit and exact cost for each tier.0.01
- solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/find_ataUse before sending a token to someone. Token transfers go to the recipient's token account, not their wallet; models cannot derive this address in their heads. Derives the associated token account (ATA) for a wallet and mint using the mint's real token program, checks whether it exists, and prices creating it if not.0.01
