# Welcome to BlockRush Source: https://docs.blockrush.io/en/index BlockRush is a Solana transaction acceleration infrastructure designed for high-performance applications with ultra-low latency optimization. ## Getting Started Get up and running with BlockRush in minutes. Learn about BlockRush's SWQoS technology and what we offer. ## Core Features Everything you need to accelerate your Solana transactions. Connect to our global endpoints in New York, Frankfurt, and Tokyo for optimal performance. Get your API key and understand request/response formats. Learn about our tip-based acceleration and priority fee optimization. Choose the right plan for your needs with TPS ranging from 5 to 100. Enable sandwich-attack protection with a single query parameter. ## JSON-RPC APIs Flexible transaction submission methods for different use cases. Submit single transactions using native Solana JSON-RPC method. Non-atomic batch submission of up to 5 transactions processed independently. Atomic bundle submission with strong consistency guarantees. Understand error codes and how to handle them in your application. ## Developer SDKs Production-ready SDKs for seamless integration. Explore BlockRush SDKs for Rust and JavaScript/TypeScript. Get started with BlockRush JS/TS SDK for Node.js and browsers. High-performance SDK leveraging Rust's powerful features. Learn how to construct transactions with tips using our SDKs. ## Additional Resources Monitor the health status of our API endpoints. # Health Source: https://docs.blockrush.io/en/solana/api/health Check the health status of the current API endpoint. ## Request ### Endpoint: GET POST `/health` ### Parameters: *None* ## Response Fixed as "OK" to indicate the endpoint is available ```shell Request(cURL) theme={null} curl --request GET \ --url http://ny.rpc.blockrush.io/health ``` ```plaintext Response (200) theme={null} ok ``` # Overview Source: https://docs.blockrush.io/en/solana/api/overview | Endpoint Name | Method | Description | | ------------- | ------ | ----------------------------------------------- | | health | GET | Check the health status of the current API node | # Error Handling Source: https://docs.blockrush.io/en/solana/jsonrpc/error_handling Error responses typically include error descriptions and optional error codes. It is recommended to record request ID/error information for troubleshooting. ## Success Case: ```json theme={null} { "jsonrpc": "2.0", "result": "3TEjEHSHPfNp5frqxVW...", "id": 1 } ``` ## Failure Cases: API key invalid or missing ```json theme={null} { "jsonrpc": "2.0", "error": { "code": -32602, message: "Invalid API Key. ", data: null }, "id": 1 } ``` Method Error: ```json theme={null} { "jsonrpc": "2.0", "error": { "code": -32601, message: "Method no found.", data: null }, "id": 1 } ``` ## Rate Limits HTTP code returns 429. # Overview Source: https://docs.blockrush.io/en/solana/jsonrpc/overview | Endpoint Name | Method | Description | | --------------- | ------ | ------------------------------------------------------------------------------------------------------ | | sendTransaction | POST | Native Solana JSON-RPC sendTransaction method | | submitBatch | POST | Non-atomic batch submission of multiple signed transactions (each transaction processed independently) | | sendBundle | POST | Atomic bundle submission of multiple signed transactions (all fail if any transaction fails) | ## Request Body ```json theme={null} { "jsonrpc": "2.0", "id": 1, "method": "", "params": [ "", "", ... ] } ``` ## Response Body ```json theme={null} { "jsonrpc": "2.0", "result": "...", "id": 1 } ``` ## API Comparison and Recommendations | Requirement | Recommended Endpoint | Description | | ------------------------------------------------------------ | -------------------- | ------------------------------------------------- | | Single transaction direct send | sendTransaction | Simplest path, returns transaction signature | | Multiple transactions, high throughput, mutually independent | submitBatch | Non-atomic, failure of one does not affect others | | Multiple transactions, require strong consistency | sendBundle | All fail if any fails | | Health check and operations | health | Returns ok | ## Best Practices * Choose the geographically closest endpoint to reduce latency * For batch submissions, balance between atomicity (sendBundle) and throughput (submitBatch) according to requirements # sendBundle Source: https://docs.blockrush.io/en/solana/jsonrpc/sendBundle Atomic bundle submission of multiple signed transactions executed in sequence. All transactions fail if any single transaction fails. By default, API Keys do not have `sendBundle` enabled. Please contact customer service to enable this feature for your API key. **Strong Atomicity:** All transactions in the bundle are executed atomically in sequence. If any transaction in the bundle fails, the entire bundle will be rejected and no transactions will be processed. ## Request ### Endpoint: POST `/` ### JSON-RPC Parameters: Array of fully signed transactions, Base64 encoded strings. **Maximum 5 transactions per bundle.** Encoding configuration object Transaction encoding format, must be `base64` ## JSON-RPC Response Result Bundle ID used to identify this bundle. This is the SHA-256 hash of the bundle transaction signatures. ```shell Request(cURL) theme={null} curl -X POST 'https://ny.rpc.blockrush.io' \ -H 'Content-Type: application/json' \ -H 'x-api-key: ' \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "sendBundle", "params": [ [ "", "", "", "", "" ], { "encoding": "base64" } ] }' ``` ```json Response (200) theme={null} { "jsonrpc": "2.0", "id": 1, "result": [ "", "", "", "", "" ] } ``` # sendTransaction Source: https://docs.blockrush.io/en/solana/jsonrpc/sendTransaction Proxy Solana's sendTransaction JSON-RPC, directly forwarding a single signed transaction to Staked Validator for processing. Append `?anti_mev=1` to the endpoint to enable sandwich-attack protection. See [Anti-MEV](/en/solana/overview/anti_mev) for details. ## Request ### Endpoint: POST `/` ### JSON-RPC Parameters: Fully signed transaction, Base64 encoded string Encoding configuration object Transaction encoding format, must be `base64` ## JSON-RPC Response Result Transaction signature. The result format matches the [Solana RPC documentation](https://solana.com/docs/rpc/http/sendtransaction) ```shell Request(cURL) theme={null} curl -X POST 'https://ny.rpc.blockrush.io' \ -H 'Content-Type: application/json' \ -H 'x-api-key: ' \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "sendTransaction", "params": [ "", { "encoding": "base64" } ] }' ``` ```json Response (200) theme={null} { "jsonrpc": "2.0", "result": "", "id": 1 } ``` # submitBatch Source: https://docs.blockrush.io/en/solana/jsonrpc/submitBatch Non-atomic batch submission of multiple signed transactions. Each transaction is processed independently, and failure of one does not affect others. **Non-atomicity:** Each transaction in the batch is confirmed and executed independently. If one transaction fails, it does not affect the processing of other transactions in the batch. Append `?anti_mev=1` to the endpoint to enable sandwich-attack protection. See [Anti-MEV](/en/solana/overview/anti_mev) for details. ## Request ### Endpoint: POST `/submit-batch` ### JSON-RPC Parameters: Array of fully signed transactions, Base64 encoded strings. **Maximum 5 transactions per batch.** Reserved field for future use. Currently must be an empty array `[]` ## Response Result **Response body format hint:** Response body format hint: This request is not a standard JSON-RPC response, and its response does not include standard JSON-RPC response wrapping. Response status code. `1` indicates success Response message. Returns `"success"` on successful submission Array of transaction signatures corresponding to the submitted transactions, in the same order ```shell Request(cURL) theme={null} curl -X POST 'https://ny.rpc.blockrush.io/submit-batch' \ -H 'Content-Type: application/json' \ -H 'x-api-key: ' \ -d '{ "jsonrpc": "2.0", "id": 1, "params": { "options": [], "transactions": [ "", "", "", "", "" ] } }' ``` ```json Response (200) theme={null} { "code": 1, "message": "success" "signatures": [ "", "", "", "", "" ] } ``` # Anti-MEV Source: https://docs.blockrush.io/en/solana/overview/anti_mev Reduce the risk of sandwich attacks by enabling BlockRush Anti-MEV transaction submission. In Solana transaction acceleration, BlockRush provides Anti-MEV transaction submission to help users reduce the risk of sandwich attacks. ## Enabling Anti-MEV To enable Anti-MEV protection, append `?anti_mev=1` to the transaction submission endpoint. Once enabled, BlockRush automatically adds the `jitodontfront` account required for Jito Sandwich Mitigation β€” no manual transaction modification needed. ### sendTransaction ```text theme={null} http://ny.rpc.blockrush.io/?anti_mev=1 ``` ### submitBatch ```text theme={null} http://ny.rpc.blockrush.io/submit-batch?anti_mev=1 ``` If the endpoint already contains a `?` query string, append the parameter with `&anti_mev=1`. ## What BlockRush Does Automatically When `anti_mev=1` is enabled, BlockRush automatically adds a valid Solana public key starting with `jitodontfront` to the transaction. For example: ```text theme={null} jitodontfront111111111111111111111111111111 jitodontfront111111111111111111111111111123 ``` A transaction containing a `jitodontfront` account will only be accepted by the Jito block engine when it is the first transaction in the bundle. This prevents attackers from placing a front-run transaction before the user transaction. You do not need to manually add `jitodontfront`. Simply add `anti_mev=1` to the BlockRush endpoint and BlockRush handles the rest. In rare cases, Anti-MEV protection may slightly delay transaction submission when avoiding high-risk leaders. Anti-MEV protection cannot guarantee 100% avoidance of all MEV risks. We still recommend: * Set reasonable and low slippage; * Protect trading strategies and private key information; * Avoid exposing sensitive transaction information in public environments. ## How Sandwich Attacks Happen A sandwich attack is an MEV attack where an attacker intentionally places a user's transaction between two attacker-controlled transactions: 1. The attacker first sends a **front-run** transaction to buy or execute a related action before the user; 2. The user's normal transaction executes next; 3. The attacker then sends a **back-run** transaction to sell or execute the reverse action after the user's transaction completes. By doing this, the attacker profits from the price movement caused by the user's transaction, while the user receives a worse execution price and incurs extra losses. ### Common Methods **Using a Jito Bundle.** The attacker packages the front-run transaction, the user transaction, and the back-run transaction into the same Jito Bundle and submits it to a Solana validator. Bundle ordering guarantees make this attack stable. **Using normal transactions for front-running and back-running.** The attacker monitors transaction propagation and quickly sends two normal transactions, placing them before and after the user's transaction. This depends on network speed, fee settings, and ordering capability β€” harder to execute, but does not fully depend on Jito Bundles. ## Why BlockRush Anti-MEV is Effective ### Automatically adding `jitodontfront` Jito Sandwich Mitigation defends against bundle-based sandwich attacks. When a transaction contains a `jitodontfront` account, the Jito block engine rejects the bundle if that transaction is not the first one. This prevents attackers from placing a front-run transaction before the user transaction, reducing the risk of the user transaction being sandwiched. With BlockRush, users only need to enable `anti_mev=1` β€” `jitodontfront` is added automatically, with no manual changes to transaction instructions. ### Anti-MEV submission path After `anti_mev=1` is enabled, BlockRush processes the transaction through the Anti-MEV submission path, helping reduce the risk of MEV exploitation during transaction propagation and ordering. If the current submission environment is detected as high risk, BlockRush may adjust its submission strategy to further reduce the probability of a sandwich attack. ## Higher-security submission requirements If you require stronger transaction protection or a customized secure submission path for a specific strategy, please [contact the BlockRush team](https://blockrush.io/contact) for support. # Authorization Source: https://docs.blockrush.io/en/solana/overview/authorization Most of our service endpoint APIs require an `API key` for authentication. To obtain an `API key`, please [contact us](https://blockrush.io/contact) directly and we'll set you up with the appropriate access credentials. ## Request and Response Format * Protocol: HTTP/HTTPS * Timezone: UTC * Response Format: JSON (the health endpoint returns plain text "ok") * Header: ```shell theme={null} Content-Type: application/json x-api-key: ``` The health endpoint does not require `x-api-key` header, all other write operation endpoints require it. # Transaction Fees & Tips Source: https://docs.blockrush.io/en/solana/overview/fees ## Tips When constructing transactions, you need to add a tip transfer instruction to one of the official BlockRush tipping addresses into the transaction for speeding up inclusion in blocks. Here is our official tipping addresses: ``` AhMVT9KWLGjBbzvdqQkTt4vHwpawnGNoGSqaqXYftNDR ``` * The **minimum required tip** is based on [your plan](./ratelimits). * **Higher tip amounts may improve your transaction's inclusion speed.** ## Priority Fee Priority fees on Solana are additional fees that users can pay to validators to prioritize their transactions during network congestion. These fees help ensure faster transaction processing when the network is experiencing high demand. When using BlockRush's SWQoS (Solana Write Quality of Service) along with tips, you can maintain the standard base-level priority fee without artificially inflating it. Our service architecture is designed to optimize transaction routing and inclusion, meaning that the combination of our SWQoS infrastructure and tip payments already provides the necessary incentives for timely transaction processing. In practice, this means you don't need to compete by setting unusually high priority feesβ€”the base priority fee is sufficient when leveraging our optimized service with appropriate tip payments. # Introduction Source: https://docs.blockrush.io/en/solana/overview/introduction Proprietary technology with ultra-low latency optimization, transactions reach leaders faster, leading confirmation speed. ## What we offer BlockRush provides a comprehensive Solana transaction acceleration infrastructure designed for high-performance applications: * SWQoS: Proprietary ultra-low latency optimization technology that ensures your transactions reach block leaders faster than traditional RPC endpoints, with optimized transaction routing and inclusion. * Global Regional Endpoints: Strategically distributed service endpoints across major regions worldwide. * Multiple Transaction APIs & JSON-RPCs: Flexible transaction submission methods to fit your needs. * Developer SDKs: Production-ready SDKs for seamless integration, Rust & JS. * Flexible Pricing Plans: Multiple tiers to suit different needs (currently all **FREE**). # Price & Rate Limits Source: https://docs.blockrush.io/en/solana/overview/ratelimits To obtain an `API key`, please [contact us](https://blockrush.io/contact) directly and we'll set you up with the appropriate access credentials. | Plan | Entry | Intermediate | Advanced | | --------------- | --------------- | --------------- | --------------- | | Price | FREE! | FREE! | FREE! | | TPS | 5 TPS | 50 TPS | 100 TPS | | SWQoS | Dedicated SWQoS | Dedicated SWQoS | Dedicated SWQoS | | Transaction Tip | 0.001 SOL | 0.001 SOL | 0.0001 SOL | # Regions Source: https://docs.blockrush.io/en/solana/overview/regions Choose from our regional endpoints below for optimal performance. ## Regions We operate a global network of service endpoints strategically distributed across major regions worldwide. Our infrastructure is continuously expanding, with additional endpoints being deployed regularly to ensure you experience the lowest latency and fastest response times no matter where you are. By connecting to the endpoint nearest to your location, you can achieve optimal performance and reliability for your Solana RPC calls. | Location | Protocol | Endpoint | | -------------- | ---------- | -------------------- | | πŸ‡ΊπŸ‡Έ New York | https/http | ny.rpc.blockrush.io | | πŸ‡©πŸ‡ͺ Frankfurt | https/http | fra.rpc.blockrush.io | | πŸ‡―πŸ‡΅ Tokyo | https/http | jp.rpc.blockrush.io | While our endpoints support both `HTTPS` and `HTTP` protocols, `HTTP` typically delivers better performance due to lower overhead. Consider using `HTTP` for scenarios where maximum throughput is critical. # Quickstart Source: https://docs.blockrush.io/en/solana/sdk/js/quickstart We have prepared commonly used SDK tools for developers. Explore BlockRush JavaScript/TypeScript JSON-RPC SDK, a high-performance library designed for Node.js and browser environments to interact with BlockRush infrastructure on Solana. ## Download * [blockrush-nodejs-sdk-0.0.2.tgz](https://zero402-public.s3.ap-southeast-1.amazonaws.com/static/sdk/blockrush-nodejs-sdk-0.0.2.tgz) ## Environment Node.js 20+, modern browsers (supporting fetch/AbortController) ## Security Recommendations Do not hardcode production API Keys in the browser. Use backend-issued short-term tokens or proxy forwarding for client-side applications. ## Quick Start ```javascript theme={null} import { BlockrushSDK, Region } from "@blockrush/sdk"; // Initialize SDK with your API key and preferred region const sdk = new BlockrushSDK({ region: Region.JP, api_key: "YOUR_API_KEY", // Use environment variables in production }); // Example: Send a single transaction const res = await sdk.send_transaction( "Base64 string of fully signed transaction" ); console.log(res); // Example: Submit batch transactions const res2 = await sdk.submit_batch([ "Base64 string of fully signed transaction 1", "Base64 string of fully signed transaction 2", ]); console.log(res2); // Clean up resources when done sdk.destroy(); ``` # Tip Transaction Source: https://docs.blockrush.io/en/solana/sdk/js/tip_transaction How to tip a transaction. Using our SWQoS, you can use default priority fees (no need to set them specifically), using tips as the priority option. When constructing transactions, you need to add a tip transfer instruction to the transaction to speed up inclusion in blocks. The base64-encoded tx data generated by the example code can be directly called through SDK methods, for example passed to `send_transaction`. ```javascript theme={null} const ixs = {your instructions ixs}; const keypair = {your_actual_keypair}; const TIP_AMOUNT = 1_000_000; // 0.001 SOL; const BLOCKRUSH_TIP = new PublicKey("AhMVT9KWLGjBbzvdqQkTt4vHwpawnGNoGSqaqXYftNDR"); // Append Tip payment instruction ixs.push( SystemProgram.transfer({ fromPubkey: keypair.publicKey, toPubkey: BLOCKRUSH_TIP, lamports: TIP_AMOUNT, }), ); // Compile and sign transaction instructions const messageV0 = new TransactionMessage({ payerKey: keypair.publicKey, recentBlockhash: latestBlockhash.blockhash, instructions: ixs, }).compileToV0Message(); const transaction = new VersionedTransaction(messageV0); transaction.sign([keypair]); // Get Base64 encoded string of fully signed transaction const transactionRaw = Buffer.from(transaction.serialize()).toString('base64'); ``` # SDK Overview Source: https://docs.blockrush.io/en/solana/sdk/overview Production-ready SDKs for seamless integration with BlockRush infrastructure. BlockRush provides official SDKs for multiple programming languages, making it easy to integrate our Solana transaction acceleration services into your applications. ## Available SDKs We currently support the following SDKs: High-performance SDK leveraging Rust's powerful features with async/await support. SDK for Node.js and browser environments with modern async/await patterns. ## Key Features * **Simple Integration**: Easy-to-use APIs for all transaction methods (sendTransaction, submitBatch, sendBundle) * **Type Safety**: Full TypeScript support and Rust type safety * **Connection Management**: Built-in connection pooling and timeout control * **Regional Endpoints**: Support for all BlockRush regional endpoints * **Production Ready**: Battle-tested and optimized for high-performance applications ## Getting Started Choose your preferred SDK to get started: 1. **Rust Developers**: Check out the [Rust SDK Quickstart](/en/solana/sdk/rust/quickstart) 2. **JavaScript/TypeScript Developers**: Check out the [JS/TS SDK Quickstart](/en/solana/sdk/js/quickstart) Both SDKs provide examples for constructing tip transactions and submitting them through BlockRush's SWQoS infrastructure. # Quickstart Source: https://docs.blockrush.io/en/solana/sdk/rust/quickstart We have prepared commonly used SDK tools for developers. Explore BlockRush Rust JSON-RPC, a high-performance SDK designed to leverage Rust's powerful features to interact with BlockRush infrastructure on Solana. ## Download * [blockrush-sdk-0.1.0.crate](https://zero402-public.s3.ap-southeast-1.amazonaws.com/static/sdk/blockrush-sdk-0.1.0.crate) ## Environment Rust 1.75+, Tokio async runtime ## Feature Recommendations Enable rustls or native-tls, use connection pooling and timeout control in production environments ## Dependencies and Import ```toml theme={null} [dependencies] blockrush-sdk = { path = "path/to/blockrush-sdk-0.1.0.crate" } tokio = { version = "1", features = ["full"] } serde = { version = "1", features = ["derive"] } serde_json = "1" ``` ## Quick Start ```rust theme={null} #[tokio::test] async fn test_blockrush_sdk() { let sdk = BlockrushSdk::new(Region::JP, "xxxxxx").await.unwrap(); assert_eq!(sdk.region(), Region::JP); let tx_data = "ASN=".to_string(); let resp: SdkResponse = sdk.send_transaction(tx_data).await.unwrap(); println!("{:?}", resp.body); let resp2: SdkResponse = sdk.submit_batch(&vec!["ASN=".to_string()]).await.unwrap(); println!("{:?}", resp2.body); } ``` # Tip Transaction Source: https://docs.blockrush.io/en/solana/sdk/rust/tip_transaction How to tip a transaction. Using our SWQoS, you can use default priority fees (no need to set them specifically), using tips as the priority option. When constructing transactions, you need to add a tip transfer instruction to the transaction to speed up inclusion in blocks. The base64-encoded tx data generated by the example code can be directly called through SDK methods, for example passed to `send_transaction`. ```rust theme={null} pub const MEMO_PROGRAM_ID: &str = "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"; pub const BLOCKRUSH_TIP_WALLET: &str = "AhMVT9KWLGjBbzvdqQkTt4vHwpawnGNoGSqaqXYftNDR"; pub const DEFAULT_TIP_AMOUNT: u64 = 1_000_000; // 0.001 SOL pub fn create_blockrush_tip_ix(pubkey: Pubkey, tip_amount:u64) -> Instruction { let tip_ix = instruction::transfer( &pubkey, &Pubkey::from_str(BLOCKRUSH_TIP_WALLET).unwrap(), tip_amount, ); tip_ix } fn create_memo_tx_with_tip(msg: &[u8], payer: &Keypair, blockhash: Hash) -> Transaction { let memo = Pubkey::from_str(MEMO_PROGRAM_ID).unwrap(); let instruction = Instruction::new_with_bytes(memo, msg, vec![]); let mut instructions = vec![instruction]; let tip_ix = create_blockrush_tip_ix(payer.pubkey(), TIP_AMOUNT); instructions.push(tip_ix); let message = Message::new(&instructions, Some(&payer.pubkey())); Transaction::new(&[payer], message, blockhash) } let test_tx = create_memo_tx_with_tip(b"this is a demo tx", &keypair, latest_hash); let serialized_test_tx = bincode::serialize(&test_tx)?; let base64_test_tx = BASE64_STANDARD.encode(&serialized_test_tx); ```