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.

Get Usage

Get API call counts for the authenticated API key, or for owned keys and Apps when using x-dev-portal-key. Rows are grouped by API key, endpoint, status code, and error code.

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:
  /metrics/usage:
    get:
      description: >-
        Get API call counts for the authenticated API key, or owned keys and
        Apps using x-dev-portal-key. Rows are grouped by API key, endpoint,
        status code, and error code.
      parameters:
        - schema:
            type: string
            enum:
              - minutely
              - hourly
              - daily
            default: hourly
          in: query
          name: granularity
          required: false
          description: >-
            Time bucket granularity. minutely defaults to last 24h, hourly to
            last 7d, daily to last 14d.
        - schema:
            type: number
          in: query
          name: startTimestamp
          required: false
          description: >-
            Start of the query window as a Unix timestamp (seconds). Defaults
            based on granularity.
        - schema:
            type: number
          in: query
          name: endTimestamp
          required: false
          description: >-
            End of the query window as a Unix timestamp (seconds). Defaults to
            now.
        - schema:
            type: string
          in: query
          name: apiKey
          required: false
          description: >-
            Filter metrics by API key. Accepts a single value or a
            comma-separated list (e.g. key1,key2) — results include metrics
            matching any of the supplied keys. Maximum 50 values across apiKey,
            apiKeyId and appId.
        - schema:
            type: string
          in: query
          name: apiKeyId
          required: false
          description: >-
            Filter metrics by API key IDs (key_id_<uuid>, comma-separated) owned
            by your integrator when using x-dev-portal-key. OR matching with
            apiKey and appId; maximum 50 values combined.
        - schema:
            type: string
          in: query
          name: appId
          required: false
          description: >-
            Filter by owned Apps (app_id_<uuid>, comma-separated); requires
            x-dev-portal-key. Includes all current keys, including inactive
            keys. OR matching with apiKey and apiKeyId; maximum 50 filter values
            combined before expanding Apps to keys. Rows remain grouped by API
            key. App attribution is resolved at read time: hard-deleted keys
            drop out and reassigned keys attribute all retained usage to their
            current App. Retention is 24h minutely, 7d hourly, and 14d daily.
        - schema:
            type: string
          in: header
          name: x-dev-portal-key
          required: false
          description: Integrator portal credential required for appId filtering.
        - schema:
            type: string
          in: header
          name: x-api-key
          required: false
          description: Integrator API key.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  metrics:
                    type: array
                    items:
                      type: object
                      properties:
                        apiKey:
                          type: string
                        apiKeyId:
                          type: string
                          nullable: true
                        appId:
                          type: string
                          nullable: true
                        timestamp:
                          type: string
                        endpoint:
                          type: string
                        statusCode:
                          type: number
                        errorCode:
                          type: string
                          description: >-
                            Only present on rows where statusCode is 400.
                            Contains the machine-readable error code (e.g.
                            AMOUNT_TOO_LOW).
                        count:
                          type: number

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

PreviousClaim App FeesNextFast Fill
Relay© 2026 Uneven Labs, Inc. All rights reserved.XGitHubSupport