## Documentation Index Fetch the complete documentation index at: https://docs.relay.link/llms.txt Use this file to discover all available pages before exploring further.
## Agent Instructions To quote bridges and swaps, look up chains and tokens, or track Relay transactions from an agent, use the Relay MCP server: npx -y @relayprotocol/relay-mcp. It is read-only and does not sign or broadcast transactions. Setup: https://docs.relay.link/resources/developing-with-ai.md For Relay Protocol's trust model, security architecture, and audits, see https://docs.relay.link/references/protocol/security.md. For address screening, see https://docs.relay.link/security/transaction-screening.md.Get Quote
This API returns an executable quote for swapping, bridging and calling
OpenAPI
openapi: 3.0.3
info:
title: Cross-chain solver
version: 1.0.0
servers:
- url: https://api.relay.link
description: Mainnet API
- url: https://api.testnets.relay.link
description: Testnet API
security: []
paths:
/quote:
post:
description: This endpoint is deprecated. Use /quote/v2 instead.
parameters:
- schema:
type: string
in: header
name: x-api-key
required: false
description: Optional API key for authentication and higher rate limits.
requestBody:
content:
application/json:
schema:
properties:
user:
type: string
description: >-
Address that is depositing funds on the origin chain and
submitting transactions or signatures
default: '0x03508bb71268bba25ecacc8f620e01866650532c'
recipient:
type: string
description: >-
Address that is receiving the funds on the destination
chain, if not specified then this will default to the user
address
originChainId:
type: number
default: 8453
destinationChainId:
type: number
default: 10
originCurrency:
type: string
default: '0x0000000000000000000000000000000000000000'
destinationCurrency:
type: string
default: '0x0000000000000000000000000000000000000000'
amount:
type: string
pattern: ^[0-9]+$
description: >-
Amount to swap as the base amount (can be switched to exact
input/output using the dedicated flag), denoted in the
smallest unit of the specified currency (e.g., wei for ETH)
default: '1000000000000000000'
tradeType:
type: string
description: >-
Whether to use the amount as the output or the input for the
basis of the swap
enum:
- EXACT_INPUT
- EXACT_OUTPUT
- EXPECTED_OUTPUT
default: EXACT_INPUT
txs:
type: array
items:
type: object
properties:
to:
type: string
pattern: ^0x[a-fA-F0-9]{40}$
value:
type: string
data:
type: string
pattern: ^0x[a-fA-F0-9]*$
originalTxValue:
type: string
txsGasLimit:
type: number
description: Total gas limit for the destination chain call transactions
authorizationList:
type: array
items:
type: object
properties:
chainId:
type: number
address:
type: string
pattern: ^0x[a-fA-F0-9]{40}$
nonce:
type: number
yParity:
type: number
r:
type: string
s:
type: string
required:
- chainId
- address
- nonce
- yParity
- r
- s
description: >-
Authorization list for EIP-7702 transactions to be executed
on destination chain
additionalData:
type: object
description: Additional data needed for specific routes
properties:
userPublicKey:
type: string
description: >-
If the request originates from Bitcoin and the user is a
P2SH address, the public key is needed to be able to
generate the transaction data
referrer:
type: string
referrerAddress:
type: string
pattern: ^0x[a-fA-F0-9]{40}$
refundTo:
type: string
description: >-
Address to send the refund to in the case of failure, if not
specified then the recipient address or user address is used
recoveryAddress:
type: string
description: >-
Origin-chain address used for deposit-address fund recovery.
Requires useDepositAddress=true.
refundOnOrigin:
type: boolean
description: Always refund on the origin chain in case of any issues
deprecated: true
topupGas:
type: boolean
description: >-
If set, the destination fill will include a gas topup to the
recipient (only supported for EVM chains if the requested
currency is not the gas currency on the destination chain)
topupGasAmount:
type: string
description: >-
The destination gas topup amount in USD decimal format, e.g
100000 = $1. topupGas is required to be enabled. Defaults to
2000000 ($2)
enableTrueExactOutput:
type: boolean
default: false
description: >-
Enabling will send any swap surplus when doing exact output
operations to the solver EOA, otherwise it will be swept to
the recipient
explicitDeposit:
type: boolean
default: true
description: >-
Enable this to avoid direct transfers to the depository
(only relevant for EVM and v2 protocol flow)
useExternalLiquidity:
type: boolean
deprecated: true
description: >-
Deprecated: canonical+ bridging has been removed and this
flag is ignored
useFallbacks:
type: boolean
deprecated: true
description: >-
Deprecated: fallback routes have been removed and this flag
is ignored
usePermit:
type: boolean
description: >-
Enable this to use permit (eip3009) when bridging, only
works on supported currency such as usdc
permitExpiry:
type: number
description: >-
How long the permit remains valid, in seconds: an integer
from 60 to 86399, or 0 for the default of 600 (10 minutes),
which also applies when omitted. Use at least 120, since
some permits take several minutes to land.
useMulticallAuthorization:
type: boolean
description: >-
Opt into the two signature EIP-3009 permit flow of approval
proxy 3.1+. The authorize step then starts with a
MulticallAuthorization signature item (posted to
/execute/permits with kind multicall-authorization, no
status check) followed by the EIP-3009 authorization item.
Without it, EIP-3009 permits keep the single signature flow
on the chain's 3.0 contracts.
includeProtocolData:
type: boolean
description: >-
Return protocol data for on-chain intent validation. This
includes protocol.v2.orderSignature and may increase quote
latency.
swapContractsVersion:
type: string
enum:
- v3
- v3.2
description: >-
Require exact swap contracts on each EVM leg, overriding the
App pin. v3 means 3.0. Unavailable versions and incompatible
permit flows return 400 instead of falling back. Only
supported for swap execution kinds.
useDepositAddress:
type: boolean
description: >-
Use a deposit address when calldata cannot be sent with the
origin transaction. In /quote/v2, creation follows the
requested trade type.
strict:
type: boolean
description: >-
Makes the deposit address one-time use. On /quote/v2,
EXACT_OUTPUT addresses are always one-time use.
slippageTolerance:
type: string
pattern: ^([0-9]{1,4}|10000)$
description: >-
Slippage tolerance for the swap, if not specified then the
slippage tolerance is automatically calculated to avoid
front-running. This value is in basis points (1/100th of a
percent), e.g. 50 for 0.5% slippage. Must be 0–10000 bps.
latePaymentSlippageTolerance:
type: string
pattern: ^([0-9]{1,4}|10000)$
description: >-
Slippage tolerance for destination gas in the event that the
deposit occurs after the order deadline, and more gas is
required for the solver to execute the destination
transaction. Must be 0–10000 bps.
appFees:
type: array
items:
type: object
properties:
recipient:
type: string
description: Address that will receive the app fee
fee:
type: string
pattern: ^[0-9]*\.?[0-9]+$
description: >-
App fees to be charged for execution in basis points,
e.g. 100 = 1%
description: App fees to be charged for execution
gasLimitForDepositSpecifiedTxs:
type: number
description: >-
If the request involves specifying transactions to be
executed during the deposit transaction, an explicit gas
limit must be set when requesting the quote
forceSolverExecution:
type: boolean
description: >-
Force executing swap requests via the solver (by default,
same-chain swap requests are self-executed)
subsidizeFees:
type: boolean
description: >-
If the sponsor should pay for the fees associated with the
request. Includes gas topup amounts.
sponsoredFeeComponents:
type: array
items:
type: string
enum:
- execution
- swap
- relay
- app
- rent
minItems: 1
uniqueItems: true
description: >-
The fee components to sponsor for swap execution kinds.
Requires subsidizeFees=true. Defaults to execution, swap,
relay, and app when omitted; rent remains user-paid unless
explicitly selected.
maxSubsidizationAmount:
type: string
description: >-
The max subsidization amount in USDC decimal format, e.g
1000000 = $1. subsidizeFees must be enabled. The sponsor
will cover fees up to this cap and the user pays any
remainder.
subsidizationBps:
type: integer
minimum: 0
maximum: 10000
description: >-
The share of each sponsored fee component the sponsor
covers, in bps, e.g 10000 = 100% and 2500 = 25%.
subsidizeFees must be enabled. Defaults to full coverage
when omitted; the user pays the remainder. Applied before
maxSubsidizationAmount, which still caps the sponsor's
total.
subsidizeRent:
type: boolean
deprecated: true
description: >-
Deprecated compatibility alias that adds "rent" to
sponsoredFeeComponents.
includedSwapSources:
type: array
items:
type: string
description: Swap sources to include for swap routing.
excludedSwapSources:
type: array
items:
type: string
description: Swap sources to exclude for swap routing.
includedOriginSwapSources:
type: array
items:
type: string
description: Swap sources to include for swap routing on origin.
includedDestinationSwapSources:
type: array
items:
type: string
description: Swap sources to include for swap routing on destination.
originGasOverhead:
type: integer
minimum: 0
maximum: 9007199254740991
description: >-
The gas overhead for the origin chain, this is used to
calculate the gas fee for the origin chain when the solver
is executing a gasless transaction on the origin chain
depositFeePayer:
type: string
description: >-
The payer to be set for deposit transactions on solana. This
account must have enough for fees and rent.
maxRouteLength:
type: number
description: >-
Maximum number of hops to use in solana swap routing. Can
reduce transaction size.
useSharedAccounts:
type: boolean
description: Prevents certain ATA creation instructions in solana routing
forJitoBundle:
type: boolean
description: >-
Restricts solana swap routing to routes that are compatible
with Jito bundles. Only set this when the swap will be
executed inside a Jito bundle.
includeComputeUnitLimit:
type: boolean
description: >-
Whether to include compute unit limit instruction for solana
origin requests.
useV1Transaction:
type: boolean
description: >-
Whether to return the solana deposit transaction in the v1
(SIMD-0385) format: no lookup tables, a 4096 byte limit, and
the compute budget in `transactionConfig`. Best effort; the
returned step data sets `transactionVersion` to 1 when
honored.
overridePriceImpact:
type: boolean
description: Whether to ignore price impact errors.
disableSwapProviderPreference:
type: boolean
description: Whether to disable preferred swap provider selection.
disableOriginSwaps:
type: boolean
description: Whether to disable origin swaps.
indicativeQuote:
type: boolean
description: >-
Whether to return an inexecutable quote meant to be used as
a preview.
fixedRate:
type: string
description: >-
The rate to quote at, as 'input:output' (for example
'1:0.9996'). Requires an API key or referrer. Applied only
on routes that support fixed-rate quotes, where an API key
that is not enabled for them is rejected. A quote that is
not priced at this rate still succeeds and warnings contains
FIXED_RATE_NOT_APPLIED.
referencePrice:
type: string
description: >-
Requester-provided price (output units per input unit, human
units) to compare router quotes against. When
fastestInPriceRange is enabled for the API key,
destination-leg quotes more than 20% below it are skipped.
When useRouteRacingOnOrigin is set, it anchors origin swap
route selection: routes priced within a fixed band of it
(20% below to 50% above) are preferred, and the best route
overall is used when none is in the band. The selected route
alone sets the expected and minimum output (with
slippageTolerance applied to it); the reference price never
sets a floor. Expects a positive decimal string such as
"0.000131" (scientific notation is not parsed). Deliberately
unconstrained by a schema pattern: a malformed or
non-positive value, or one sent by a key without the
relevant grant, is ignored and the quote is served without a
reference price rather than rejected.
useRouteRacing:
type: boolean
description: >-
Whether to use route racing for this quote (executing
multiple candidate routes on-chain and keeping the best),
when the API key is authorized for it.
routeRacingMinUsdSize:
type: number
description: >-
Minimum fill size in USD eligible for route racing. Defaults
to 100. Route racing has no maximum fill size.
useRouteRacingOnOrigin:
type: boolean
description: >-
Whether to use route racing for this quote's origin swap
(executing multiple candidate routes on-chain and keeping
the best), when the API key is authorized for it and the
origin chain is configured for route racing.
ttl:
type: integer
minimum: 1
description: >-
Time-to-live for the quote, in seconds, measured from when
the quote was generated. If the request is not filled within
this window it is refunded instead of filled.
useQueueing:
type: boolean
description: >-
Opt-in queueing: when the destination fill hits temporarily
insufficient liquidity, keep retrying it until the
queueingTtl window expires (then refund) instead of
refunding immediately. Requires queueingTtl.
queueingTtl:
type: number
description: >-
Queueing window, in seconds, measured from when the quote
was generated. While it is open, a useQueueing request that
hits insufficient destination liquidity is retried instead
of refunded; once it expires the request is refunded.
Independent of ttl. Only used together with useQueueing.
required:
- user
- originChainId
- destinationChainId
- originCurrency
- destinationCurrency
- amount
- tradeType
type: object
required: true
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
properties:
requestId:
type: string
description: A unique identifier for the quote
warnings:
type: array
description: >-
Present when a request parameter was accepted but not
applied to the quote, omitted otherwise. The only code
today is FIXED_RATE_NOT_APPLIED; more codes may be added.
items:
type: object
properties:
code:
type: string
enum:
- FIXED_RATE_NOT_APPLIED
message:
type: string
required:
- code
- message
additionalProperties: false
steps:
type: array
description: >-
An array of steps detailing what needs to be done to
complete the bridge or swap. Each step contains a single
item, either a signature or a transaction
example:
- id: deposit
action: Confirm transaction in your wallet
description: >-
Depositing funds to the relayer to execute the swap
for USDC
kind: transaction
requestId: >-
0x92b99e6e1ee1deeb9531b5ad7f87091b3d71254b3176de9e8b5f6c6d0bd3a331
items:
- status: incomplete
data:
from: '0x0CccD55A5Ac261Ea29136831eeaA93bfE07f5Db6'
to: '0xf70da97812cb96acdf810712aa562db8dfa3dbef'
data: '0x00fad611'
value: '1000000000000000000'
maxFeePerGas: '12205661344'
maxPriorityFeePerGas: '2037863396'
chainId: 1
check:
endpoint: >-
/intents/status?requestId=0x92b99e6e1ee1deeb9531b5ad7f87091b3d71254b3176de9e8b5f6c6d0bd3a331
method: GET
items:
type: object
properties:
id:
type: string
description: Unique identifier tied to the step
enum:
- deposit
- approve
- authorize
- authorize1
- authorize2
- swap
- send
action:
type: string
description: A call to action for the step
description:
type: string
description: A short description of the step and what it entails
kind:
type: string
description: >-
The kind of step, can either be a transaction or a
signature. Transaction steps require submitting a
transaction while signature steps require submitting
a signature
requestId:
type: string
description: >-
A unique identifier for this step, tying all related
transactions together
depositAddress:
type: string
description: The deposit address for the bridge request
depositAddressId:
type: string
description: The Deposit Address service resource identifier
items:
type: array
description: >-
The item to execute for this step. A step always
contains exactly one item, matching the kind of the
step (transaction or signature).
items:
type: object
properties:
status:
type: string
description: >-
Can either be complete or incomplete, this can
be locally controlled once the step item is
completed (depending on the kind) and the
check object (if returned) has been verified.
Once all step items are complete, the bridge
is complete
data: {}
check:
type: object
description: >-
Details an endpoint and a method you should
poll to get confirmation, the endpoint should
return a boolean success flag which can be
used to determine if the step item is complete
properties:
endpoint:
type: string
description: >-
The endpoint to confirm that the step item
was successfully completed
method:
type: string
description: The REST method to access the endpoint
required:
- id
- action
- description
- kind
- items
fees:
type: object
properties:
gas:
description: Origin chain gas fee
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
relayer:
description: >-
Combination of the relayerGas and relayerService to
give you the full relayer fee
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
relayerGas:
description: Destination chain gas fee
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
relayerService:
description: >-
Fees paid to the relay solver, note that this value
can be negative (which represents network rewards for
moving in a direction that optimizes liquidity
distribution)
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
app:
description: >-
Fees paid to the app. Currency will be the same as the
relayer fee currency. This needs to be claimed later
by the app owner and is not immediately distributed to
the app
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
subsidized:
description: >-
The amount of fees for the request that are subsidized
by the request sponsor. Does not include deposit
origin gas unless it is a permit based deposit.
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
feeSponsorship:
type: object
description: >-
Granular fee sponsorship details derived from the solver's
internal sponsorship resolution.
properties:
quoted:
description: >-
The quote-time sponsorship expectation for the
request.
type: object
properties:
selectedComponents:
type: array
description: >-
The normalized sponsorship buckets selected for
this request.
items:
type: string
enum:
- execution
- swap
- relay
- app
- rent
maxSubsidizationAmount:
type: string
description: >-
The requested sponsorship cap in USD micro-units,
when one was configured for the request.
subsidizationBps:
type: integer
description: >-
The requested share of each selected fee bucket
the sponsor covers, in bps (10000 = 100%), when
one was configured for the request.
capHit:
type: boolean
description: >-
Whether the configured sponsorship cap limited the
selected fee buckets for this phase.
components:
type: object
description: >-
Per-bucket sponsorship details for the sponsorable
fee components.
properties:
execution:
description: Execution fee sponsorship details.
type: object
properties:
selected:
type: boolean
description: >-
Whether this fee bucket was selected for
sponsorship.
total:
description: >-
The full amount charged for this fee
bucket.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
sponsored:
description: >-
The portion of this fee bucket covered by
the sponsor.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
userPays:
description: >-
The portion of this fee bucket that
remained user-paid.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
required:
- selected
- total
- sponsored
- userPays
swap:
description: Swap fee sponsorship details.
type: object
properties:
selected:
type: boolean
description: >-
Whether this fee bucket was selected for
sponsorship.
total:
description: >-
The full amount charged for this fee
bucket.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
sponsored:
description: >-
The portion of this fee bucket covered by
the sponsor.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
userPays:
description: >-
The portion of this fee bucket that
remained user-paid.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
required:
- selected
- total
- sponsored
- userPays
relay:
description: Relay protocol fee sponsorship details.
type: object
properties:
selected:
type: boolean
description: >-
Whether this fee bucket was selected for
sponsorship.
total:
description: >-
The full amount charged for this fee
bucket.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
sponsored:
description: >-
The portion of this fee bucket covered by
the sponsor.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
userPays:
description: >-
The portion of this fee bucket that
remained user-paid.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
required:
- selected
- total
- sponsored
- userPays
app:
description: App fee sponsorship details.
type: object
properties:
selected:
type: boolean
description: >-
Whether this fee bucket was selected for
sponsorship.
total:
description: >-
The full amount charged for this fee
bucket.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
sponsored:
description: >-
The portion of this fee bucket covered by
the sponsor.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
userPays:
description: >-
The portion of this fee bucket that
remained user-paid.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
required:
- selected
- total
- sponsored
- userPays
rent:
description: Solana ATA rent sponsorship details.
type: object
properties:
selected:
type: boolean
description: >-
Whether this fee bucket was selected for
sponsorship.
total:
description: >-
The full amount charged for this fee
bucket.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
sponsored:
description: >-
The portion of this fee bucket covered by
the sponsor.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
userPays:
description: >-
The portion of this fee bucket that
remained user-paid.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
required:
- selected
- total
- sponsored
- userPays
required:
- execution
- swap
- relay
- app
- rent
sponsoredTotal:
description: The total amount sponsored for this phase.
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
userPaysTotal:
description: >-
The total amount the user paid across the
sponsorable fee buckets for this phase.
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
required:
- selectedComponents
- capHit
- components
- sponsoredTotal
- userPaysTotal
actual:
description: >-
The post-solve sponsorship outcome recorded for the
request.
type: object
properties:
selectedComponents:
type: array
description: >-
The normalized sponsorship buckets selected for
this request.
items:
type: string
enum:
- execution
- swap
- relay
- app
- rent
maxSubsidizationAmount:
type: string
description: >-
The requested sponsorship cap in USD micro-units,
when one was configured for the request.
subsidizationBps:
type: integer
description: >-
The requested share of each selected fee bucket
the sponsor covers, in bps (10000 = 100%), when
one was configured for the request.
capHit:
type: boolean
description: >-
Whether the configured sponsorship cap limited the
selected fee buckets for this phase.
components:
type: object
description: >-
Per-bucket sponsorship details for the sponsorable
fee components.
properties:
execution:
description: Execution fee sponsorship details.
type: object
properties:
selected:
type: boolean
description: >-
Whether this fee bucket was selected for
sponsorship.
total:
description: >-
The full amount charged for this fee
bucket.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
sponsored:
description: >-
The portion of this fee bucket covered by
the sponsor.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
userPays:
description: >-
The portion of this fee bucket that
remained user-paid.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
required:
- selected
- total
- sponsored
- userPays
swap:
description: Swap fee sponsorship details.
type: object
properties:
selected:
type: boolean
description: >-
Whether this fee bucket was selected for
sponsorship.
total:
description: >-
The full amount charged for this fee
bucket.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
sponsored:
description: >-
The portion of this fee bucket covered by
the sponsor.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
userPays:
description: >-
The portion of this fee bucket that
remained user-paid.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
required:
- selected
- total
- sponsored
- userPays
relay:
description: Relay protocol fee sponsorship details.
type: object
properties:
selected:
type: boolean
description: >-
Whether this fee bucket was selected for
sponsorship.
total:
description: >-
The full amount charged for this fee
bucket.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
sponsored:
description: >-
The portion of this fee bucket covered by
the sponsor.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
userPays:
description: >-
The portion of this fee bucket that
remained user-paid.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
required:
- selected
- total
- sponsored
- userPays
app:
description: App fee sponsorship details.
type: object
properties:
selected:
type: boolean
description: >-
Whether this fee bucket was selected for
sponsorship.
total:
description: >-
The full amount charged for this fee
bucket.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
sponsored:
description: >-
The portion of this fee bucket covered by
the sponsor.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
userPays:
description: >-
The portion of this fee bucket that
remained user-paid.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
required:
- selected
- total
- sponsored
- userPays
rent:
description: Solana ATA rent sponsorship details.
type: object
properties:
selected:
type: boolean
description: >-
Whether this fee bucket was selected for
sponsorship.
total:
description: >-
The full amount charged for this fee
bucket.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
sponsored:
description: >-
The portion of this fee bucket covered by
the sponsor.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
userPays:
description: >-
The portion of this fee bucket that
remained user-paid.
type: object
example:
currency:
chainId: 8453
address: >-
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
required:
- selected
- total
- sponsored
- userPays
required:
- execution
- swap
- relay
- app
- rent
sponsoredTotal:
description: The total amount sponsored for this phase.
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
userPaysTotal:
description: >-
The total amount the user paid across the
sponsorable fee buckets for this phase.
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
sponsorPayment:
type: object
description: >-
How much the sponsor ultimately paid, denominated
in the sponsor payment currency.
properties:
amount:
type: string
description: The sponsor payment amount.
address:
type: string
description: The sponsor payment currency address.
chainId:
type: number
description: The sponsor payment chain id.
required:
- amount
- address
- chainId
required:
- selectedComponents
- capHit
- components
- sponsoredTotal
- userPaysTotal
details:
type: object
description: >-
A summary of the swap and what the user should expect to
happen given an input
properties:
operation:
type: string
description: >-
The operation that will be performed, possible options
are send, swap, wrap, unwrap, bridge
sender:
type: string
description: The address that deposited the funds
recipient:
type: string
description: The address that will be receiving the swap output
currencyIn:
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
currencyOut:
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
refundCurrency:
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
currencyGasTopup:
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
totalImpact:
type: object
description: >-
The difference between the input and output values,
including fees
properties:
usd:
type: string
percent:
type: string
swapImpact:
type: object
description: The impact of the swap, not factoring in fees
properties:
usd:
type: string
percent:
type: string
expandedPriceImpact:
type: object
properties:
swap:
description: >-
Cost to execute swap or bridge depending on
available liquidity. This value can be negative
(representing network rewards for improving
liquidity distribution)
type: object
properties:
usd:
type: string
execution:
description: Fees paid to cover transaction execution costs
type: object
properties:
usd:
type: string
relay:
description: Fees paid to the protocol
type: object
properties:
usd:
type: string
app:
description: >-
Fees paid to the app. Currency will be the same as
the relayer fee currency. This needs to be claimed
later by the app owner and is not immediately
distributed to the app
type: object
properties:
usd:
type: string
sponsored:
description: Fees paid by a sponsor for this request
type: object
properties:
usd:
type: string
rate:
type: string
description: >-
The swap rate which is equal to 1 input unit in the
output unit, e.g. 1 USDC -> x ETH. This value can
fluctuate based on gas and fees.
slippageTolerance:
type: object
properties:
total:
type: string
description: >-
The total slippage tolerance applied to the order,
in basis points (1/100th of a percent), e.g. 50
for 0.5% slippage. The origin and destination
breakdowns are alternative allocations of this
budget and are not additive.
origin:
type: object
description: The slippage tolerance on the origin chain swap
properties:
usd:
type: string
value:
type: string
percent:
type: string
destination:
type: object
description: >-
The slippage tolerance on the destination chain
swap
properties:
usd:
type: string
value:
type: string
percent:
type: string
timeEstimate:
type: number
description: Estimated swap time in seconds
userBalance:
type: string
description: >-
The user's balance in the given currency on the origin
chain
isFixedRate:
type: boolean
description: >-
Whether the rate for the quote is fixed or dynamic
(swap on origin/destination). Always true when
operation is send. It does not report whether a
requested fixedRate was applied; warnings does.
fixedRateFee:
type: object
description: >-
The USD cost of the fixed rate vs market rate.
Positive means the fixed rate is worse than market
(user pays premium), negative means better (user
benefits). Only present for fixed rate quotes.
properties:
usd:
type: string
route:
type: object
properties:
origin:
type: object
description: The route taken for the origin chain swap
properties:
inputCurrency:
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
outputCurrency:
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
router:
type: string
includedSwapSources:
type: array
items:
type: string
destination:
type: object
description: The route taken for the origin chain swap
properties:
inputCurrency:
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
outputCurrency:
type: object
example:
currency:
chainId: 8453
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
symbol: USDC
name: USD Coin
decimals: 6
metadata:
logoURI: >-
https://ethereum-optimism.github.io/data/USDC/logo.png
verified: false
isNative: false
amount: '30754920'
amountFormatted: '30.75492'
amountUsd: '30.901612'
minimumAmount: '30454920'
properties:
currency:
type: object
properties:
chainId:
type: number
address:
type: string
symbol:
type: string
name:
type: string
decimals:
type: number
metadata:
type: object
properties:
logoURI:
type: string
verified:
type: boolean
isNative:
type: boolean
amount:
type: string
amountFormatted:
type: string
amountUsd:
type: string
minimumAmount:
type: string
router:
type: string
includedSwapSources:
type: array
items:
type: string
protocol:
type: object
description: Protocol information for the quote
properties:
v2:
type: object
properties:
orderId:
type: string
description: The underlying protocol order id
hubType:
type: string
enum:
- onchain
description: >-
The protocol hub type. Always 'onchain' for the
public protocol contract. Mirrors the requests/v3
protocol block.
orderData:
description: The underlying protocol order data
orderSignature:
type: string
description: >-
Solver's ECDSA signature over the orderId,
returned when includeProtocolData is set. Use
ecrecover to verify the commitment on-chain.
paymentDetails:
type: object
description: The details for the depository payment
properties:
chainId:
type: string
description: The protocol chain id for the payment
depository:
type: string
description: The depository address
currency:
type: string
description: The currency of the payment
amount:
type: string
description: The amount of the payment
'400':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
errorCode:
type: string
errorData:
type: string
requestId:
type: string
approxSimulatedBlock:
type: number
failedCallData:
type: object
properties:
from:
type: string
to:
type: string
data:
type: string
value:
type: string
'401':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
errorCode:
type: string
'429':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
'500':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
errorCode:
type: string
requestId:
type: string
deprecated: true
This documentation is built and hosted on Mintlify, a developer documentation platform.