> For the complete documentation index, see [llms.txt](https://solpay-docs.solblaze.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://solpay-docs.solblaze.org/reference/sdk-reference/networks.md).

# networks

```javascript
(async() => {
    SOLPay.networks.mainnet.SOLANA // Solana mainnet endpoint
    SOLPay.networks.mainnet.SERUM // Project Serum mainnet endpoint
    SOLPay.networks.mainnet.TRITON // Triton/RPC Pool mainnet endpoint
    SOLPay.networks.mainnet.PHANTOM // Phantom mainnet endpoint
    SOLPay.networks.mainnet.GENESYSGO // GenesysGo mainnet endpoint
    SOLPay.networks.mainnet.SOLANAPAY // Solana Pay/GenesysGo endpoint
    SOLPay.networks.devnet.SOLANA // Solana devnet endpoint
    SOLPay.networks.testnet.SOLANA // Solana testnet endpoint

    await SOLPay.connectNetwork(SOLPay.networks.mainnet.SOLANA); // {"network": "https://api.mainnet-beta.solana.com", "commitment": "confirmed"}
    await SOLPay.connectNetwork(SOLPay.networks.mainnet.SERUM); // {"network": "https://solana-api.projectserum.com", "commitment": "confirmed"}
    await SOLPay.connectNetwork(SOLPay.networks.mainnet.TRITON); // {"network": "https://free.rpcpool.com", "commitment": "confirmed"}
    await SOLPay.connectNetwork(SOLPay.networks.mainnet.PHANTOM); // {"network": "https://solana-mainnet.phantom.tech", "commitment": "confirmed"}
    await SOLPay.connectNetwork(SOLPay.networks.mainnet.GENESYSGO); // {"network": "https://ssc-dao.genesysgo.net", "commitment": "confirmed"}
    await SOLPay.connectNetwork(SOLPay.networks.mainnet.SOLANAPAY); // {"network": "https://solanapay.genesysgo.net", "commitment": "confirmed"}
    await SOLPay.connectNetwork(SOLPay.networks.devnet.SOLANA); // {"network": "https://api.devnet.solana.com", "commitment": "confirmed"}
    await SOLPay.connectNetwork(SOLPay.networks.testnet.SOLANA); // {"network": "https://api.testnet.solana.com", "commitment": "confirmed"}
})();
```

### Networks

* mainnet
  * SOLANA - Solana endpoint ([api.mainnet-beta.solana.com](https://api.mainnet-beta.solana.com))
  * SERUM - Project Serum endpoint ([solana-api.projectserum.com](https://solana-api.projectserum.com))
  * TRITON - Triton/RPC Pool endpoint ([free.rpcpool.com](https://free.rpcpool.com))
  * PHANTOM - Phantom endpoint ([solana-mainnet.phantom.tech](https://solana-mainnet.phantom.tech))
  * GENESYSGO - GenesysGo endpoint ([ssc-dao.genesysgo.net](https://ssc-dao.genesysgo.net))
  * SOLANAPAY - Solana Pay/GenesysGo endpoint ([solanapay.genesysgo.net](https://solanapay.genesysgo.net))
* devnet
  * SOLANA - Solana endpoint ([api.devnet.solana.com](https://api.devnet.solana.com))
* testnet
  * SOLANA - Solana endpoint ([api.testnet.solana.com](https://api.testnet.solana.com))


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://solpay-docs.solblaze.org/reference/sdk-reference/networks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
