> For the complete documentation index, see [llms.txt](https://docs.nextblock.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nextblock.io/api/examples.md).

# Examples

Use the examples section based on the transport and level of control you need:

* **HTTP**: simplest way to integrate from any language using REST requests
* **gRPC**: recommended general-purpose integration if you want the full submission feature set
* **QUIC**: lowest-latency submission path for advanced traders sending raw signed transaction bytes
* **TX Stream**: separate real-time monitoring service for transaction streams, not a submission API

## Which Path Should You Choose?

* Start with **HTTP** if you want the quickest integration and are fine working with JSON requests.
* Use **gRPC** if you want language-native clients and support for submission options such as front-running protection, revert-on-fail, disable-retries, and bundle submission.
* Use **QUIC** if latency is your top priority and you only need to send raw signed transaction bytes. QUIC does **not** support the extra gRPC submission flags or the batch submission endpoint.
* Use **TX Stream** if you want to monitor live transactions for trading or analytics. It uses a different authentication model from the main API.

## Language Sections

* [Golang](/api/examples/golang.md)
* [Rust](https://github.com/nextblock-ag/nextblock-docs/blob/main/api/examples/rust/README.md)
* [Python](/api/examples/python.md)
* [JavaScript/TypeScript](/api/examples/javascript.md)
* [HTTP](/api/examples/http.md)


---

# 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://docs.nextblock.io/api/examples.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.
