# Price a transfer



{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

```yaml
POST /v1/quotes:
  summary: Price a transfer
  description: |
    Prices one transfer and returns everything needed to execute it: `destination.amount` (expected) alongside `destination.minAmount` (the guaranteed floor), an itemised fee breakdown, `expiresAt`, and every action to sign or send.
    A quote is an offer, not a commitment. Complete the returned `nextActions` in order. Only when they end with `submit_execution`, POST the results to `POST /v1/quotes/{orderId}/executions`. A quote funded by an approval and an on-chain `prefunded-store` transaction has no `submit_execution`: that transaction starts the transfer, so there is nothing to POST.
  requestBody:
    required: true
    content:
      application/json:
        schema:
          $ref: "#/components/schemas/PostQuotesRequest"
        examples:
          transfer:
            summary: Transfer USDC from Arbitrum to Base
            value:
              origin:
                token:
                  chainId: 42161
                  address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
                amount: "1000000"
                depositor: "0x1111111111111111111111111111111111111111"
              destination:
                token:
                  chainId: 8453
                  address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
                recipient: "0x1111111111111111111111111111111111111111"
              amountType: exact_input
              authorizationPolicy:
                allowedTypes:
                  - approval
                  - permit2
          destinationActions:
            summary: Deposit USDC into Aave on Base (destinationActions)
            description: |
              Bridges 5 USDC from Arbitrum, then approves the Aave v3 Pool on Base and calls `supply` with the delivered balance. The aTokens are minted to `onBehalfOf`, the third `supply` argument.
            value:
              origin:
                token:
                  chainId: 42161
                  address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
                amount: "5000000"
                depositor: "0x1111111111111111111111111111111111111111"
              destination:
                token:
                  chainId: 8453
                  address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
                recipient: "0x1111111111111111111111111111111111111111"
              amountType: exact_input
              authorizationPolicy:
                allowedTypes:
                  - approval
                  - permit2
              destinationActions:
                steps:
                  - kind: approve
                    token: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
                    spender: "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5"
                    populateDynamically: true
                  - kind: function-call
                    target: "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5"
                    functionSignature: supply(address,uint256,address,uint16)
                    args:
                      - value: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
                      - populateDynamically: true
                        balanceSourceToken: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
                      - value: "0x1111111111111111111111111111111111111111"
                      - value: 0
                onFailure:
                  action: revert
          gasTopUp:
            summary: Transfer USDC from Arbitrum to Base with an ETH gas top-up
            description: |
              Bridges 10 USDC and also delivers 0.0005 ETH to the recipient on Base. The ETH is bought with part of the 10 USDC, so the USDC output is lower than without the top-up. Check `capabilities.gasTopUp` on `GET /v1/capabilities` for the most you can request.
            value:
              origin:
                token:
                  chainId: 42161
                  address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
                amount: "10000000"
                depositor: "0x1111111111111111111111111111111111111111"
              destination:
                token:
                  chainId: 8453
                  address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
                recipient: "0x1111111111111111111111111111111111111111"
              amountType: exact_input
              gasTopUp:
                amount: "500000000000000"
              authorizationPolicy:
                allowedTypes:
                  - approval
                  - permit2
  responses:
    "200":
      description: Quote
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/Quote"
          examples:
            erc3009:
              summary: USDC funded by an ERC-3009 signature (no authorizationPolicy)
              value:
                expiresAt: 2026-10-15T23:44:04.020Z
                originValidUntil: 2026-10-15T23:59:05.000Z
                expectedFillTimeMs: 1252
                refundTo:
                  - token:
                      kind: token
                      chainId: 42161
                      address: "0xaf88d065e77c8cc2239327c5edb3a432268e5831"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://arbiscan.io/token/0xaf88d065e77c8cc2239327c5edb3a432268e5831
                      chain:
                        chainId: 42161
                        name: arbitrum-one
                        displayName: Arbitrum One
                        namespace: evm
                        explorerUrl: https://arbiscan.io
                        logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://arb1.arbitrum.io/rpc
                    refundAddress:
                      address: "0x1111111111111111111111111111111111111111"
                      chain:
                        chainId: 42161
                        name: arbitrum-one
                        displayName: Arbitrum One
                        namespace: evm
                        explorerUrl: https://arbiscan.io
                        logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://arb1.arbitrum.io/rpc
                origin:
                  token:
                    kind: token
                    chainId: 42161
                    address: "0xaf88d065e77c8cc2239327c5edb3a432268e5831"
                    symbol: USDC
                    name: USD Coin
                    decimals: 6
                    explorerUrl: https://arbiscan.io/token/0xaf88d065e77c8cc2239327c5edb3a432268e5831
                    priceUsd: 0.999608
                    priceUsdAt: 2026-10-15T23:28:01.141Z
                    chain:
                      chainId: 42161
                      name: arbitrum-one
                      displayName: Arbitrum One
                      namespace: evm
                      explorerUrl: https://arbiscan.io
                      logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                      nativeToken:
                        symbol: ETH
                        decimals: 18
                      publicRpcUrl: https://arb1.arbitrum.io/rpc
                  amount: "1000000"
                  amountUsd: "0.999608000000000052"
                  maxAmount: "1000000"
                  maxAmountUsd: "0.999608000000000052"
                  depositor:
                    address: "0x1111111111111111111111111111111111111111"
                    chain:
                      chainId: 42161
                      name: arbitrum-one
                      displayName: Arbitrum One
                      namespace: evm
                      explorerUrl: https://arbiscan.io
                      logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                      nativeToken:
                        symbol: ETH
                        decimals: 18
                      publicRpcUrl: https://arb1.arbitrum.io/rpc
                destination:
                  token:
                    kind: token
                    chainId: 8453
                    address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                    symbol: USDC
                    name: USD Coin
                    decimals: 6
                    explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                    priceUsd: 0.999608
                    priceUsdAt: 2026-10-15T23:28:01.141Z
                    chain:
                      chainId: 8453
                      name: base
                      displayName: Base
                      namespace: evm
                      explorerUrl: https://basescan.org
                      logoUrl: https://alexandria.across.to/assets/chains/base.svg
                      nativeToken:
                        symbol: ETH
                        decimals: 18
                      publicRpcUrl: https://mainnet.base.org
                  grossAmount: "1000000"
                  amount: "979842"
                  amountUsd: "0.979457901936000019"
                  recipient:
                    address: "0x1111111111111111111111111111111111111111"
                    chain:
                      chainId: 8453
                      name: base
                      displayName: Base
                      namespace: evm
                      explorerUrl: https://basescan.org
                      logoUrl: https://alexandria.across.to/assets/chains/base.svg
                      nativeToken:
                        symbol: ETH
                        decimals: 18
                      publicRpcUrl: https://mainnet.base.org
                  minAmount: "921185"
                  minAmountUsd: "0.920823895480000099"
                fee:
                  totalFee:
                    amount: "20158"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.999608
                      priceUsdAt: 2026-10-15T23:28:01.141Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.020150098064000001"
                  transferFee:
                    amount: "20158"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.999608
                      priceUsdAt: 2026-10-15T23:28:01.141Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.020150098064000001"
                  appFee:
                    amount: "0"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.999608
                      priceUsdAt: 2026-10-15T23:28:01.141Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.000000000000000000"
                  maxTransferFee:
                    amount: "78815"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.999608
                      priceUsdAt: 2026-10-15T23:28:01.141Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.078784104519999995"
                  maxTotalFee:
                    amount: "78815"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.999608
                      priceUsdAt: 2026-10-15T23:28:01.141Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.078784104519999995"
                gasEstimates:
                  - leg: origin
                    effect: included_in_transfer_fee
                    amount: "6827047500000"
                    token:
                      kind: native
                      chainId: 42161
                      address: "0x0000000000000000000000000000000000000000"
                      symbol: ETH
                      name: ETH
                      decimals: 18
                      chain:
                        chainId: 42161
                        name: arbitrum-one
                        displayName: Arbitrum One
                        namespace: evm
                        explorerUrl: https://arbiscan.io
                        logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://arb1.arbitrum.io/rpc
                    amountUsd: "0.016644089460000001"
                    gasUnits: "325000"
                  - leg: destination
                    effect: included_in_transfer_fee
                    amount: "1397522801495"
                    token:
                      kind: native
                      chainId: 8453
                      address: "0x0000000000000000000000000000000000000000"
                      symbol: ETH
                      name: ETH
                      decimals: 18
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.003405858060000000"
                    gasUnits: "221560"
                nextActions:
                  - kind: sign_typed_data
                    id: funding
                    chainId: 42161
                    typedData:
                      types:
                        EIP712Domain:
                          - name: name
                            type: string
                          - name: version
                            type: string
                          - name: chainId
                            type: uint256
                          - name: verifyingContract
                            type: address
                        ReceiveWithAuthorization:
                          - name: from
                            type: address
                          - name: to
                            type: address
                          - name: value
                            type: uint256
                          - name: validAfter
                            type: uint256
                          - name: validBefore
                            type: uint256
                          - name: nonce
                            type: bytes32
                      primaryType: ReceiveWithAuthorization
                      domain:
                        name: USD Coin
                        version: "2"
                        chainId: 42161
                        verifyingContract: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
                      message:
                        from: "0x1111111111111111111111111111111111111111"
                        to: "0x998d7c178A1F9607b47eA3A8e22426451b3ce707"
                        value: "1000000"
                        validAfter: "0"
                        validBefore: "1792108745"
                        nonce: "0x7a961202c77345e711eb85ec722687848327dc26bd81f6e8b09c3dd7489044f4"
                    ecosystem: evm
                    authorization:
                      type: erc3009
                      scope:
                        token:
                          chainId: 42161
                          address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
                        amount: "1000000"
                        recipient: "0x998d7c178A1F9607b47eA3A8e22426451b3ce707"
                        expiresAt: 2026-10-15T23:59:05.000Z
                  - kind: submit_execution
                    id: submit-execution
                    inputs:
                      - funding
                orderId: "0x7a961202c77345e711eb85ec722687848327dc26bd81f6e8b09c3dd7489044f4"
                amountType: exact_input
                refundPolicy:
                  supported: false
                  reason: irreversible_rail
                  message: This route does not guarantee an automatic refund. Recovery may require destination completion or operator assistance. Unfilled Across deposits remain eligible for an origin-chain refund after their SpokePool expiry and refund-bundle settlement.
            permit2:
              summary: Approval, then a Permit2 signature (the `transfer` request example)
              value:
                expiresAt: 2026-10-15T23:42:41.446Z
                originValidUntil: 2026-10-15T23:57:42.000Z
                expectedFillTimeMs: 1252
                refundTo:
                  - token:
                      kind: token
                      chainId: 42161
                      address: "0xaf88d065e77c8cc2239327c5edb3a432268e5831"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://arbiscan.io/token/0xaf88d065e77c8cc2239327c5edb3a432268e5831
                      chain:
                        chainId: 42161
                        name: arbitrum-one
                        displayName: Arbitrum One
                        namespace: evm
                        explorerUrl: https://arbiscan.io
                        logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://arb1.arbitrum.io/rpc
                    refundAddress:
                      address: "0x1111111111111111111111111111111111111111"
                      chain:
                        chainId: 42161
                        name: arbitrum-one
                        displayName: Arbitrum One
                        namespace: evm
                        explorerUrl: https://arbiscan.io
                        logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://arb1.arbitrum.io/rpc
                origin:
                  token:
                    kind: token
                    chainId: 42161
                    address: "0xaf88d065e77c8cc2239327c5edb3a432268e5831"
                    symbol: USDC
                    name: USD Coin
                    decimals: 6
                    explorerUrl: https://arbiscan.io/token/0xaf88d065e77c8cc2239327c5edb3a432268e5831
                    priceUsd: 0.9996
                    priceUsdAt: 2026-10-15T23:26:02.180Z
                    chain:
                      chainId: 42161
                      name: arbitrum-one
                      displayName: Arbitrum One
                      namespace: evm
                      explorerUrl: https://arbiscan.io
                      logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                      nativeToken:
                        symbol: ETH
                        decimals: 18
                      publicRpcUrl: https://arb1.arbitrum.io/rpc
                  amount: "1000000"
                  amountUsd: "0.999600000000000044"
                  maxAmount: "1000000"
                  maxAmountUsd: "0.999600000000000044"
                  depositor:
                    address: "0x1111111111111111111111111111111111111111"
                    chain:
                      chainId: 42161
                      name: arbitrum-one
                      displayName: Arbitrum One
                      namespace: evm
                      explorerUrl: https://arbiscan.io
                      logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                      nativeToken:
                        symbol: ETH
                        decimals: 18
                      publicRpcUrl: https://arb1.arbitrum.io/rpc
                destination:
                  token:
                    kind: token
                    chainId: 8453
                    address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                    symbol: USDC
                    name: USD Coin
                    decimals: 6
                    explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                    priceUsd: 0.9996
                    priceUsdAt: 2026-10-15T23:26:02.180Z
                    chain:
                      chainId: 8453
                      name: base
                      displayName: Base
                      namespace: evm
                      explorerUrl: https://basescan.org
                      logoUrl: https://alexandria.across.to/assets/chains/base.svg
                      nativeToken:
                        symbol: ETH
                        decimals: 18
                      publicRpcUrl: https://mainnet.base.org
                  grossAmount: "1000000"
                  amount: "979810"
                  amountUsd: "0.979418075999999971"
                  recipient:
                    address: "0x1111111111111111111111111111111111111111"
                    chain:
                      chainId: 8453
                      name: base
                      displayName: Base
                      namespace: evm
                      explorerUrl: https://basescan.org
                      logoUrl: https://alexandria.across.to/assets/chains/base.svg
                      nativeToken:
                        symbol: ETH
                        decimals: 18
                      publicRpcUrl: https://mainnet.base.org
                  minAmount: "921139"
                  minAmountUsd: "0.920770544400000057"
                fee:
                  totalFee:
                    amount: "20190"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.9996
                      priceUsdAt: 2026-10-15T23:26:02.180Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.020181924000000000"
                  transferFee:
                    amount: "20190"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.9996
                      priceUsdAt: 2026-10-15T23:26:02.180Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.020181924000000000"
                  appFee:
                    amount: "0"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.9996
                      priceUsdAt: 2026-10-15T23:26:02.180Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.000000000000000000"
                  maxTransferFee:
                    amount: "78861"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.9996
                      priceUsdAt: 2026-10-15T23:26:02.180Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.078829455600000001"
                  maxTotalFee:
                    amount: "78861"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.9996
                      priceUsdAt: 2026-10-15T23:26:02.180Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.078829455600000001"
                gasEstimates:
                  - leg: origin
                    effect: included_in_transfer_fee
                    amount: "6844110000000"
                    token:
                      kind: native
                      chainId: 42161
                      address: "0x0000000000000000000000000000000000000000"
                      symbol: ETH
                      name: ETH
                      decimals: 18
                      chain:
                        chainId: 42161
                        name: arbitrum-one
                        displayName: Arbitrum One
                        namespace: evm
                        explorerUrl: https://arbiscan.io
                        logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://arb1.arbitrum.io/rpc
                    amountUsd: "0.016677185440000002"
                    gasUnits: "325000"
                  - leg: destination
                    effect: included_in_transfer_fee
                    amount: "1397715056190"
                    token:
                      kind: native
                      chainId: 8453
                      address: "0x0000000000000000000000000000000000000000"
                      symbol: ETH
                      name: ETH
                      decimals: 18
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.003404153720000000"
                    gasUnits: "221560"
                  - leg: origin
                    effect: paid_by_wallet
                    actionId: approval
                    gasUnits: "70000"
                    amount: "1403920000000"
                    token:
                      kind: native
                      chainId: 42161
                      address: "0x0000000000000000000000000000000000000000"
                      symbol: ETH
                      name: ETH
                      decimals: 18
                      chain:
                        chainId: 42161
                        name: arbitrum-one
                        displayName: Arbitrum One
                        namespace: evm
                        explorerUrl: https://arbiscan.io
                        logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://arb1.arbitrum.io/rpc
                    amountUsd: "0.003421016099200000"
                nextActions:
                  - kind: approve_token
                    id: approval
                    chainId: 42161
                    spender: "0x000000000022d473030f116ddee9f6b43ac78ba3"
                    amount: "115792089237316195423570985008687907853269984665640564039457584007913129639935"
                    estimatedOriginGas:
                      gasUnits: "70000"
                      amount: "1403920000000"
                      decimals: 18
                      token:
                        chainId: 42161
                        address: "0x0000000000000000000000000000000000000000"
                      amountUsd: "0.003421016099200000"
                    tokenAddress: "0xaf88d065e77c8cc2239327c5edb3a432268e5831"
                    ecosystem: evm
                    authorization:
                      type: approval
                      scope:
                        token:
                          chainId: 42161
                          address: "0xaf88d065e77c8cc2239327c5edb3a432268e5831"
                        amount: "115792089237316195423570985008687907853269984665640564039457584007913129639935"
                        unlimited: true
                        spender: "0x000000000022d473030f116ddee9f6b43ac78ba3"
                  - kind: sign_typed_data
                    id: funding
                    chainId: 42161
                    typedData:
                      types:
                        TokenPermissions:
                          - name: token
                            type: address
                          - name: amount
                            type: uint256
                        PermitWitnessTransferFrom:
                          - name: permitted
                            type: TokenPermissions
                          - name: spender
                            type: address
                          - name: nonce
                            type: uint256
                          - name: deadline
                            type: uint256
                          - name: witness
                            type: bytes32
                      primaryType: PermitWitnessTransferFrom
                      domain:
                        name: Permit2
                        chainId: 42161
                        verifyingContract: "0x000000000022D473030F116dDEE9F6B43aC78BA3"
                      message:
                        permitted:
                          token: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
                          amount: "1000000"
                        spender: "0x998d7c178A1F9607b47eA3A8e22426451b3ce707"
                        nonce: "80376416186948341651001465287686242544528729733865782577791844926345153377369"
                        deadline: "1792108662"
                        witness: "0xb1b3707ce88d6e3c3ee6c54791ff0715ec4d497eee82af0237d8e3febad87459"
                    ecosystem: evm
                    authorization:
                      type: permit2
                      scope:
                        token:
                          chainId: 42161
                          address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
                        amount: "1000000"
                        spender: "0x998d7c178A1F9607b47eA3A8e22426451b3ce707"
                        expiresAt: 2026-10-15T23:57:42.000Z
                  - kind: submit_execution
                    id: submit-execution
                    inputs:
                      - funding
                orderId: "0xb1b3707ce88d6e3c3ee6c54791ff0715ec4d497eee82af0237d8e3febad87459"
                amountType: exact_input
                refundPolicy:
                  supported: false
                  reason: irreversible_rail
                  message: This route does not guarantee an automatic refund. Recovery may require destination completion or operator assistance. Unfilled Across deposits remain eligible for an origin-chain refund after their SpokePool expiry and refund-bundle settlement.
            gasTopUp:
              summary: 10 USDC with a 0.0005 ETH gas top-up (the `gasTopUp` request example)
              value:
                expiresAt: 2026-11-03T21:05:19.000Z
                originValidUntil: 2026-11-03T21:06:19.000Z
                expectedFillTimeMs: 1252
                refundTo:
                  - token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    refundAddress:
                      address: "0x1111111111111111111111111111111111111111"
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                  - token:
                      kind: token
                      chainId: 42161
                      address: "0xaf88d065e77c8cc2239327c5edb3a432268e5831"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://arbiscan.io/token/0xaf88d065e77c8cc2239327c5edb3a432268e5831
                      chain:
                        chainId: 42161
                        name: arbitrum-one
                        displayName: Arbitrum One
                        namespace: evm
                        explorerUrl: https://arbiscan.io
                        logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://arb1.arbitrum.io/rpc
                    refundAddress:
                      address: "0x1111111111111111111111111111111111111111"
                      chain:
                        chainId: 42161
                        name: arbitrum-one
                        displayName: Arbitrum One
                        namespace: evm
                        explorerUrl: https://arbiscan.io
                        logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://arb1.arbitrum.io/rpc
                origin:
                  token:
                    kind: token
                    chainId: 42161
                    address: "0xaf88d065e77c8cc2239327c5edb3a432268e5831"
                    symbol: USDC
                    name: USD Coin
                    decimals: 6
                    explorerUrl: https://arbiscan.io/token/0xaf88d065e77c8cc2239327c5edb3a432268e5831
                    priceUsd: 0.999569
                    priceUsdAt: 2026-11-03T21:02:01.594Z
                    chain:
                      chainId: 42161
                      name: arbitrum-one
                      displayName: Arbitrum One
                      namespace: evm
                      explorerUrl: https://arbiscan.io
                      logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                      nativeToken:
                        symbol: ETH
                        decimals: 18
                      publicRpcUrl: https://arb1.arbitrum.io/rpc
                  amount: "10000000"
                  amountUsd: "9.995689999999999742"
                  maxAmount: "10000000"
                  maxAmountUsd: "9.995689999999999742"
                  depositor:
                    address: "0x1111111111111111111111111111111111111111"
                    chain:
                      chainId: 42161
                      name: arbitrum-one
                      displayName: Arbitrum One
                      namespace: evm
                      explorerUrl: https://arbiscan.io
                      logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                      nativeToken:
                        symbol: ETH
                        decimals: 18
                      publicRpcUrl: https://arb1.arbitrum.io/rpc
                destination:
                  token:
                    kind: token
                    chainId: 8453
                    address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                    symbol: USDC
                    name: USD Coin
                    decimals: 6
                    explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                    priceUsd: 0.999569
                    priceUsdAt: 2026-11-03T21:02:01.594Z
                    chain:
                      chainId: 8453
                      name: base
                      displayName: Base
                      namespace: evm
                      explorerUrl: https://basescan.org
                      logoUrl: https://alexandria.across.to/assets/chains/base.svg
                      nativeToken:
                        symbol: ETH
                        decimals: 18
                      publicRpcUrl: https://mainnet.base.org
                  grossAmount: "8854806"
                  amount: "8814282"
                  amountUsd: "8.810483044458001345"
                  recipient:
                    address: "0x1111111111111111111111111111111111111111"
                    chain:
                      chainId: 8453
                      name: base
                      displayName: Base
                      namespace: evm
                      explorerUrl: https://basescan.org
                      logoUrl: https://alexandria.across.to/assets/chains/base.svg
                      nativeToken:
                        symbol: ETH
                        decimals: 18
                      publicRpcUrl: https://mainnet.base.org
                  minAmount: "8755896"
                  minAmountUsd: "8.752122208823999827"
                gasTopUp:
                  token:
                    kind: native
                    chainId: 8453
                    address: "0x0000000000000000000000000000000000000000"
                    symbol: ETH
                    name: ETH
                    decimals: 18
                    chain:
                      chainId: 8453
                      name: base
                      displayName: Base
                      namespace: evm
                      explorerUrl: https://basescan.org
                      logoUrl: https://alexandria.across.to/assets/chains/base.svg
                      nativeToken:
                        symbol: ETH
                        decimals: 18
                      publicRpcUrl: https://mainnet.base.org
                  amount: "500000000000000"
                fee:
                  totalFee:
                    amount: "40524"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.999569
                      priceUsdAt: 2026-11-03T21:02:01.594Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.040506534156000001"
                  transferFee:
                    amount: "40524"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.999569
                      priceUsdAt: 2026-11-03T21:02:01.594Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.040506534156000001"
                  appFee:
                    amount: "0"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.999569
                      priceUsdAt: 2026-11-03T21:02:01.594Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.000000000000000000"
                  maxTransferFee:
                    amount: "98910"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.999569
                      priceUsdAt: 2026-11-03T21:02:01.594Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.098867369790000006"
                  maxTotalFee:
                    amount: "98910"
                    token:
                      kind: token
                      chainId: 8453
                      address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      explorerUrl: https://basescan.org/token/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
                      priceUsd: 0.999569
                      priceUsdAt: 2026-11-03T21:02:01.594Z
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.098867369790000006"
                gasEstimates:
                  - leg: origin
                    effect: included_in_transfer_fee
                    amount: "6881647500000"
                    token:
                      kind: native
                      chainId: 42161
                      address: "0x0000000000000000000000000000000000000000"
                      symbol: ETH
                      name: ETH
                      decimals: 18
                      chain:
                        chainId: 42161
                        name: arbitrum-one
                        displayName: Arbitrum One
                        namespace: evm
                        explorerUrl: https://arbiscan.io
                        logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://arb1.arbitrum.io/rpc
                    amountUsd: "0.015753361399999999"
                    gasUnits: "325000"
                  - leg: destination
                    effect: included_in_transfer_fee
                    amount: "1639503551251"
                    token:
                      kind: native
                      chainId: 8453
                      address: "0x0000000000000000000000000000000000000000"
                      symbol: ETH
                      name: ETH
                      decimals: 18
                      chain:
                        chainId: 8453
                        name: base
                        displayName: Base
                        namespace: evm
                        explorerUrl: https://basescan.org
                        logoUrl: https://alexandria.across.to/assets/chains/base.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://mainnet.base.org
                    amountUsd: "0.003752326600000000"
                    gasUnits: "246560"
                  - leg: origin
                    effect: paid_by_wallet
                    actionId: approval
                    gasUnits: "70000"
                    amount: "1411620000000"
                    token:
                      kind: native
                      chainId: 42161
                      address: "0x0000000000000000000000000000000000000000"
                      symbol: ETH
                      name: ETH
                      decimals: 18
                      chain:
                        chainId: 42161
                        name: arbitrum-one
                        displayName: Arbitrum One
                        namespace: evm
                        explorerUrl: https://arbiscan.io
                        logoUrl: https://alexandria.across.to/assets/chains/arbitrum.svg
                        nativeToken:
                          symbol: ETH
                          decimals: 18
                        publicRpcUrl: https://arb1.arbitrum.io/rpc
                    amountUsd: "0.003231762828000000"
                nextActions:
                  - kind: approve_token
                    id: approval
                    chainId: 42161
                    spender: "0x000000000022d473030f116ddee9f6b43ac78ba3"
                    amount: "115792089237316195423570985008687907853269984665640564039457584007913129639935"
                    estimatedOriginGas:
                      gasUnits: "70000"
                      amount: "1411620000000"
                      decimals: 18
                      token:
                        chainId: 42161
                        address: "0x0000000000000000000000000000000000000000"
                      amountUsd: "0.003231762828000000"
                    tokenAddress: "0xaf88d065e77c8cc2239327c5edb3a432268e5831"
                    ecosystem: evm
                    authorization:
                      type: approval
                      scope:
                        token:
                          chainId: 42161
                          address: "0xaf88d065e77c8cc2239327c5edb3a432268e5831"
                        amount: "115792089237316195423570985008687907853269984665640564039457584007913129639935"
                        unlimited: true
                        spender: "0x000000000022d473030f116ddee9f6b43ac78ba3"
                  - kind: sign_typed_data
                    id: funding
                    chainId: 42161
                    typedData:
                      types:
                        TokenPermissions:
                          - name: token
                            type: address
                          - name: amount
                            type: uint256
                        PermitWitnessTransferFrom:
                          - name: permitted
                            type: TokenPermissions
                          - name: spender
                            type: address
                          - name: nonce
                            type: uint256
                          - name: deadline
                            type: uint256
                          - name: witness
                            type: bytes32
                      primaryType: PermitWitnessTransferFrom
                      domain:
                        name: Permit2
                        chainId: 42161
                        verifyingContract: "0x000000000022D473030F116dDEE9F6B43aC78BA3"
                      message:
                        permitted:
                          token: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
                          amount: "10000000"
                        spender: "0x998d7c178A1F9607b47eA3A8e22426451b3ce707"
                        nonce: "94953807702395864016277097733506927651293602486098099162527480129039143859704"
                        deadline: "1793739979"
                        witness: "0xd1edf35b9bf2d188b1742f82d8f5118e6bde4b8026622057f34dce1d43a0f5f8"
                    ecosystem: evm
                    authorization:
                      type: permit2
                      scope:
                        token:
                          chainId: 42161
                          address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
                        amount: "10000000"
                        spender: "0x998d7c178A1F9607b47eA3A8e22426451b3ce707"
                        expiresAt: 2026-11-03T21:06:19.000Z
                  - kind: submit_execution
                    id: submit-execution
                    inputs:
                      - funding
                orderId: "0xd1edf35b9bf2d188b1742f82d8f5118e6bde4b8026622057f34dce1d43a0f5f8"
                amountType: exact_input
                refundPolicy:
                  supported: false
                  reason: irreversible_rail
                  message: Not all executable paths on this route provide an automatic refund; the chosen path may be irreversible, so a refund cannot be guaranteed if the transfer cannot complete. Unfilled Across deposits remain eligible for an origin-chain refund after their SpokePool expiry and refund-bundle settlement.
    "400":
      description: "The request body failed validation. The body is strict: an unrecognised field is rejected as `request.unsupported_param` rather than ignored."
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ApiErrorResponse"
          example:
            error:
              type: request
              code: request.unsupported_param
              message: "unsupported field: deadlineSec"
              param: deadlineSec
              requestId: ikis71cj2ajdo6s5fqto949nao
    "401":
      description: Missing or invalid Bearer token. Rejected by the gateway, so the body is the flat gateway shape rather than the usual error envelope.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/GatewayErrorResponse"
          example:
            code: unauthenticated
            message: the request does not have valid authentication credentials for the operation
            details: null
    "429":
      description: Rate limit exceeded. Rejected by the gateway, so the body is the flat gateway shape rather than the usual error envelope.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/GatewayErrorResponse"
    default:
      description: Application error envelope. Dispatch on `error.code`, never on the HTTP status or message. Note that 401 and 429 do not use this shape -- see those responses.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ApiErrorResponse"
  security:
    - bearerAuth: []
  x-codeSamples:
    - lang: bash
      label: Curl
      source: |
        curl -L -X POST 'https://api.across.to/v1/quotes' \
          -H 'Authorization: Bearer <your-api-key>' \
          -H 'Content-Type: application/json' \
          -d '{
            "origin": {
              "token": { "chainId": 42161, "address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831" },
              "amount": "500000",
              "depositor": "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D"
            },
            "destination": {
              "token": { "chainId": 8453, "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" },
              "recipient": "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D"
            },
            "amountType": "exact_input"
          }'
components:
  schemas:
    ActionAuthorization:
      title: |
        What a next action authorizes.
      description: |
        Summarises what completing a next action permits, so it can be shown to the user before they approve or sign.
      type: object
      required:
        - type
        - scope
      properties:
        type:
          description: |
            Kind of authorization, e.g. `approval` or `permit2`.
          type: string
          enum:
            - approval
            - permit2
            - erc3009
            - hypercore_action
            - spl_delegate
        scope:
          $ref: "#/components/schemas/AuthorizationScope"
    AmountLimits:
      description: |
        Set on `policy.amount_out_of_range`: the amount bound the request crossed, so you can resize and quote again.
      type: object
      required:
        - side
        - amount
        - token
        - rail
        - observedAt
      properties:
        side:
          type: string
          enum:
            - min
            - max
        amount:
          description: |
            The bound, in base units of `token`. A bound reported by the rail is exact. A `min` from fee protection is a lower bound to exceed rather than match, so add headroom. A `min` from the economic floor (the submitter's gas and messaging cost would exceed the output) is an estimate: resize from it and quote again, but a request just above it can still be refused by the 50% fee cap with a higher `min`.
          type: string
        token:
          type: object
          required:
            - chainId
            - address
          properties:
            chainId:
              type: integer
            address:
              type: string
        rail:
          description: The rail the bound relates to. Informational -- do not dispatch on it.
          type: string
        observedAt:
          type: string
          format: date-time
    ApiError:
      type: object
      required:
        - type
        - code
        - message
      properties:
        type:
          type: string
          enum:
            - request
            - auth
            - permission
            - not_found
            - idempotency
            - rate_limit
            - conflict
            - execution
            - policy
            - system
        code:
          type: string
          enum:
            - request.invalid_json
            - request.missing_field
            - request.invalid_field
            - request.invalid_param
            - request.unsupported_param
            - auth.missing_credentials
            - auth.invalid_credentials
            - permission.not_entitled
            - not_found.quote
            - not_found.route
            - conflict.quote_expired
            - conflict.cursor_expired
            - conflict.submission_state_unknown
            - rate_limit.exceeded
            - execution.invalid_signature
            - execution.expired_authorization
            - execution.insufficient_balance
            - execution.insufficient_allowance
            - execution.tx_report_unverified
            - policy.violation
            - policy.amount_out_of_range
            - system.unavailable
            - system.internal_error
        message:
          type: string
        param:
          type: string
        requestId:
          type: string
        details:
          type: object
          additionalProperties: true
          properties:
            balanceCheck:
              $ref: "#/components/schemas/BalanceCheck"
            amountLimits:
              $ref: "#/components/schemas/AmountLimits"
            retryWithAllowedAuthorizationTypes:
              description: |
                Set on `execution.invalid_signature` when a contract wallet or EIP-7702 account rejected the signature through EIP-1271. Request a new quote with this list as `authorizationPolicy.allowedTypes` rather than asking for the same signature again. Currently always `["approval"]`; the new quote can still be refused if the route or your policy does not offer those types.
              type: array
              minItems: 1
              items:
                type: string
                enum:
                  - approval
                  - permit2
                  - erc3009
                  - hypercore_action
                  - spl_delegate
    ApiErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          $ref: "#/components/schemas/ApiError"
    ApprovalAction:
      title: |
        ERC-20 approval the user must send before the funding signature or transaction.
      type: object
      required:
        - kind
        - id
        - chainId
        - tokenAddress
        - spender
        - amount
      properties:
        amount:
          title: |
            Required allowance, decimal string (uint256).
          type: string
        chainId:
          type: integer
        estimatedOriginGas:
          title: |
            What broadcasting the approval is estimated to cost in origin-chain gas — informational, and yours to pay. Not part of `Quote.fee`. Absent when it could not be estimated.
          allOf:
            - $ref: "#/components/schemas/EstimatedGas"
        id:
          description: |
            Stable id for this action: `approval`, or `approval-reset` for the reset to zero that USDT-class tokens need before a new allowance can be set.
          type: string
          enum:
            - approval
            - approval-reset
        kind:
          type: string
          enum:
            - approve_token
        spender:
          title: |
            Address that needs the allowance.
          type: string
        tokenAddress:
          description: Token to approve.
          type: string
        ecosystem:
          description: Signer ecosystem of this action, in the chain `namespace` vocabulary. Absent only when the action's chain is unknown to the server.
          type: string
          enum:
            - evm
            - solana
            - tron
        authorization:
          $ref: "#/components/schemas/ActionAuthorization"
    AuthorizationScope:
      description: What the permission covers, read from the action's own payload. `amount` is in base units of `token`; `unlimited` is present (always `true`) only when the payload grants the maximum uint256 allowance.
      type: object
      required:
        - token
        - amount
      properties:
        token:
          $ref: "#/components/schemas/TokenRef"
        amount:
          type: string
          pattern: ^\d+$
        unlimited:
          type: boolean
          enum:
            - true
        spender:
          type: string
        recipient:
          type: string
        expiresAt:
          type: string
          format: date-time
    BalanceCheck:
      type: object
      required:
        - chainId
        - tokenAddress
        - requiredAmount
        - observedBalance
        - blockNumber
        - observedAt
      properties:
        chainId:
          type: integer
        tokenAddress:
          description: Token whose balance was read, in its chain's native address form (base58 on Tron).
          type: string
        requiredAmount:
          description: Decimal string (uint256 base units).
          type: string
        observedBalance:
          description: Decimal string (uint256 base units).
          type: string
        blockNumber:
          description: |
            Block height the balance was read at.
          type: integer
        observedAt:
          type: string
          format: date-time
    ChainAccount:
      description: "An address and the chain it lives on. `address` is in the chain's native form: lowercase hex on EVM chains, base58 on Solana and Tron."
      type: object
      required:
        - address
        - chain
      additionalProperties: false
      properties:
        address:
          type: string
        chain:
          $ref: "#/components/schemas/QuoteChain"
    DestinationActionArg:
      description: |
        A fixed `value`, or `populateDynamically: true` to use the amount that arrived.
      oneOf:
        - title: literal
          type: object
          required:
            - value
          additionalProperties: false
          properties:
            value:
              allOf:
                - $ref: "#/components/schemas/DestinationActionArgValue"
              description: |
                Pass large integers as strings, and tuples or arrays as JSON arrays.
            populateDynamically:
              type: boolean
              enum:
                - false
        - title: dynamic balance
          type: object
          required:
            - populateDynamically
            - balanceSourceToken
          additionalProperties: false
          properties:
            populateDynamically:
              type: boolean
              enum:
                - true
              description: |
                Use the amount of `balanceSourceToken` that arrived. Works on single-word types like `uint256`. Leave `value` out.
            balanceSourceToken:
              type: string
              description: Token whose arrived amount fills this argument.
    DestinationActionArgValue:
      title: value
      description: A JSON value matching the argument's Solidity type, e.g. an address string, a number, or an array for a tuple.
      anyOf:
        - type: string
        - type: number
        - type: boolean
        - type: array
          items:
            $ref: "#/components/schemas/DestinationActionArgValue"
        - type: object
          additionalProperties:
            $ref: "#/components/schemas/DestinationActionArgValue"
    DestinationActionStep:
      description: |
        One call on the destination chain, picked by `kind`. Amounts are base-unit strings.
      oneOf:
        - $ref: "#/components/schemas/DestinationFunctionCallStep"
        - $ref: "#/components/schemas/DestinationApproveStep"
        - $ref: "#/components/schemas/DestinationRawCallStep"
        - $ref: "#/components/schemas/DestinationNativeTransferStep"
    DestinationActions:
      type: object
      required:
        - steps
      additionalProperties: false
      title: |
        Calls to run on the destination chain with the transfer's output.
      properties:
        steps:
          type: array
          minItems: 1
          items:
            $ref: "#/components/schemas/DestinationActionStep"
          description: |
            Run in order, in the same transaction as the fill. Use `populateDynamically` on the step that spends the funds so it uses the full amount that arrived.
        onFailure:
          $ref: "#/components/schemas/DestinationActionsOnFailure"
      example:
        steps:
          - kind: approve
            token: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
            spender: "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5"
            populateDynamically: true
          - kind: function-call
            target: "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5"
            functionSignature: supply(address,uint256,address,uint16)
            args:
              - value: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
              - populateDynamically: true
                balanceSourceToken: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
              - value: "0x1111111111111111111111111111111111111111"
              - value: 0
        onFailure:
          action: revert
    DestinationActionsOnFailure:
      description: |
        What happens if a step fails. Defaults to `revert`.

        - `revert`: the fill doesn't happen and the transfer is refunded.
        - `deliver-output-token`: the fill still happens and the bridged token goes to `recipient`. Any of it left over after successful steps goes there too.
      oneOf:
        - title: revert
          type: object
          required:
            - action
          additionalProperties: false
          properties:
            action:
              type: string
              enum:
                - revert
        - title: deliver-output-token
          type: object
          required:
            - action
            - recipient
          additionalProperties: false
          properties:
            action:
              type: string
              enum:
                - deliver-output-token
            recipient:
              type: string
              description: EVM address on the destination chain that receives the output token. Accepted only with `deliver-output-token`.
    DestinationApproveStep:
      type: object
      title: approve
      description: |
        Let `spender` pull `token`. Send a fixed `amount`, or `populateDynamically: true`.
      required:
        - kind
        - token
        - spender
      additionalProperties: false
      anyOf:
        - title: fixed amount
          type: object
          required:
            - kind
            - token
            - spender
            - amount
          properties:
            populateDynamically:
              type: boolean
              enum:
                - false
        - title: amount that arrived
          type: object
          required:
            - kind
            - token
            - spender
            - populateDynamically
          properties:
            populateDynamically:
              type: boolean
              enum:
                - true
            amount:
              type: string
              pattern: ^0+$
      properties:
        kind:
          type: string
          enum:
            - approve
        token:
          type: string
          description: ERC-20 to approve.
        spender:
          type: string
          description: Usually the `target` of the next step.
        amount:
          type: string
          pattern: ^\d+$
          description: Allowance in base units. Leave it out when `populateDynamically` is true.
        populateDynamically:
          type: boolean
          default: false
          description: Approve the amount of `token` that arrived.
    DestinationFunctionCallStep:
      type: object
      title: function-call
      description: |
        Call `target` using `functionSignature` and `args`. Across encodes the calldata.
      required:
        - kind
        - target
        - functionSignature
      additionalProperties: false
      properties:
        kind:
          type: string
          enum:
            - function-call
        target:
          type: string
          description: Contract to call.
        functionSignature:
          type: string
          description: |
            e.g. `wrap(address,address,uint256)`.
        args:
          type: array
          items:
            $ref: "#/components/schemas/DestinationActionArg"
          description: |
            One entry per input of `functionSignature`, in order.
        value:
          type: string
          pattern: ^\d+$
          default: "0"
          description: Static `msg.value` in wei.
        populateCallValueDynamically:
          type: boolean
          default: false
          description: |
            Send all the native token that arrived as `msg.value`. Leave `value` out.
    DestinationNativeTransferStep:
      type: object
      title: native-transfer
      description: |
        Send the chain's native token to `target`. Send a `value`, or `populateCallValueDynamically: true`.
      required:
        - kind
        - target
      additionalProperties: false
      anyOf:
        - title: fixed value
          type: object
          required:
            - kind
            - target
            - value
          properties:
            value:
              type: string
              pattern: ^\d*[1-9]\d*$
            populateCallValueDynamically:
              type: boolean
              enum:
                - false
        - title: amount that arrived
          type: object
          required:
            - kind
            - target
            - populateCallValueDynamically
          properties:
            populateCallValueDynamically:
              type: boolean
              enum:
                - true
            value:
              type: string
              pattern: ^0+$
      properties:
        kind:
          type: string
          enum:
            - native-transfer
        target:
          type: string
          description: Recipient of the native token.
        value:
          type: string
          pattern: ^\d+$
          description: Amount in wei. Leave it out when `populateCallValueDynamically` is true.
        populateCallValueDynamically:
          type: boolean
          default: false
          description: Send all the native token that arrived.
    DestinationRawCallStep:
      type: object
      title: raw-call
      description: |
        Call `target` with `calldata` you encoded yourself. Amounts are fixed, so use `function-call` when you need the amount that arrived.
      required:
        - kind
        - target
        - calldata
      additionalProperties: false
      properties:
        kind:
          type: string
          enum:
            - raw-call
        target:
          type: string
          description: Contract to call.
        calldata:
          type: string
          pattern: ^0x(?:[0-9a-fA-F]{2})*$
          description: Hex-encoded calldata, selector included.
        value:
          type: string
          pattern: ^\d+$
          default: "0"
          description: Static `msg.value` in wei.
    EstimatedGas:
      title: |
        Informational gas estimate for a transaction the user broadcasts.
      description: |
        Estimated gas for a transaction you broadcast yourself, in native token units.

        Indicative only. On OP-stack chains it may over- or under-state the L1 data fee, and on Arbitrum it is a lower bound -- do not use it to decide whether a balance is sufficient.
      type: object
      required:
        - gasUnits
        - amount
        - decimals
        - token
      properties:
        amount:
          title: |
            Cost in native-token base units (wei), decimal string: `gasUnits` times the chain's gas price.
          description: |
            Indicative gas cost, in native token base units.

            On OP-stack chains the L1 data component is priced at the L2 rate, so it can be over- or under-stated; elsewhere it is excluded entirely, making this a lower bound. Do not use it to decide whether a balance is sufficient to broadcast.
          type: string
        amountUsd:
          title: |
            USD value of `amount`; indicative on OP-stack and a lower bound elsewhere, for the same reasons.
          type: string
        decimals:
          title: |
            Decimals of the native token `amount` is denominated in.
          type: integer
        gasUnits:
          title: |
            Estimated gas units, decimal string.
          description: |
            On an OP-stack rollup (Base, Optimism, …) this INCLUDES the L1 data-gas component as well as L2 execution gas, so `amount` accounts for the calldata cost there. On Arbitrum and any chain not recognised as OP-stack it is execution gas only — see `amount`.
          type: string
        token:
          title: |
            The chain's native token (zero address, 18 decimals).
          allOf:
            - $ref: "#/components/schemas/TokenRef"
    FeeAmount:
      title: |
        One published fee level.
      description: |
        A fee, in destination-token base units and USD.

        `amount` is absent where no single-token figure exists, and `amountUsd` where the token could not be priced. Neither is ever fabricated as zero.
      type: object
      required:
        - token
      properties:
        amount:
          type: string
        amountUsd:
          title: |
            Decimal USD string at 18-dp precision.
          type: string
        token:
          title: |
            Always the destination token -- a fee is `gross − received`, in received units.
          allOf:
            - $ref: "#/components/schemas/QuoteToken"
    GatewayErrorResponse:
      type: object
      description: |
        Error shape returned by the API gateway when a request is rejected before it reaches the API -- currently `401` and `429`.

        Flat, unlike the `{ error: { ... } }` envelope every other error uses. Handle both.
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: |
            Gateway status code, for example `unauthenticated` on a missing or invalid Bearer token.
          example: unauthenticated
        message:
          type: string
          example: the request does not have valid authentication credentials for the operation
        details:
          type: object
          nullable: true
          additionalProperties: true
          description: Additional context. Null on authentication failures.
    NextAction:
      title: |
        One step the user or integrator must take to execute the quote.
      description: |
        Discriminated by `kind`: `approve_token`, `sign_typed_data`, `send_transaction`, `sign_transaction` (sponsored Solana quotes only) or `submit_execution`. `send_transaction` is shared by an EVM transaction and a wallet-paid Solana transaction -- tell them apart by `ecosystem`.
      anyOf:
        - $ref: "#/components/schemas/ApprovalAction"
        - $ref: "#/components/schemas/SignAction"
        - $ref: "#/components/schemas/TransactionAction"
        - $ref: "#/components/schemas/SvmTransactionAction"
        - $ref: "#/components/schemas/SubmitExecutionAction"
    PostQuotesRequest:
      type: object
      description: |
        Which side carries the amount is determined by `amountType`. The `oneOf` below encodes that: `exact_input` (the default, and the only mode that may leave `amountType` off) requires `origin.amount` (or `origin.minInputAmount`, which excludes `originAction`); `exact_output` and `min_output` require `destination.amount` and must name `amountType` explicitly.

        The body is strict: an unrecognised or removed field (for example `fundingMethods`) is rejected with `400 request.unsupported_param` naming the field.
      required:
        - origin
        - destination
      additionalProperties: false
      properties:
        origin:
          type: object
          required:
            - token
            - depositor
          additionalProperties: false
          properties:
            token:
              $ref: "#/components/schemas/TokenRef"
            amount:
              type: string
              pattern: ^\d+$
              description: Input base units (uint256 decimal string). Required for `exact_input` unless `minInputAmount` is given.
            minInputAmount:
              type: string
              pattern: ^\d+$
              description: |
                For integrators that pre-swap in their own transaction: the least of `token` you commit to deliver, sent in place of `amount`. The quote is priced on this floor and funds only through the approval (`prefunded-store`) path. A deposit below it is rejected; above it the whole deposit is bridged and the quote's amounts scale with it. Echoed as `origin.minAmount`.

                `exact_input` only, and not combinable with `amount` or `originAction`. Requires the `min-input-quote` permission on your API key; without it the request fails with `403 permission.not_entitled`.
            depositor:
              type: string
            feePayer:
              type: string
              description: |
                Solana origin only. Account that pays the transaction fee and deposit rent, and co-signs; returned as the Solana action's `feePayer`. Defaults to the depositor. `400` on any non-Solana origin.
        destination:
          type: object
          required:
            - token
            - recipient
          additionalProperties: false
          properties:
            token:
              $ref: "#/components/schemas/TokenRef"
            amount:
              type: string
              pattern: ^\d+$
              description: Output base units (uint256 decimal string). Required for `exact_output` and `min_output`.
            recipient:
              type: string
            refundAddress:
              type: string
              description: |
                Who receives the destination fallback (refund) leaf's proceeds -- the bridge token, on the destination chain -- if the fill does not complete. Defaults to the recipient. Set it when the recipient cannot handle the bridge token, e.g. a contract that only accepts the final token of a destination swap or action.

                Applies only when the route commits a destination fallback leaf; otherwise it has no effect. Must be an address on the destination chain.

                Accepted on EVM destinations only, HyperCore and Lighter included. A Solana or Tron destination returns `400 request.invalid_field`: a Solana destination cannot carry the fallback leaf at all, and a Tron fallback always pays the recipient.
        amountType:
          type: string
          enum:
            - exact_input
            - exact_output
            - min_output
          default: exact_input
        capabilities:
          type: object
          required:
            - operations
          additionalProperties: false
          description: |
            Optional. The operations your client can perform. The server derives the funding methods it can execute from these operations (intersected with `authorizationPolicy`), so you declare what your wallet can do instead of naming funding methods. Omit it when your client can perform every operation on the origin chain's ecosystem.

            A trailing `submit_execution` action is appended to `nextActions` whenever the order must be POSTed to `/v1/quotes/{orderId}/executions`. A quote whose only result to report is the `prefunded-store` transaction has none: that `store()` completes the order on chain.
          properties:
            operations:
              type: array
              minItems: 1
              items:
                oneOf:
                  - type: object
                    title: wallet operation
                    required:
                      - kind
                      - ecosystem
                    additionalProperties: false
                    properties:
                      kind:
                        type: string
                        enum:
                          - approve_token
                          - sign_typed_data
                          - send_transaction
                          - sign_transaction
                      ecosystem:
                        type: string
                        enum:
                          - evm
                          - solana
                          - tron
                        description: Signer ecosystem of the wallet operation.
                  - type: object
                    title: submit_execution
                    required:
                      - kind
                    additionalProperties: false
                    description: The server-side execution POST; carries no ecosystem.
                    properties:
                      kind:
                        type: string
                        enum:
                          - submit_execution
              example:
                - kind: approve_token
                  ecosystem: evm
                - kind: sign_typed_data
                  ecosystem: evm
                - kind: submit_execution
        authorizationPolicy:
          type: object
          additionalProperties: false
          minProperties: 1
          description: |
            Which authorizations the client permits. Narrows the funding methods derived from `capabilities.operations` to those whose authorization type is allowed. A method is kept only if every authorization type it may request is in this list: `permit2` needs both `approval` and `permit2` (the Permit2 allowance is set with a token approval), and any funding method on a HyperCore origin additionally needs `hypercore_action` (the `sendAsset` signature that precedes the onward leg). Listing only a subset of a method's types excludes that method.

            Omitting `allowedTypes` allows every type. Send at least one of `allowedTypes` / `approvalAmount`.
          properties:
            allowedTypes:
              type: array
              minItems: 1
              items:
                type: string
                enum:
                  - approval
                  - permit2
                  - erc3009
                  - hypercore_action
                  - spl_delegate
            approvalAmount:
              type: string
              enum:
                - exact
                - infinite
              description: |
                Size of the ERC-20 `approve` in the `approval` next action, on both the `approval` and `permit2` funding methods.

                Omitted or `infinite`: `MAX_UINT256`. Later cross-chain quotes omit the approval step once the allowance covers the cap -- best-effort: the allowance is read within a 400 ms budget and the step is included whenever that read fails or times out (same-chain quotes do not read it and always carry the step).

                `exact`: the funded cap in the approved token's units -- not `origin.amount`, since under `exact_output`/`min_output` the pull may reach the cap; it equals `origin.maxAmount` except on a HyperCore origin, where `origin.maxAmount` is in Core precision. Executing a served approval step replaces the existing allowance with the cap (after an `approval-reset` to 0 on USDT-class tokens). `authorization.scope` reflects the amount served.
        slippageBps:
          type: integer
          minimum: 0
          maximum: 10000
          deprecated: true
          description: Legacy slippage behavior. Cannot be combined with `maxFee`. Omit to use the USD value-loss limits.
        maxFee:
          type: object
          additionalProperties: false
          description: |
            Maximum USD value loss between expected input and minimum guaranteed output: `expectedInputUsd - minimumOutputUsd <= maxFee.fixedUsd + expectedInputUsd * maxFee.bps / 10000`. Includes app fees, swap impact and slippage reflected in the minimum output; excludes wallet-paid gas outside the quoted amounts. Each omitted component inherits the integrator setting, then the deployment default. Cannot be combined with `slippageBps`. Over the limit, the quote returns `400 policy.amount_out_of_range`.
          properties:
            bps:
              type: integer
              minimum: 0
              maximum: 10000
              description: Percentage allowance in basis points of expected input USD. Defaults to 5000 bps (50%) when no integrator override is configured. Zero is explicit.
            fixedUsd:
              type: string
              pattern: ^\d{1,2}(?:\.\d{1,2})?$
              description: Fixed USD allowance added to the percentage allowance, as a non-negative decimal string with at most two integer digits and two decimal places (maximum 99.99). Defaults to $0 when no integrator override is configured. Zero disables the fixed allowance.
        appFeeBps:
          type: integer
          minimum: 0
          maximum: 10000
          description: |
            App fee in basis points of the transfer's input value, taken in the destination token: `10` on a 1,000 USDC transfer takes 1 USDC. Accepted only within your API key's app-fee entitlement; otherwise `400 request.invalid_field` with `param: "appFeeBps"`. Not available on same-chain swaps or target-priced lanes. Deducted from the output and reported as `fee.appFee`; with `destinationActions`, the steps receive the output after the fee. `0` is the same as omitting it.
        gasTopUp:
          type: object
          required:
            - amount
          additionalProperties: false
          description: |
            Also deliver the destination chain's native gas token (ETH on Base, POL on Polygon, ...) to `destination.recipient`, so the recipient can pay for their next transaction. Echoed as `gasTopUp` on the quote. Walkthrough: [Gas top-up](/introduction/quickstart/gas-top-up).

            The top-up is bought with the transfer, at the current native price. On `exact_input` it comes out of the output, so `destination.grossAmount` is already net of it. On `exact_output` and `min_output` it raises `origin.amount` instead. It is not a fee: it is not part of `fee` and does not count against `maxFee` or `subsidy`. App fees are still charged on the full input.

            Call `GET /v1/capabilities` with the pair first. `capabilities.gasTopUp.supported` says whether the route can carry a top-up, and `capabilities.gasTopUp.limits.max.amount` is the most you can request right now.

            Not available on same-chain swaps, on native-token outputs, or on Solana (coming soon), HyperCore, Lighter and Tron destinations. With `destinationActions`, the top-up is sent before the steps run, and `onFailure.recipient` must be `destination.recipient`.

            Errors, all with `param: "gasTopUp.amount"`:
            - `400 request.unsupported_param`: the route cannot carry a top-up.
            - `400 policy.amount_out_of_range`: above the destination chain's USD limit.
            - `400 request.invalid_field`: the transfer is too small to pay for the top-up.
          properties:
            amount:
              type: string
              pattern: ^\d+$
              description: Destination native-token base units (wei). `0` is the same as omitting `gasTopUp`.
        attestation:
          type: object
          required:
            - verifier
          additionalProperties: false
          description: |
            Opt in to an Across-signed EIP-712 attestation over the quote's terms, returned as `attestation`. `verifier` is your verifying contract (EVM origin) or program id (Solana origin) and is bound into the EIP-712 domain. `destinationActions` steps are signed too, and their `onFailure.recipient` must be `destination.recipient`. Not available with an `originAction`, with `origin.minInputAmount`, or with `destinationActions` on a Solana destination (`400 request.unsupported_param`). `gasTopUp` is not attested. `503 system.unavailable` when signing is not configured.
          properties:
            verifier:
              type: string
              minLength: 1
        subsidy:
          type: object
          additionalProperties: false
          anyOf:
            - title: with maxBps
              type: object
              required:
                - maxBps
            - title: with maxAmountUsd
              type: object
              required:
                - maxAmountUsd
          description: |
            Request-level fixed subsidy ceilings. Accepted only where your API key's sponsorship policy allows it; otherwise `400 request.invalid_field` with `param: "subsidy"`. Applied amount = min(inputUsd × maxBps / 10000, maxAmountUsd), never above the policy ceiling, and only lowers a configured default. `exact_input` and `min_output` only. The response carries no subsidy object; the subsidy shows as a higher output.
          properties:
            maxBps:
              type: integer
              minimum: 0
              maximum: 10000
            maxAmountUsd:
              type: string
              pattern: ^\d+(\.\d+)?$
              description: Decimal USD string; digits past the sixth fraction place are truncated.
            components:
              type: array
              items:
                type: string
                enum:
                  - transfer_fee
                  - app_fee
              description: |
                Which of the policy's covered components to cover -- a subset of the policy's. Omitted means `["transfer_fee"]`; `[]` is an explicit zero (unsponsored). `app_fee` covers your own fee on top of the flat subsidy, only when the policy configures it and the array also includes `transfer_fee`.
        expiresAtHint:
          type: string
          format: date-time
          description: Advisory; clamps quote expiry downward only.
        externalId:
          type: string
          minLength: 1
          maxLength: 256
        metadata:
          type: object
          maxProperties: 16
          additionalProperties:
            type: string
            maxLength: 512
          description: ≤16 keys, ≤4096 bytes serialized; keys are non-empty and ≤64 chars, values ≤512 chars. Surfaces on the future Transfer.
        originAction:
          allOf:
            - $ref: "#/components/schemas/WireAction"
          description: |
            Optional call to run on the origin chain before the bridge. `kind` is `typed`, `multicall_wrapper` or `strict_call`.
        destinationActions:
          allOf:
            - $ref: "#/components/schemas/DestinationActions"
          description: |
            Run contract calls on the destination chain with the bridged funds. For example: wrap USDC.e into pUSD on Polygon, or supply USDC to Aave on Base.

            Example: bridge USDC from Arbitrum, then wrap it into pUSD on Polygon.

            ```json
            "destinationActions": {
              "steps": [
                {
                  "kind": "approve",
                  "token": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
                  "spender": "0x93070a847efEf7F70739046A929D47a521F5B8ee",
                  "populateDynamically": true
                },
                {
                  "kind": "function-call",
                  "target": "0x93070a847efEf7F70739046A929D47a521F5B8ee",
                  "functionSignature": "wrap(address,address,uint256)",
                  "args": [
                    { "value": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174" },
                    { "value": "0xYourWalletAddress" },
                    { "populateDynamically": true, "balanceSourceToken": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174" }
                  ]
                }
              ],
              "onFailure": { "action": "revert" }
            }
            ```

            Steps run in order, in the same transaction as the fill.

            **`kind`**
            - `approve`: let `spender` pull `token`. Above, the pUSD wrapper gets approval for the USDC.e.
            - `function-call`: call `target` using `functionSignature` and `args`. Above, `wrap(token, recipient, amount)`.
            - `raw-call`: call `target` with `calldata` you encoded yourself.
            - `native-transfer`: send the chain's native token to `target`, with `value` in wei.

            **`populateDynamically: true`**: uses the amount that actually arrived instead of a fixed number. Set it on the approve, and on the amount argument together with `balanceSourceToken`.

            **`onFailure.action`**
            - `revert` (default): if any step fails, the fill doesn't happen and the transfer is refunded.
            - `deliver-output-token`: if any step fails, the bridged token goes to `onFailure.recipient` instead.

            Funds go wherever your steps send them, not to `destination.recipient`. That's why the wallet is passed as the `wrap` recipient above, and as `onBehalfOf` in the Aave example.
      oneOf:
        - title: exact_input
          description: Spend a known input amount. `amountType` may be omitted -- this is the default.
          properties:
            amountType:
              type: string
              enum:
                - exact_input
              default: exact_input
            origin:
              type: object
              required:
                - token
                - depositor
              additionalProperties: false
              properties:
                token:
                  $ref: "#/components/schemas/TokenRef"
                amount:
                  type: string
                  pattern: ^\d+$
                  description: Input base units (uint256 decimal string). Required for `exact_input` unless `minInputAmount` is given.
                minInputAmount:
                  type: string
                  pattern: ^\d+$
                  description: |
                    For integrators that pre-swap in their own transaction: the least of `token` you commit to deliver, sent in place of `amount`. The quote is priced on this floor and funds only through the approval (`prefunded-store`) path. A deposit below it is rejected; above it the whole deposit is bridged and the quote's amounts scale with it. Echoed as `origin.minAmount`.

                    `exact_input` only, and not combinable with `amount` or `originAction`. Requires the `min-input-quote` permission on your API key; without it the request fails with `403 permission.not_entitled`.
                depositor:
                  type: string
                feePayer:
                  type: string
                  description: |
                    Solana origin only. Account that pays the transaction fee and deposit rent, and co-signs; returned as the Solana action's `feePayer`. Defaults to the depositor. `400` on any non-Solana origin.
              oneOf:
                - title: with amount
                  required:
                    - amount
                - title: with minInputAmount
                  required:
                    - minInputAmount
          not:
            required:
              - origin
              - originAction
            properties:
              origin:
                required:
                  - minInputAmount
        - title: exact_output
          description: Deliver an exact output amount. `amountType` is required.
          required:
            - amountType
          properties:
            amountType:
              type: string
              enum:
                - exact_output
            destination:
              type: object
              required:
                - token
                - recipient
                - amount
              additionalProperties: false
              properties:
                token:
                  $ref: "#/components/schemas/TokenRef"
                amount:
                  type: string
                  pattern: ^\d+$
                  description: Output base units (uint256 decimal string). Required for `exact_output` and `min_output`.
                recipient:
                  type: string
                refundAddress:
                  type: string
                  description: |
                    Who receives the destination fallback (refund) leaf's proceeds -- the bridge token, on the destination chain -- if the fill does not complete. Defaults to the recipient. Set it when the recipient cannot handle the bridge token, e.g. a contract that only accepts the final token of a destination swap or action.

                    Applies only when the route commits a destination fallback leaf; otherwise it has no effect. Must be an address on the destination chain.

                    Accepted on EVM destinations only, HyperCore and Lighter included. A Solana or Tron destination returns `400 request.invalid_field`: a Solana destination cannot carry the fallback leaf at all, and a Tron fallback always pays the recipient.
        - title: min_output
          description: Deliver at least a floor output amount. `amountType` is required.
          required:
            - amountType
          properties:
            amountType:
              type: string
              enum:
                - min_output
            destination:
              type: object
              required:
                - token
                - recipient
                - amount
              additionalProperties: false
              properties:
                token:
                  $ref: "#/components/schemas/TokenRef"
                amount:
                  type: string
                  pattern: ^\d+$
                  description: Output base units (uint256 decimal string). Required for `exact_output` and `min_output`.
                recipient:
                  type: string
                refundAddress:
                  type: string
                  description: |
                    Who receives the destination fallback (refund) leaf's proceeds -- the bridge token, on the destination chain -- if the fill does not complete. Defaults to the recipient. Set it when the recipient cannot handle the bridge token, e.g. a contract that only accepts the final token of a destination swap or action.

                    Applies only when the route commits a destination fallback leaf; otherwise it has no effect. Must be an address on the destination chain.

                    Accepted on EVM destinations only, HyperCore and Lighter included. A Solana or Tron destination returns `400 request.invalid_field`: a Solana destination cannot carry the fallback leaf at all, and a Tron fallback always pays the recipient.
    Quote:
      type: object
      required:
        - orderId
        - amountType
        - expiresAt
        - expectedFillTimeMs
        - originValidUntil
        - refundPolicy
        - refundTo
        - origin
        - destination
        - fee
        - nextActions
      properties:
        destination:
          $ref: "#/components/schemas/QuoteDestination"
        expectedFillTimeMs:
          description: |
            Indicative typical fill time, in milliseconds. A best-effort estimate from recent activity on this route, not an SLA.

            It is not proof of failure: on a cross-chain route a fill can still land after this estimate, and after `originValidUntil` -- poll the transfer for the outcome. Only same-chain quotes have a hard cutoff, at `originValidUntil`.
          type: integer
          minimum: 0
        expiresAt:
          $ref: "#/components/schemas/Timestamp"
        fee:
          $ref: "#/components/schemas/QuoteFee"
        nextActions:
          title: |
            Ordered steps the user or integrator must take to execute the quote.
          description: |
            Approve, sign, send a transaction, then submit. Empty when nothing further is required.
          type: array
          items:
            $ref: "#/components/schemas/NextAction"
        orderId:
          title: |
            Id of the order this quote creates.
          description: |
            Use it in the path of [POST /v1/quotes/{orderId}/executions](/api-reference/v1/quotes/orderid/executions/post) and to track the transfer with `GET /v1/transfers/{orderId}`. A same-chain swap has no Across order; its id is a deterministic hash of the swap calldata.
          type: string
        amountType:
          title: |
            The amount type the quote was priced with, including when it defaulted to `exact_input`.
          type: string
          enum:
            - exact_input
            - exact_output
            - min_output
        attestation:
          description: |
            Across-signed EIP-712 commitment to this quote's terms. Present only when the request set `attestation`.

            Verify in two steps. (1) Recover `signature` over `typedData` and compare the result with the Across attestation signer address you were given during onboarding; `signer` comes from this same response, so it proves nothing by itself. (2) Act only on values that match `typedData.message`: `origin.maxAmount` (the funded cap, signed as `origin.amount`), the origin and destination tokens, the recipient and `destination.minAmount`, each `destinationActions` step (`destination.actions`), the refund recipient and tokens, and each `nextActions` entry against the `funding` entry with the same `index` (approval token, spender and amount; transaction to, value and data; typed-data digest). Fees are not attested -- the economics are bound by `origin.amount` against `destination.minAmount`. Domain version `3`. A quote field the message does not cover is not attested.
          type: object
          required:
            - scheme
            - signer
            - typedData
            - signature
          additionalProperties: false
          properties:
            scheme:
              type: string
              enum:
                - eip712
            signer:
              description: Address of the Across attestation key, for display. Compare the recovered address to your pinned copy of it, not to this field.
              type: string
            typedData:
              $ref: "#/components/schemas/TypedDataEnvelope"
            signature:
              description: 0x-prefixed 65-byte `r||s||v` secp256k1 signature over `typedData`.
              type: string
        origin:
          $ref: "#/components/schemas/QuoteOrigin"
        originValidUntil:
          description: |
            Deadline for the origin-side action: the last instant the deposit (on a same-chain swap, the swap transaction itself) may land on chain. Always later than `expiresAt`, which bounds the quote itself.

            It says nothing about a transfer that already entered: on a cross-chain route the destination can still execute after it. Poll the transfer for the outcome.
          allOf:
            - $ref: "#/components/schemas/Timestamp"
        refundPolicy:
          $ref: "#/components/schemas/RefundPolicy"
        refundTo:
          title: |
            Tokens and addresses a refund can be delivered in.
          description: |
            Every refund outcome any path of this quote can produce: which token the money could come back as, on which chain, to which address. Advisory -- the auction has not picked a path yet, and the realised refund appears on the transfer. Empty when no path can refund.
          type: array
          items:
            $ref: "#/components/schemas/QuoteRefundTarget"
        gasEstimates:
          title: |
            Gas costs behind the quote, per leg.
          description: |
            One entry per gas cost on the route. `effect` says who bears it: `included_in_transfer_fee` is already deducted through `fee`, while `paid_by_wallet` is gas the user's wallet pays on top to broadcast an action.

            Absent when gas cannot be stated, and `[]` does not mean free: an action without `estimatedOriginGas` has unknown wallet gas, so the `paid_by_wallet` entries are a lower bound.
          type: array
          items:
            $ref: "#/components/schemas/QuoteGasEstimate"
        gasTopUp:
          title: |
            Native gas delivered to the recipient on top of the destination token.
          description: |
            Present only when the request set a non-zero `gasTopUp`. `amount` is exactly what `destination.recipient` receives, in the destination chain's native token, alongside `destination.amount`. Fixed when the quote is issued. Not covered by `attestation`.
          type: object
          required:
            - token
            - amount
          additionalProperties: false
          properties:
            token:
              title: |
                The destination chain's native token (`kind: native`, zero address).
              allOf:
                - $ref: "#/components/schemas/QuoteToken"
            amount:
              title: |
                Native base units (wei), decimal string.
              type: string
    QuoteChain:
      description: |
        The chain a quoted token sits on, inlined so a quote renders without a second call to `GET /v1/capabilities`. Carries the identity and display fields only -- the routing flags (`popular`, `canBeOrigin`, `canBeDestination`) belong to the catalogue, not to a priced quote.
      type: object
      required:
        - chainId
        - name
        - displayName
        - namespace
        - explorerUrl
        - logoUrl
        - nativeToken
      properties:
        chainId:
          description: Across chain id. Solana is `34268394551451`.
          type: integer
        name:
          description: Machine-readable slug, e.g. `arbitrum-one`.
          type: string
        displayName:
          description: Human-readable name, e.g. `Arbitrum One`.
          type: string
        namespace:
          type: string
          enum:
            - evm
            - solana
            - tron
        explorerUrl:
          type: string
        logoUrl:
          type: string
        nativeToken:
          description: The chain's native gas token, or `null` where the chain has none (Tempo).
          type: object
          required:
            - symbol
            - decimals
          properties:
            symbol:
              type: string
            decimals:
              type: integer
          nullable: true
        publicRpcUrl:
          description: Public fallback RPC. Use your own provider in production.
          type: string
    QuoteDestination:
      title: |
        Destination side of a Quote.
      type: object
      required:
        - token
        - amount
        - minAmount
        - recipient
      properties:
        amount:
          title: |
            Expected delivery, decimal string (uint256) in destination-token base units. Equals `grossAmount − fee.totalFee` when `grossAmount` is present.
          description: |
            Read `minAmount` for what is guaranteed. The two can come from different execution paths: the expected figure is the best-output path, the floor is the minimum across every path the auction may pick.
          type: string
        amountUsd:
          description: |
            `amount` valued in USD, when a price feed is available.
          type: string
        grossAmount:
          title: |
            Pre-fee delivery, in destination-token base units.
          description: |
            Present only on `exact_input` requests whose input and output are the same asset with the same decimals. Absent on cross-asset routes and on `exact_output` / `min_output` requests, rather than approximated. With a `gasTopUp`, it is net of what the top-up cost.
          type: string
        recipient:
          title: |
            Account receiving the destination amount.
          allOf:
            - $ref: "#/components/schemas/ChainAccount"
        token:
          $ref: "#/components/schemas/QuoteToken"
        minAmount:
          title: |
            Guaranteed floor, decimal string (uint256) in destination-token base units -- the slippage-inclusive worst case.
          description: |
            Equals `grossAmount − fee.maxTotalFee` when `grossAmount` is present.
          type: string
        minAmountUsd:
          description: |
            `minAmount` valued in USD, when a price feed is available.
          type: string
    QuoteFee:
      title: |
        The quote's fees.
      description: |
        What the transfer costs, in destination-token units, deducted from the destination amount.

        `totalFee` is the expected cost and `maxTotalFee` the worst case including slippage; `destination.amount` and `destination.minAmount` follow from them. `transferFee` and `maxTransferFee` are the Across transfer component of each, and `appFee` is your app fee from `appFeeBps`.
      type: object
      required:
        - totalFee
        - transferFee
        - appFee
        - maxTotalFee
        - maxTransferFee
      properties:
        appFee:
          $ref: "#/components/schemas/FeeAmount"
        maxTransferFee:
          $ref: "#/components/schemas/FeeAmount"
        totalFee:
          $ref: "#/components/schemas/FeeAmount"
        transferFee:
          $ref: "#/components/schemas/FeeAmount"
        maxTotalFee:
          $ref: "#/components/schemas/FeeAmount"
    QuoteGasEstimate:
      title: |
        One gas cost on the quoted route.
      type: object
      required:
        - leg
        - effect
        - amount
        - token
      additionalProperties: false
      properties:
        actionId:
          title: |
            `id` of the next action this gas is for. Present on `paid_by_wallet` entries.
          type: string
          enum:
            - approval
            - approval-reset
            - prefunded-store
            - swap-execute
        amount:
          title: |
            Cost in native-token base units (wei), decimal string.
          type: string
        amountUsd:
          title: |
            USD value of `amount`, when a price feed is available.
          type: string
        effect:
          title: |
            Who bears this gas cost.
          description: |
            `included_in_transfer_fee` is already deducted from the output through `fee`. `paid_by_wallet` is extra gas the user's wallet pays to broadcast the action named by `actionId`.
          type: string
          enum:
            - included_in_transfer_fee
            - paid_by_wallet
        gasUnits:
          title: |
            Estimated gas units, decimal string.
          type: string
        leg:
          title: |
            Chain the gas is spent on.
          type: string
          enum:
            - origin
            - destination
        token:
          title: |
            The leg's native token (`kind: native`, zero address).
          allOf:
            - $ref: "#/components/schemas/QuoteToken"
    QuoteOrigin:
      title: |
        Origin side of a quote -- what leaves the depositor on the origin chain.
      type: object
      required:
        - token
        - amount
        - maxAmount
        - depositor
      properties:
        amount:
          title: |
            Decimal-string (uint256) amount in input-token base units.
          type: string
        amountUsd:
          description: |
            `amount` valued in USD, when a price feed is available.
          type: string
        depositor:
          title: |
            Account paying the input.
          allOf:
            - $ref: "#/components/schemas/ChainAccount"
        token:
          $ref: "#/components/schemas/QuoteToken"
        maxAmount:
          title: |
            Most the user can be charged, decimal string (uint256) in input-token base units.
          description: |
            This is the amount the funding authorization covers. On an `exact_input` quote it equals `amount`; on an output-based quote it is the funded cap and can exceed the expected spend in `amount`.
          type: string
        maxAmountUsd:
          description: |
            `maxAmount` valued in USD, when a price feed is available.
          type: string
        minAmount:
          description: |
            Only on a quote requested with `origin.minInputAmount`: the least input the depositor commits to deliver, which the quote was priced on. Above it the whole deposit is bridged, and the quote's amounts and fees scale linearly with it.

            The `prefunded-store` action then takes one of two shapes, told apart by the calldata selector. `storeApproved` (`0x621e6d8f`) deposits your whole balance of the token up to the allowance and reverts below `minAmount`: send the calldata unchanged. `store` (`0x1e04ce08`) pulls exactly the encoded amount: replace that word with the amount actually delivered when it is larger. On a native-token origin the action is always `store` with an encoded amount of `0`, and the deposit is the transaction `value` -- send at least `minAmount`.
          type: string
        minAmountUsd:
          description: |
            `minAmount` valued in USD, when a price feed is available.
          type: string
    QuoteRefundTarget:
      title: |
        A token a refund can be delivered in, and where it goes.
      type: object
      required:
        - refundAddress
        - token
      properties:
        refundAddress:
          title: |
            Address a refund in this token is sent to.
          allOf:
            - $ref: "#/components/schemas/ChainAccount"
        token:
          $ref: "#/components/schemas/QuoteToken"
    QuoteToken:
      description: |
        A token as returned inside a quote. Richer than [TokenRef](#/components/schemas/TokenRef): the quote inlines the metadata needed to render an amount (symbol, decimals, price) so a client can display the quote without a catalogue lookup.

        `address` is returned lowercased, not EIP-55 checksummed -- compare case-insensitively.
      type: object
      required:
        - kind
        - chainId
        - address
        - symbol
        - name
        - decimals
        - chain
      properties:
        address:
          type: string
        chain:
          $ref: "#/components/schemas/QuoteChain"
        chainId:
          type: integer
        decimals:
          type: integer
        explorerUrl:
          description: Explorer link to the token's contract page.
          type: string
        kind:
          description: Discriminator for the asset class. `token` for ERC-20s, `native` for the chain's gas token (zero address).
          type: string
          enum:
            - token
            - native
        logoUrl:
          type: string
        name:
          type: string
        priceUsd:
          description: Unit price used to derive the `*Usd` figures. Absent when no price feed is available.
          type: number
        priceUsdAt:
          description: When `priceUsd` was observed. Prices are cached, so this lags the request.
          allOf:
            - $ref: "#/components/schemas/Timestamp"
        symbol:
          type: string
        verified:
          description: |
            Advisory: `true` when the token's metadata comes from a curated list rather than raw on-chain discovery. Absent when provenance is unknown. It does not affect whether the token can be quoted.
          type: boolean
    RefundPolicy:
      title: |
        Conservative refund-policy summary attached to a Quote.
      description: |
        The fields below describe expected refund behavior for the route the quote will execute on. They are advisory, not binding — the realised refund (token, address, amount, transaction, completedAt) surfaces on Transfer.refund.

        Discriminated by `supported`. Irreversible routes set `supported: false` and provide a `reason` so the integrator can warn the user before they sign.
      anyOf:
        - $ref: "#/components/schemas/SupportedRefundPolicy"
        - $ref: "#/components/schemas/UnsupportedRefundPolicy"
    SignAction:
      title: |
        Off-chain EIP-712 signature the user must produce (Permit2, ERC-3009, or a HyperCore action).
      description: |
        The `typedData` blob is the EIP-712 envelope to feed to `eth_signTypedData_v4`. Once signed, the integrator returns the signature via [POST /v1/quotes/{orderId}/executions](/api-reference/v1/quotes/orderid/executions/post) keyed by this action's `id`.
      type: object
      required:
        - kind
        - id
        - chainId
        - typedData
      properties:
        chainId:
          type: integer
        signerRequirement:
          description: |
            Present (`eoa`) only when a signature from a contract account would be rejected even though the typed data is well formed.
          type: string
          enum:
            - eoa
        id:
          description: |
            Stable id for this action. Key the `signatures` map on it when executing the quote: `funding` for the funding signature, `hypercore-transfer` for the HyperCore `sendAsset` signature on a HyperCore origin. Read it off the action rather than hard-coding it.
          type: string
          enum:
            - funding
            - hypercore-transfer
        kind:
          type: string
          enum:
            - sign_typed_data
        typedData:
          title: |
            EIP-712 typed-data envelope.
          allOf:
            - $ref: "#/components/schemas/TypedDataEnvelope"
        ecosystem:
          description: Signer ecosystem of this action, in the chain `namespace` vocabulary. Absent only when the action's chain is unknown to the server.
          type: string
          enum:
            - evm
            - solana
            - tron
        authorization:
          $ref: "#/components/schemas/ActionAuthorization"
    SubmitExecutionAction:
      description: |
        The last step: send the results of the earlier actions to [POST /v1/quotes/{orderId}/executions](/api-reference/v1/quotes/orderid/executions/post). Present whenever the order must be submitted there; a quote whose only result is the `prefunded-store` transaction has none, because that transaction completes the order on chain.
      type: object
      required:
        - kind
        - id
        - inputs
      properties:
        kind:
          type: string
          enum:
            - submit_execution
        id:
          type: string
          enum:
            - submit-execution
        inputs:
          description: Ids of the earlier actions whose results (signatures, transaction references) the submission carries.
          type: array
          items:
            type: string
    SupportedRefundPolicy:
      type: object
      required:
        - supported
        - token
        - refundAddress
        - expectedRefundTimeMs
      properties:
        refundAddress:
          title: |
            Address funds are returned to. Typically the quote depositor.
          allOf:
            - $ref: "#/components/schemas/ChainAccount"
        supported:
          type: boolean
          enum:
            - true
        token:
          title: |
            Token funds are returned in. Typically the input token.
          allOf:
            - $ref: "#/components/schemas/TokenRef"
        expectedRefundTimeMs:
          description: Indicative typical refund time in milliseconds, measured from `originValidUntil`. Best-effort, not an SLA.
          type: integer
          minimum: 0
    SvmInstruction:
      description: One Solana instruction. Assemble a transaction around it with your own recent blockhash, then sign and broadcast it.
      type: object
      required:
        - programId
        - accounts
        - data
      properties:
        accounts:
          type: array
          items:
            type: object
            required:
              - address
              - role
            properties:
              address:
                type: string
              role:
                type: string
                enum:
                  - readonly
                  - writable
                  - readonly_signer
                  - writable_signer
        data:
          description: Base64 instruction data.
          type: string
        programId:
          description: Base58 program id.
          type: string
    SvmTransactionAction:
      title: |
        Solana transaction the user signs -- and broadcasts, unless Across sponsors it.
      description: |
        Funds a Solana-origin order through Across's prefunded adapter. Build a transaction around `instructions` with your own recent blockhash; `feePayer` pays the fee and the deposit account's rent, which is reclaimable once the order executes. Send it once -- a second copy deposits again. Once it confirms, report its signature to [POST /v1/quotes/{orderId}/executions](/api-reference/v1/quotes/orderid/executions/post) as `authorization.txnRef` (base58 or 0x-hex).

        A sponsored quote (`sponsoredBy: across`, `kind: sign_transaction`) carries a ready-made `transaction` instead: add the depositor's signature without modifying it, do not broadcast it, and return it as `authorization.signedTransaction`. `transaction` and `lastValidBlockHeight` are present exactly when `sponsoredBy` is.
      type: object
      required:
        - kind
        - id
        - chainId
        - feePayer
        - instructions
        - expiresAt
      properties:
        chainId:
          type: integer
        expiresAt:
          description: The order cannot execute after this instant.
          allOf:
            - $ref: "#/components/schemas/Timestamp"
        feePayer:
          description: "Account that pays the fee and co-signs: `origin.feePayer` when the request set it, the Across sponsor when `sponsoredBy` is set, otherwise the depositor."
          type: string
        id:
          description: Stable id for this action.
          type: string
          enum:
            - spl-delegate-approve
        instructions:
          type: array
          items:
            $ref: "#/components/schemas/SvmInstruction"
        kind:
          description: "`send_transaction` when the wallet pays the fee (shared with the EVM transaction action -- tell them apart by `ecosystem`); `sign_transaction` when Across sponsors it."
          type: string
          enum:
            - send_transaction
            - sign_transaction
        lastValidBlockHeight:
          description: Sponsored quotes only. Last block height at which `transaction` is valid; request a new quote after it.
          type: integer
        sponsoredBy:
          description: Present, and always `across`, only when Across pays the fee. Across's sponsor account is the fee payer and has already signed `transaction`; the winning relayer broadcasts it.
          type: string
          enum:
            - across
        transaction:
          description: Sponsored quotes only. Base64 `VersionedTransaction` with the fee payer set and the Across sponsor's signature attached. Add the depositor's signature without modifying it, do not broadcast it, and return it as `authorization.signedTransaction`.
          type: string
        ecosystem:
          description: Signer ecosystem of this action, in the chain `namespace` vocabulary. Absent only when the action's chain is unknown to the server.
          type: string
          enum:
            - evm
            - solana
            - tron
        authorization:
          $ref: "#/components/schemas/ActionAuthorization"
    Timestamp:
      title: |
        An instant in time as an RFC 3339 string.
      description: |
        RFC 3339 timestamp, always UTC with millisecond precision -- for example `2026-05-29T21:51:26.123Z`.
      type: string
    TokenRef:
      description: |
        A token, identified by its chain and address.
      type: object
      required:
        - chainId
        - address
      additionalProperties: false
      properties:
        address:
          type: string
        chainId:
          type: integer
          minimum: 1
    TransactionAction:
      title: |
        EVM transaction the user's wallet must broadcast.
      type: object
      required:
        - kind
        - id
        - chainId
        - to
        - data
        - value
      properties:
        chainId:
          type: integer
        data:
          title: |
            Hex-encoded calldata.
          type: string
        estimatedOriginGas:
          title: |
            What broadcasting THIS transaction is estimated to cost in origin-chain gas — informational, and yours to pay. Not part of `Quote.fee`, which reports only what is deducted from your output. Absent when it could not be estimated.
          allOf:
            - $ref: "#/components/schemas/EstimatedGas"
        id:
          description: |
            Stable id for this action. `prefunded-store` deposits the funds of an approval-funded transfer; `swap-execute` is a same-chain swap, which completes when the transaction lands and is not submitted to the executions endpoint.
          type: string
          enum:
            - prefunded-store
            - swap-execute
        kind:
          description: "A wallet-paid Solana transaction uses the same `kind` with `ecosystem: solana` -- see [SvmTransactionAction](#/components/schemas/SvmTransactionAction)."
          type: string
          enum:
            - send_transaction
        to:
          type: string
        value:
          title: |
            Decimal string (uint256) wei value to forward.
          type: string
        ecosystem:
          description: Signer ecosystem of this action, in the chain `namespace` vocabulary. Absent only when the action's chain is unknown to the server.
          type: string
          enum:
            - evm
            - solana
            - tron
        authorization:
          $ref: "#/components/schemas/ActionAuthorization"
    TypedDataDomain:
      type: object
      properties:
        chainId:
          type: integer
        name:
          type: string
        salt:
          type: string
        verifyingContract:
          type: string
        version:
          type: string
    TypedDataEnvelope:
      title: |
        Generic EIP-712 typed-data envelope.
      description: |
        An EIP-712 payload in the shape `eth_signTypedData_v4` accepts. Sign it verbatim.
      type: object
      required:
        - types
        - primaryType
        - domain
        - message
      properties:
        domain:
          $ref: "#/components/schemas/TypedDataDomain"
        message:
          type: object
          additionalProperties:
            $ref: "#/components/schemas/TypedDataValue"
        primaryType:
          type: string
        types:
          type: object
          additionalProperties:
            type: array
            items:
              $ref: "#/components/schemas/TypedDataField"
    TypedDataField:
      type: object
      required:
        - name
        - type
      properties:
        name:
          type: string
        type:
          type: string
    TypedDataValue:
      title: |
        Recursive JSON value used for the typed-data message body.
      anyOf:
        - type: string
        - type: number
        - type: boolean
        - type: array
          items:
            $ref: "#/components/schemas/TypedDataValue"
        - type: object
          additionalProperties:
            $ref: "#/components/schemas/TypedDataValue"
      nullable: true
    UnsupportedRefundPolicy:
      type: object
      required:
        - supported
        - reason
        - message
      properties:
        message:
          title: |
            Human-readable explanation safe to surface to end users.
          type: string
        reason:
          title: |
            Stable machine-readable code explaining why refunds are not possible on this route.
          description: |
            Lets the integrator distinguish "route is irreversible" from "refund mechanism temporarily down".
          type: string
          enum:
            - irreversible_rail
            - permanent_deposit_address
            - destination_action_finalised
        supported:
          type: boolean
          enum:
            - false
    WireAction:
      description: |
        One call to run on the origin chain before the bridge, picked by `kind`.
      anyOf:
        - $ref: "#/components/schemas/WireTypedAction"
        - $ref: "#/components/schemas/WireMulticallWrapperAction"
        - $ref: "#/components/schemas/WireStrictCallAction"
    WireCall:
      description: |
        One call made through the multicall `handler`.
      properties:
        to:
          type: string
          description: Call target.
        data:
          type: string
          description: Hex-encoded calldata.
        value:
          type: string
          description: "`msg.value` in wei."
      required:
        - to
        - data
        - value
      title: call
      type: object
    WireJsonValue:
      anyOf:
        - type: string
        - type: number
        - type: boolean
        - items:
            $ref: "#/components/schemas/WireJsonValue"
          type: array
        - additionalProperties:
            $ref: "#/components/schemas/WireJsonValue"
          type: object
      description: |
        A string, number, boolean, array or object. What `params` accepts depends on the typed action's `name`.
      title: JSON value
    WireMulticallWrapperAction:
      title: multicall_wrapper
      description: |
        Run `calls` in order through an Across multicall `handler` on the origin chain. The handler must be on Across' allowlist for that chain.
      properties:
        calls:
          items:
            $ref: "#/components/schemas/WireCall"
          type: array
        finalTokenAddress:
          description: Ignored on `originAction`.
          type: string
        handler:
          description: Across multicall handler that makes the calls.
          type: string
        kind:
          enum:
            - multicall_wrapper
          type: string
        minFinalAmount:
          description: Ignored on `originAction`.
          type: string
      required:
        - kind
        - handler
        - calls
      type: object
    WireStrictCallAction:
      title: strict_call
      description: |
        Call `to` with `data` on the origin chain, optionally approving `approve.spender` first. `to` must be on Across' allowlist for that chain.
      properties:
        approve:
          description: Token approval to grant before the call.
          properties:
            amount:
              description: Allowance in base units.
              type: string
            spender:
              type: string
          required:
            - spender
            - amount
          type: object
        to:
          type: string
          description: Call target.
        data:
          type: string
          description: Hex-encoded calldata.
        finalTokenAddress:
          description: Ignored on `originAction`.
          type: string
        kind:
          enum:
            - strict_call
          type: string
        minFinalAmount:
          description: Ignored on `originAction`.
          type: string
      required:
        - kind
        - to
        - data
      type: object
    WireTypedAction:
      title: typed
      description: |
        A built-in Across action, picked by `name`.
      properties:
        kind:
          enum:
            - typed
          type: string
        name:
          type: string
          description: |
            `wrap-native` wraps the native token into its wrapped ERC-20 (e.g. ETH into WETH) before the bridge; the input token must be the wrapped token. `composite` runs the origin actions listed in `params.steps`, in order.
        params:
          additionalProperties:
            $ref: "#/components/schemas/WireJsonValue"
          type: object
          description: Inputs for the action named by `name`. Send `{}` when it takes none.
      required:
        - kind
        - name
        - params
      type: object
```
