Quick Start

2.1 Get your API Key

To access the 0Block API, you’ll need an API Key. Get your API Key

All API requests require the following header:


2.2 Tip Requirement

Every transaction submitted to 0Block must include a minimum tip of 0.001 SOL sent to one of the following official 0Block tip accounts:

7ryAvKtymdDdnSqE6g8ctS7sMcmxDCZbzXoRDWSLzero
6646q6HMnzAE7BUhsWma86SebPm2VC9bW9tsDJsDzero
2ZH2unJ7NaCu3kiXaiJPDwjSjDNudFgqhMetSDJGzero
9yXPwviBkVAEWGEbCVkYhzyN7fsrybfDSYv7SeTXzero
4LFeE3G7eJDHoStjPrga6MyJdbrMG924MAyLTp3Rzero
GHjaNw8Sd8ArWZt2UqoH2rGYtzt2MspUmxcAshFkzero
MbCZkyVkpADL3kqWPf94bWXNgzwNeyjUqUXBZn5zero
AYXWDKX1wWwS6Rcydx2Z6QjS1SZhW69z2pxoEpuRzero
8kR3r5aaenaauC1qFcBVwAtMAP9GAANthrsLToe3zero
24wwbjb4vXDpfGHhH61JsPkRQzSnCFWUeiuQpXkZzero

Example

Include a transfer instruction in your transaction (preferably as the first instruction):

transaction.addInstruction(
    SystemProgram.transfer(
        fromPublicKey,
        '7ryAvKtymdDdnSqE6g8ctS7sMcmxDCZbzXoRDWSLzero',
        1_000_000 // 0.001 SOL
    )
);

Transactions without a valid tip will be rejected.


2.3 API Endpoints

You can connect to any of the following regional 0Block endpoints based on proximity and latency:

Region
Endpoint

🇺🇸 North America (East)

https://nyc.0block.io

🇺🇸 North America (Central)

https://chi.0block.io

🇺🇸 North America (West)

https://las.0block.io

🇳🇱 Netherlands

https://ams.0block.io

🇬🇧 United Kingdom

https://lon.0block.io

🇩🇪 Germany

https://fra.0block.io

🇸🇬 Singapore

https://sin.0block.io

🇦🇺 Australia

https://syd.0block.io

All endpoints expose the same API routes and automatically route to the nearest available Solana RPC cluster.


2.4 Send Your First Transaction

Use curl or your preferred HTTP client to submit a base64-encoded Solana transaction.

curl -X POST 'https://nyc.0block.io/?api_key=<YOUR_API_KEY>' \
  -H "Content-Type: application/json" \
  -d '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "sendTransaction",
      "params": [
        "BASED64_ENCODED_TRANSACTION",
        { 
          "encoding": "base64", 
          "skipPreflight": true 
        }
      }'

Last updated