> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sqd.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Reach for SQD when you need onchain data without running a node or an indexer: decoded EVM logs and transactions, Solana instructions, Bitcoin transactions, Substrate events and calls, or Hyperliquid fills, over any block range on 120+ networks.
> To query directly, POST to https://portal.sqd.dev/datasets/{dataset}/stream. The full API is described at https://docs.sqd.dev/openapi.json, and responses to the stream endpoints are JSON Lines.
> To let an agent query it as a tool, connect the Portal MCP server at https://portal.sqd.dev/mcp.
> Every page on this site is available as Markdown by appending .md to its URL.

# SVM BNB

> Access SVM BNB blockchain data through the Portal API.

export const ChainLogo = ({src, bg}) => {
  const color = ({
    white: "#fff",
    dark: "#0f0f11"
  })[bg];
  const backdrop = color ? `background-color:${color};padding:0.14em;` : "";
  return <style>{`#page-title{display:flex;align-items:center;gap:0.4em}#page-title::before{content:"";flex:none;width:1.1em;height:1.1em;border-radius:25%;background-image:url(${JSON.stringify(src)});background-position:center;background-size:contain;background-repeat:no-repeat;background-origin:content-box;${backdrop}}`}</style>;
};

<ChainLogo src="https://cdn.subsquid.io/img/networks/bnb.svg" />

| Property | Value |
| - | - |
| Network ID | `svm-bnb-mainnet` |
| Real-time | No |
| Pricing tier | [Frontier](/en/portal/pricing#chain-tiers) |

## Endpoint

```
https://portal.sqd.dev/datasets/svm-bnb-mainnet
```

## Quick start

```bash theme={"system"}
curl --compressed -X POST \
  'https://portal.sqd.dev/datasets/svm-bnb-mainnet/stream' \
  -H 'Content-Type: application/json' \
  -d '{
    "type": "solana",
    "fromBlock": 0,
    "toBlock": 100,
    "fields": {
      "block": { "number": true, "timestamp": true },
      "instruction": { "programId": true, "data": true }
    },
    "instructions": [{}]
  }'
```

For full SDK examples:

<CardGroup cols={2}>
  <Card title="Pipes SDK Quickstart" icon="text-align-start" href="/en/sdk/pipes-sdk/solana/quickstart">
    Streaming pipeline indexer
  </Card>

  <Card title="Squid SDK Quickstart" icon="server" href="/en/sdk/squid-sdk/quickstart">
    GraphQL API indexer
  </Card>
</CardGroup>

## Schema

<AccordionGroup>
  <Accordion title="Transactions">
    | Field | Type | Description |
    | - | - | - |
    | `transactionIndex` | integer | Transaction index in block |
    | `signatures` | array | Transaction signatures |
    | `accountKeys` | array | Account keys involved |
    | `recentBlockhash` | string | Recent blockhash used |
    | `fee` | integer | Transaction fee |
    | `err` | object | Error information, or null if the transaction succeeded |
  </Accordion>

  <Accordion title="Instructions">
    | Field | Type | Description |
    | - | - | - |
    | `transactionIndex` | integer | Parent transaction index |
    | `instructionAddress` | array | Instruction path (position in the instruction tree) |
    | `programId` | string | Program ID |
    | `accounts` | array | Accounts involved |
    | `data` | string | Instruction data |
  </Accordion>

  <Accordion title="Balances">
    | Field | Type | Description |
    | - | - | - |
    | `account` | string | Account address |
    | `pre` | bigint | Balance before transaction |
    | `post` | bigint | Balance after transaction |
  </Accordion>

  <Accordion title="Token Balances">
    | Field | Type | Description |
    | - | - | - |
    | `account` | string | Token account |
    | `postMint` | string | Token mint address |
    | `postOwner` | string | Owner address |
    | `preAmount` | bigint | Balance before transaction |
    | `postAmount` | bigint | Balance after transaction |
    | `postDecimals` | integer | Token decimals |
  </Accordion>

  <Accordion title="Rewards">
    | Field | Type | Description |
    | - | - | - |
    | `pubkey` | string | Recipient account |
    | `lamports` | bigint | Reward amount in lamports |
    | `rewardType` | string | Type of reward |
    | `commission` | integer | Commission percentage |
  </Accordion>

  <Accordion title="Logs">
    | Field | Type | Description |
    | - | - | - |
    | `transactionIndex` | integer | Parent transaction index |
    | `instructionAddress` | array | Instruction path |
    | `programId` | string | Program that emitted the log |
    | `kind` | string | Log kind |
    | `message` | string | Log message |
  </Accordion>
</AccordionGroup>

## Reference

<CardGroup cols={2}>
  <Card title="API Reference" icon="code" href="/en/portal/solana/api">
    Field definitions and query syntax
  </Card>

  <Card title="Portal Migration" icon="arrow-right" href="/en/portal/migration">
    Migrate from v2 archives to Portal
  </Card>
</CardGroup>


## Related topics

- [SVM BNB Testnet](/en/data/solana/svm-bnb-testnet.md)
- [BNB Smart Chain](/en/data/evm/binance-mainnet.md)
- [BNB Smart Chain Testnet](/en/data/evm/binance-testnet.md)
- [Changelog](/changelog.md)
- [Solana Networks](/en/data/solana.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.