# Transaction

Transaction submission and retrieval

## Submit transaction (POST)

> Submit a signed transaction to the network

```json
{"openapi":"3.0.3","info":{"title":"Amadeus Blockchain API","version":"1.5.0"},"tags":[{"name":"Transaction","description":"Transaction submission and retrieval"}],"servers":[{"url":"https://nodes.amadeus.bot","description":"Mainnet"},{"url":"https://testnet-rpc.ama.one","description":"Testnet"}],"paths":{"/api/tx/submit":{"post":{"tags":["Transaction"],"summary":"Submit transaction (POST)","description":"Submit a signed transaction to the network","requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary","description":"Packed transaction (raw bytes or Base58 encoded)"}}}},"responses":{"200":{"description":"Submission result","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"txid":{"type":"string"}}}}}}}}}}}
```

## Submit transaction (GET)

> Submit a signed transaction using GET method

```json
{"openapi":"3.0.3","info":{"title":"Amadeus Blockchain API","version":"1.5.0"},"tags":[{"name":"Transaction","description":"Transaction submission and retrieval"}],"servers":[{"url":"https://nodes.amadeus.bot","description":"Mainnet"},{"url":"https://testnet-rpc.ama.one","description":"Testnet"}],"paths":{"/api/tx/submit/{tx_packed}":{"get":{"tags":["Transaction"],"summary":"Submit transaction (GET)","description":"Submit a signed transaction using GET method","parameters":[{"name":"tx_packed","in":"path","required":true,"description":"Packed transaction (Base58 encoded)","schema":{"type":"string"}}],"responses":{"200":{"description":"Submission result","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

## Submit and wait for confirmation (POST)

> Submit a transaction and wait for it to be included in a block

```json
{"openapi":"3.0.3","info":{"title":"Amadeus Blockchain API","version":"1.5.0"},"tags":[{"name":"Transaction","description":"Transaction submission and retrieval"}],"servers":[{"url":"https://nodes.amadeus.bot","description":"Mainnet"},{"url":"https://testnet-rpc.ama.one","description":"Testnet"}],"paths":{"/api/tx/submit_and_wait":{"post":{"tags":["Transaction"],"summary":"Submit and wait for confirmation (POST)","description":"Submit a transaction and wait for it to be included in a block","requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary","description":"Packed transaction (raw bytes or Base58 encoded)"}}}},"responses":{"200":{"description":"Submission and confirmation result","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

## Submit and wait for confirmation (GET)

> Submit a transaction and wait for confirmation using GET method

```json
{"openapi":"3.0.3","info":{"title":"Amadeus Blockchain API","version":"1.5.0"},"tags":[{"name":"Transaction","description":"Transaction submission and retrieval"}],"servers":[{"url":"https://nodes.amadeus.bot","description":"Mainnet"},{"url":"https://testnet-rpc.ama.one","description":"Testnet"}],"paths":{"/api/tx/submit_and_wait/{tx_packed}":{"get":{"tags":["Transaction"],"summary":"Submit and wait for confirmation (GET)","description":"Submit a transaction and wait for confirmation using GET method","parameters":[{"name":"tx_packed","in":"path","required":true,"description":"Packed transaction (Base58 encoded)","schema":{"type":"string"}}],"responses":{"200":{"description":"Submission and confirmation result","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```


---

# Agent Instructions: 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.ama.one/http-api/transaction.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.
