# How to create transaction request?

### Arrange Transaction Request

Arrange Transaction Requests in the format

```json
{
    "receiver": "string",
    "payer": "string", //optional
    "actions": [
        {
            "type": "PAYMENT",
            "data": {
                "token": "string",
                "chain": number,
                "receiver": "string",
                "amount": {
                    "amount": "string" // in lowest denominator,
                    "currency": "CRYPTO"
                }
            }
        }
    ],
    "message": "string",
    "label": "string"
}
```

### Generate Message

{% openapi src="/files/xHkDlRpIfj4yuAtwlvDR" path="/transaction-request/generate-message" method="post" %}
[openapi.yml](https://2219691098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxaHazojZlIts4pidXQC6%2Fuploads%2F7U1PRlaamdcCS67VTbzB%2Fopenapi.yml?alt=media\&token=b98daf06-4442-4ccf-8b08-76e32833a666)
{% endopenapi %}

Sign the above-generated message using a private key for the associated EOA or Smart Wallet

### Create Transaction Request

{% openapi src="/files/xHkDlRpIfj4yuAtwlvDR" path="/transaction-request" method="post" %}
[openapi.yml](https://2219691098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxaHazojZlIts4pidXQC6%2Fuploads%2F7U1PRlaamdcCS67VTbzB%2Fopenapi.yml?alt=media\&token=b98daf06-4442-4ccf-8b08-76e32833a666)
{% endopenapi %}

### Using SDK

For [Quickstart](/how-to-integrate/sdk-quickstart.md)

#### Creating Transaction Request

```typescript
const arrangedData = {} // arranged request data

const request = await fetcch.request.create(arrangedData)
```


---

# 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.fetcch.xyz/how-to-integrate/guides/transaction-requests/how-to-create-transaction-request.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.
