Using Trading Boost to accelerate your transactions in Solana.
What is Trading Boost?
In the blockchain world, transaction speed and success rate are key to user experience. Solana Trading Boost is a service designed specifically to enhance transaction processing speed and success rate. By optimizing transaction paths, increasing bandwidth, and employing proprietary network mechanisms, Trading Boost can significantly reduce transaction confirmation times and improve transaction success rates, providing users with a smoother and more efficient transaction experience.
How to send transactions
Manually sending a transaction involves the following steps:
- Get your own endpoint: Follow the Guide to get endpoint.
- Build your Transaction
- Send your Transaction
Examples
-
Nodejs
import * as web3 from "@solana/web3.js"; import { Keypair } from '@solana/web3.js'; import secret from './guideSecret.json' with { type: "json" }; const conenction = new web3.Connection("http://api.zan.top/node/v1/solana/mainnet/{apikey}/prime", {"wsEndpoint": "wss://api.zan.top/node/ws/v1/solana/mainnnet/{apikey}", "commitment": "confirmed"}); const wallet = Keypair.fromSecretKey(new Uint8Array(secret)); async function transfer_sol() { const transaction = new web3.Transaction().add( web3.SystemProgram.transfer({ fromPubkey: wallet.publicKey, toPubkey: wallet.publicKey, lamports: web3.LAMPORTS_PER_SOL / 100, // 0.01 SOL }) ); const signature = await web3.sendAndConfirmTransaction(conenction, transaction, [wallet]); console.log(`signature: ${signature}`) console.log(`https://explorer.solana.com/tx/${signature}?cluster=devnet`); } transfer_sol()
-
Refer to sendTransaction API
Endpoints
Solana endpoints are available in multiple regions for optimal latency:
- Transaction Submission
https://api.zan.top/node/v1/solana/mainnet/<apikey>/prime # Singapore
https://api-us.zan.top/node/v1/solana/mainnet/<apikey>/prime # America Virginia
Note:
Feel free to contact us for assistance.
-
Ping Endpoint Usage
Returns a basic response to see the latency:
ping api.zan.top
ping api-us.zan.top