How to create transaction request?

Process of creating a transaction request

Arrange Transaction Request

Arrange Transaction Requests in the format

{
    "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

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

Create Transaction Request

Using SDK

For Quickstart

Creating Transaction Request

const arrangedData = {} // arranged request data

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

Last updated