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.

Solana Support

How to Deposit or Withdraw on Solana from an EVM Chain

Relay now fully supports depositing & withdrawing to Solana from any EVM chain we support. This is a great way to get users funds on Solana to complete transactions. You can onboard users funds from Blast ETH to Solana USDC to make transactions on a game. You could also swap funds from Solana SOL to Zora ETH for users to mint. The possibilities are limitless when you use Relay embedded in your app.

Required Information

There are few things that make transacting on Solana different than another EVM chain. The provided information below should review all the exceptions where your input is Solana specific.

[!WARNING] Solana wallet addresses are case sensitive.

SDK Properties

ActionParameterInputDescription
Deposit to SolanatoChainId792703809Chain ID assigned to access Solana for Relay's tools.
recipientUser's Solana AddressMust be a valid Solana address. Do not use an Ethereum wallet address. *Case Sensitive*
toCurrencyContract Address of Solana TokenMust be a valid Solana token address. Do not use an EVM address. We support all tokens tradeable on Jupiter.
Withdraw from SolanachainId792703809Chain ID assigned to access Solana for Relay's tools.
currencyContract Address of Solana TokenMust be a valid Solana token address. Do not use an EVM address. We support all tokens tradeable on Jupiter.
[!NOTE] When withdrawing from Solana using the SDK, you will not need to specify the depositing wallet address. 

Solana Tokens

In the table, we have provided the most frequently used Solana tokens & their contract addresses. We do support all tradeable tokens on Jupiter.

[!WARNING] Solana token addresses are case sensitive.
TokenToken AddressToken SymbolDecimals
SOL11111111111111111111111111111111SOL9
USDCEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vUSDC6
wSolSo11111111111111111111111111111111111111112wSOL9
USDTEs9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYBUSDT6
[!TIP] Relay supports any Solana token available on Jupiter. You can visit Jupiter to explore all the tokens available.

API

Params

ActionParameterInputDescription
Deposit to SolanarecipientUser's Solana AddressMust be a valid Solana address. Do not use an Ethereum wallet address. *Case Sensitive*
destinationChainId792703809Chain ID assigned to access Solana for Relay's tools.
destinationCurrencyContract Address of Solana TokenMust be a valid Solana token address. Do not use an EVM address. We support all tokens tradeable on Jupiter.
Withdraw from SolanauserUser's Solana AddressMust be a valid Solana address. Do not use an Ethereum wallet address. *Case Sensitive*
originChainId792703809Chain ID assigned to access Solana for Relay's tools.
originCurrencyContract Address of Solana TokenMust be a valid Solana token address. Do not use an EVM address. We support all tokens tradeable on Jupiter.

Execution

Once you have the necessary information, you can start utilizing our API for full Solana withdrawal and deposit support. To get started, check out the execution steps of our API. Then when you're ready to swap, head over to the Get Quote API endpoint.

Please note that instead of the usual calldata returned with EVM transactions, there’s different calldata that needs to be handled accordingly.

Example: Deposit to Solana from Base

[!WARNING] Starting October 2, 2026, POST /quote/v2 will require a valid API key on every request. Pass your key in the x-api-key header — see API keys and Rate Limits. Requests that include a referrer already require the key today. quote/v2 remains fully supported for authenticated requests.
curl -X POST "https://api.relay.link/quote/v2" \
  -H "Content-Type: application/json" \
  -d '{
    "user": "0x03508bb71268bba25ecacc8f620e01866650532c",
    "originChainId": 8453,
    "originCurrency": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
    "destinationChainId": 792703809,
    "destinationCurrency": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "recipient": "GTtzwxqy67xx9DVESJjx28TgXqpc8xTqtiytgNMaQBTE",
    "tradeType": "EXACT_INPUT",
    "amount": "10000000"
  }'
{
  "steps": [
    {
      "id": "approve",
      "action": "Confirm transaction in your wallet",
      "description": "Sign an approval for USDC",
      "kind": "transaction",
      "requestId": "0x44c1ba1053b2403c5e7024140b73e4a08a7c9d7d0bf985a9755d55d8a9d771f5",
      "items": [
        {
          "status": "incomplete",
          "data": {
            "from": "0x03508bb71268bba25ecacc8f620e01866650532c",
            "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
            "chainId": 8453
          }
        }
      ]
    },
    {
      "id": "deposit",
      "action": "Confirm transaction in your wallet",
      "description": "Depositing funds to the depository contract",
      "kind": "transaction",
      "requestId": "0x44c1ba1053b2403c5e7024140b73e4a08a7c9d7d0bf985a9755d55d8a9d771f5",
      "depositAddress": "",
      "items": [
        {
          "status": "incomplete",
          "data": {
            "from": "0x03508bb71268bba25ecacc8f620e01866650532c",
            "to": "0x4cd00e387622c35bddb9b4c962c136462338bc31",
            "chainId": 8453
          },
          "check": {
            "endpoint": "/intents/status/v3?requestId=0x44c1ba1053b2403c5e7024140b73e4a08a7c9d7d0bf985a9755d55d8a9d771f5",
            "method": "GET"
          }
        }
      ]
    }
  ],
  "fees": {
    "gas": {
      "currency": {
        "chainId": 8453,
        "address": "0x0000000000000000000000000000000000000000",
        "symbol": "ETH",
        "name": "Ether",
        "decimals": 18,
        "metadata": {
          "logoURI": "https://assets.relay.link/icons/1/light.png",
          "verified": true
        }
      },
      "amount": "286882212616",
      "amountFormatted": "0.000000286882212616",
      "amountUsd": "0.000614",
      "minimumAmount": "286882212616"
    },
    "relayer": {
      "currency": {
        "chainId": 8453,
        "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
        "symbol": "USDC",
        "name": "USD Coin",
        "decimals": 6,
        "metadata": {
          "logoURI": "https://coin-images.coingecko.com/coins/images/6319/large/usdc.png?1696506694",
          "verified": true
        }
      },
      "amount": "261358",
      "amountFormatted": "0.261358",
      "amountUsd": "0.261273",
      "minimumAmount": "261358"
    }
  },
  "details": {
    "operation": "swap",
    "sender": "0x03508bb71268bba25ecacc8f620e01866650532c",
    "recipient": "GTtzwxqy67xx9DVESJjx28TgXqpc8xTqtiytgNMaQBTE",
    "currencyIn": {
      "currency": {
        "chainId": 8453,
        "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
        "symbol": "USDC",
        "name": "USD Coin",
        "decimals": 6,
        "metadata": {
          "logoURI": "https://coin-images.coingecko.com/coins/images/6319/large/usdc.png?1696506694",
          "verified": true
        }
      },
      "amount": "10000000",
      "amountFormatted": "10.0",
      "amountUsd": "9.996730",
      "minimumAmount": "10000000"
    },
    "currencyOut": {
      "currency": {
        "chainId": 792703809,
        "address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "symbol": "USDC",
        "name": "USD Coin",
        "decimals": 6,
        "metadata": {
          "logoURI": "https://coin-images.coingecko.com/coins/images/6319/large/usdc.png?1696506694",
          "verified": true
        }
      },
      "amount": "9738642",
      "amountFormatted": "9.738642",
      "amountUsd": "9.735457",
      "minimumAmount": "9543870"
    },
    "timeEstimate": 1
  }
}

Transaction Size Optimization

Solana transactions have a hard 1232-byte wire limit. Relay gates every Solana-origin quote — same-chain and cross-chain — against this raw limit at quote time, so a quote that returns successfully is guaranteed to be signable and broadcastable as-is.

When the compiled deposit transaction would exceed 1232 bytes, POST /quote, POST /quote/v2, and POST /price return a 400 response with errorCode: "SOLANA_TX_TOO_LARGE" and a message that reports the measured size and the number of bytes over the limit:

{
  "message": "Generated Solana transaction is 1416 bytes, 184 over Solana's 1232 byte limit, so it cannot be signed or broadcast.",
  "errorCode": "SOLANA_TX_TOO_LARGE"
}
[!WARNING] Re-quoting the same route with the same input typically returns another oversized route. To recover, request a v1 transaction, restrict routing (see the mitigations below), or retry with a different input amount.
[!NOTE] Wallets and SDKs that prepend compute-budget instructions at send time (roughly 60 bytes) are responsible for checking that their additions still fit under 1232 bytes. A quote that fits the wire limit exactly leaves no room for client-added instructions — clients that add them should measure the returned steps and skip the injection if there is not enough room.

Pass `useV1Transaction: true` in your quote request to receive the deposit transaction in Solana's v1 transaction format (SIMD-0385), which raises the size limit from 1,232 bytes to 4,096 bytes. v1 transactions don't use address lookup tables, and the compute unit limit is set in the step's transactionConfig instead of through ComputeBudget instructions. The parameter is best effort: when it is honored, the returned step data sets transactionVersion to 1; otherwise the quote returns a standard transaction under the 1,232-byte limit. Only set it if your wallet or signing stack can sign and send v1 transactions.

Pass `includedOriginSwapSources` in your quote request to restrict routing to a single, size-conservative source:

curl -X POST "https://api.relay.link/quote/v2" \
  -H "Content-Type: application/json" \
  -d '{
    "user": "GTtzwxqy67xx9DVESJjx28TgXqpc8xTqtiytgNMaQBTE",
    "originChainId": 792703809,
    "originCurrency": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "destinationChainId": 792703809,
    "destinationCurrency": "So11111111111111111111111111111111111111112",
    "recipient": "GTtzwxqy67xx9DVESJjx28TgXqpc8xTqtiytgNMaQBTE",
    "tradeType": "EXACT_INPUT",
    "amount": "10000000",
    "includedOriginSwapSources": ["jupiter"]
  }'

Pass `maxRouteLength` in your quote request to cap the number of hops in the Solana swap routing. It caps hops, not bytes — fewer hops usually means a smaller transaction, but it is not a size guarantee, and support varies by swap source:

  • dflow-routed quotes already default to maxRouteLength: 2 (4 for legacy v1 transactions), so passing a higher value loosens the default and can make the transaction larger, not smaller. Only pass a value when you need to go below the default.
  • Jupiter-routed quotes ignore maxRouteLength entirely; Jupiter constrains size internally through account limits and direct-route restrictions.

For sponsorship flows, pass `depositFeePayer` in the quote request so the transaction is built and sized with the real fee payer from the start. It does not make an oversized route smaller — if the route itself exceeds the limit, restrict routing as above. Mind its restrictions: the fee payer must differ from user, the sponsoring wallet must sign the returned transaction first, and it should not be used for same-chain swaps with untrusted users. The account must hold enough for fees and rent.

For the full list of quote parameters, see the Get Quote API reference.

SDK

To use the SDK with Solana, install and configure the SVM wallet adapter. The adapter handles transaction signing and broadcasting.

npm install @relayprotocol/relay-svm-wallet-adapter

For implementation details and code samples, see the Adapters documentation.

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

PreviousTestnet SupportNextBitcoin Support
Relay© 2026 Uneven Labs, Inc. All rights reserved.XGitHubSupport