POST
/
execute
cURL
curl --request POST \
  --url https://api.relay.link/execute \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "executionKind": "rawCalls",
  "data": {
    "chainId": 123,
    "to": "<string>",
    "data": "<string>",
    "value": "<string>",
    "authorizationList": [
      {
        "chainId": 123,
        "address": "<string>",
        "nonce": 123,
        "yParity": 123,
        "r": "<string>",
        "s": "<string>"
      }
    ]
  },
  "executionOptions": {
    "referrer": "<string>",
    "subsidizeFees": true
  },
  "requestId": "<string>"
}'
{
  "message": "Transaction submitted",
  "requestId": "0xabc123..."
}

Headers

x-api-key
string
required

Required API key for authentication. Contact the team for getting an API Key

Body

application/json
executionKind
enum<string>
required

The kind of gasless transaction to execute. Currently supported: rawCalls

Available options:
rawCalls
data
object
required

Raw call parameters for the gasless transaction

executionOptions
object
required

Options related to gas fee sponsorship and app referrer

requestId
string

The request ID of the gasless transaction to execute

Response

Transaction successfully queued for execution

message
string
Example:

"Transaction submitted"

requestId
string
Example:

"0xabc123..."