Relay
SupportGet in TouchTry Relay
Relay PlatformAPI ReferenceRelayKitRelay ProtocolChangelog

Getting Started

What is Relay?How Relay Works

Solutions

Payment Service ProvidersWallets & Wallet ProvidersMultichain AppsChainsCommerce & Payments

Use Cases

Bridging & OnboardingSwapsCall Execution

Features

App FeesFee SponsorshipDeposit AddressesGas Top-UpGasless ExecutionFast FillGasless SwapsPrice StabilizationRouting Integration Models

Security

Transaction ScreeningUnsupported ExchangesBug Bounty ProgramMEV protectionCommunity SupportContract Audits

Resources

Supported ChainsIntegrating using AISupportBrand Assets

API Reference

API OverviewQuickstartApps, API keys, and Rate LimitsAccess TokensUnderstanding Step ExecutionWallet DetectionCost & Fee StructureRefundsInput ValidationTrade TypesSurplus & ShortageHandling Quote ErrorsHandling Rate LimitsHandling Execution ErrorsContract CompatibilityBridging Integration GuideCall Execution Integration GuideTransaction IndexingBase Builder CodesSmart Accounts in RelayTestnet SupportSolana SupportBitcoin SupportHyperliquid SupportLighter SupportDeep LinkingWebsocketsWebhooksMigrating to Requests v3Migrating to Currencies v2Migrating to Token Price v2Supported ChainsContract AddressesSupported Tokens & RoutesTroubleshootingGet QuoteSubmit PermitGet StatusGet RequestsGet Published RequestsGet ChainsGet Chains LiquidityGet CurrenciesGet Currency ClassificationsGet Token PriceTransactions IndexTransactions SingleDeposit Address ReindexGet App Fee BalancesGet Balance EventsClaim App FeesGet UsageFast FillGet Swap SourcesCreate Access TokenExecute Gasless TxsAttest DepositGet Recovery BalancesRequest WithdrawalGet Withdrawal StatusGet Requests (v2)Get PriceGet ConfigGet Execution StatusGet Currencies (v1)Get Token Price (v1)Get Quote

RelayKit

OverviewInstallationcreateClientgetQuoteexecutegetAppFeesclaimAppFeesfastFillexecuteGaslessBatchAdaptersTypescript API TypingsChain UtilsInstallationuseQuoteuseRelayChainsuseRequestsuseTokenListuseTokenPriceuseExecutionStatusInstallationRelayKitProviderSwapWidgetThemingTroubleshooting

Protocol

Relay ProtocolHow It WorksThe Relay ChainDepositoryDeposit AddressesOracleHubAllocatorSecurity CouncilSecurity & AuditsFor AppsProgrammatic WithdrawalsWithdrawing with a SafeOperate a Third-Party Relay OracleAddressesEVM Depository ReferenceSVM Depository ReferenceOverviewArchitectureSecurityRelay Vaults BackendBridgingInteracting with Relay VaultsWithdrawing from Relay VaultsRelayPoolFactoryRelayPoolRelayPoolNativeGatewayRelayBridgeFactoryRelayBridge

Changelog

Changelog
## Documentation Index Fetch the complete documentation index at: https://docs.relay.link/llms.txt Use this file to discover all available pages before exploring further.
## Agent Instructions To quote bridges and swaps, look up chains and tokens, or track Relay transactions from an agent, use the Relay MCP server: npx -y @relayprotocol/relay-mcp. It is read-only and does not sign or broadcast transactions. Setup: https://docs.relay.link/resources/developing-with-ai.md For Relay Protocol's trust model, security architecture, and audits, see https://docs.relay.link/references/protocol/security.md. For address screening, see https://docs.relay.link/security/transaction-screening.md.

Execute Gasless Txs

This API executes gasless transactions

OpenAPI

openapi: 3.0.3
info:
  title: Cross-chain solver
  version: 1.0.0
servers:
  - url: https://api.relay.link
    description: Mainnet API
  - url: https://api.testnets.relay.link
    description: Testnet API
security: []
paths:
  /execute:
    post:
      parameters:
        - schema:
            type: string
          in: header
          name: x-api-key
          required: true
          description: >-
            Required API key for authentication. Contact the team for getting an
            API Key
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                executionKind:
                  type: string
                  description: >-
                    The kind of gasless transaction to execute. Currently
                    supported: rawCalls
                  enum:
                    - rawCalls
                data:
                  type: object
                  description: Raw call parameters for the gasless transaction
                  properties:
                    chainId:
                      type: integer
                      description: Chain ID of the EVM network
                    to:
                      type: string
                      pattern: ^0x[a-fA-F0-9]{40}$
                      description: Address of the contract to call
                    data:
                      type: string
                      pattern: ^0x[a-fA-F0-9]*$
                      description: Encoded function call data
                    value:
                      type: string
                      description: ETH value to send with the call (in wei)
                    authorizationList:
                      type: array
                      items:
                        type: object
                        properties:
                          chainId:
                            type: number
                          address:
                            type: string
                            pattern: ^0x[a-fA-F0-9]{40}$
                          nonce:
                            type: number
                          yParity:
                            type: number
                          r:
                            type: string
                          s:
                            type: string
                        required:
                          - chainId
                          - address
                          - nonce
                          - yParity
                          - r
                          - s
                      description: >-
                        Authorization list for EIP-7702 transactions to be
                        executed on destination chain
                  required:
                    - chainId
                    - to
                    - data
                    - value
                executionOptions:
                  type: object
                  description: >-
                    Options related to gas fee sponsorship, app referrer and
                    destination calls
                  properties:
                    referrer:
                      type: string
                      description: >-
                        The referrer of the app which is executing the gasless
                        transaction
                    subsidizeFees:
                      type: boolean
                      description: >-
                        If the app should pay for the fees associated with the
                        request
                    destinationChainExecutionData:
                      type: object
                      description: Destination execution data for the gasless transaction
                      properties:
                        calls:
                          type: array
                          minItems: 1
                          description: Calls to be executed on the destination chain
                          items:
                            type: object
                            properties:
                              to:
                                type: string
                                pattern: ^0x[a-fA-F0-9]{40}$
                              value:
                                type: string
                              data:
                                type: string
                                pattern: ^0x[a-fA-F0-9]*$
                        authorizationList:
                          type: array
                          items:
                            type: object
                            properties:
                              chainId:
                                type: number
                              address:
                                type: string
                                pattern: ^0x[a-fA-F0-9]{40}$
                              nonce:
                                type: number
                              yParity:
                                type: number
                              r:
                                type: string
                              s:
                                type: string
                            required:
                              - chainId
                              - address
                              - nonce
                              - yParity
                              - r
                              - s
                          description: >-
                            Authorization list for EIP-7702 transactions to be
                            executed on destination chain
                      required:
                        - calls
                  required:
                    - subsidizeFees
                requestId:
                  type: string
                  description: The request ID of the gasless transaction to execute
              required:
                - executionKind
                - data
                - executionOptions
        required: true
      responses:
        '200':
          description: Transaction successfully queued for execution
          content:
            application/json:
              schema:
                description: Transaction successfully queued for execution
                type: object
                properties:
                  message:
                    type: string
                    example: Transaction submitted
                  requestId:
                    type: string
                    example: 0xabc123...
        '400':
          description: Bad Request - Invalid input or simulation failure
          content:
            application/json:
              schema:
                description: Bad Request - Invalid input or simulation failure
                type: object
                properties:
                  error:
                    type: string
                    example: DELEGATION_REDEEM_FAILED
                  errorCode:
                    type: string
                    example: INVALID_REQUEST_PARAMS
                  message:
                    type: string
                    example: >-
                      Delegation redemption reverted without data. Verify the
                      signed delegation is unredeemed and matches the current
                      chain, mode, and account.
                  requestId:
                    type: string
                    example: 0xabc123...
                  details:
                    type: object
                    properties:
                      topLevel:
                        type: object
                        properties:
                          type:
                            type: string
                          address:
                            type: string
                          contract:
                            type: string
                          function:
                            type: string
                          selector:
                            type: string
                          error:
                            type: string
                          revertReason:
                            type: string
                          gasUsed:
                            type: string
                        required:
                          - type
                        additionalProperties: false
                      innermost:
                        type: object
                        properties:
                          type:
                            type: string
                          address:
                            type: string
                          contract:
                            type: string
                          function:
                            type: string
                          selector:
                            type: string
                          error:
                            type: string
                          revertReason:
                            type: string
                          gasUsed:
                            type: string
                        required:
                          - type
                        additionalProperties: false
                      path:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                            address:
                              type: string
                            contract:
                              type: string
                            function:
                              type: string
                            selector:
                              type: string
                            error:
                              type: string
                            revertReason:
                              type: string
                            gasUsed:
                              type: string
                          required:
                            - type
                          additionalProperties: false
                      revert:
                        type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - errorString
                              - panic
                              - customError
                              - unknownCustomError
                              - empty
                          label:
                            type: string
                            example: DELEGATION_REDEEM_FAILED
                          message:
                            type: string
                            example: >-
                              Delegation redemption reverted without data.
                              Verify the signed delegation is unredeemed and
                              matches the current chain, mode, and account.
                          selector:
                            type: string
                            example: '0x08c379a0'
                          name:
                            type: string
                            example: Error
                          args:
                            type: object
                            additionalProperties:
                              type: string
                          rawArgsHex:
                            type: string
                        required:
                          - type
                          - label
                          - message
                        additionalProperties: false
                    required:
                      - topLevel
                      - innermost
                      - path
                      - revert
                    additionalProperties: false
        '401':
          description: Unauthorized - Missing or invalid API key
          content:
            application/json:
              schema:
                description: Unauthorized - Missing or invalid API key
                type: object
                properties:
                  error:
                    type: string
                    example: Unauthorized
                  errorCode:
                    type: string
                    example: UNAUTHORIZED
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                description: Internal Server Error
                type: object
                properties:
                  error:
                    type: string
                    example: Internal server error

This documentation is built and hosted on Mintlify, a developer documentation platform.

PreviousCreate Access TokenNextAttest Deposit
Relay© 2026 Uneven Labs, Inc. All rights reserved.XGitHubSupport