Reference
Types
All types returned by the Superbridge API
All types returned by the Superbridge API, generated from the OpenAPI spec.
Chain
Returned by the /v1/chains endpoint.
stringNative chain ID (e.g. 1 for Ethereum)
string[]Shorthand chain identifier (e.g. eth for Ethereum)
stringChain UUID (internal identifier)
BlockExplorer[]string | null"evm" | "svm" | "stark""mainnet" | "testnet"stringstringToken
Returned by the /v1/tokens and /v1/token endpoints.
string0x0000000000000000000000000000000000000000 for native tokens
booleanWhether this token provides gas on its chain, regardless of the address form in this DTO
booleanWhether this exact address form is backed by the chain native balance RPC rather than an ERC20/SPL balance call
stringChain UUID (internal identifier)
stringNative chain ID (e.g. 1 for Ethereum)
string[]Shorthand chain identifier (e.g. eth for Ethereum)
stringnumberstring | nullstringnumber | nullbooleanbooleanRouteResult
A single provider's response to a route request. Contains either a quote or an error.
QuoteDtoGenericQuoteErrorDtoAmountTooLargeQuoteErrorDtoAmountTooSmallQuoteErrorDtoPausedQuoteErrorDtoDisabledQuoteErrorDtoPriceImpactTooHighQuoteErrorDtoEscapeHatchNotSupportedQuoteErrorDtoERC777MintToSmartContractQuoteErrorDtoRouteMetaDtoRouteQuote
A successful quote from a provider.
"bridge" | "crosschainswap" | "swap"InitiatingTransactionEvmDtoInitiatingTransactionEvmGaslessDtoInitiatingTransactionSvmDtoInitiatingTransactionStarkDtoTransactionStepReadyDtoTransactionStepDoneDtoTransactionStepInvalidatedDtoTransactionStepNotReadyDtoTransactionStepAutoDtoWaitStepDoneDtoWaitStepInvalidatedDtoWaitStepInProgressDtoWaitStepNotStartedDtoUpgradeEventDto[]FeeGroup[]stringbooleanTokenApprovalParamsDtoTokenApprovalParamsDtoTokenApprovalParamsDtoTokenDtoTokenDtostringstringInitiating Transactions
Pre-built transactions to be signed and submitted. The shape varies by VM type.
EVM
"evm"stringChain UUID (internal identifier)
stringNative chain ID (e.g. 1 for Ethereum)
string[]Shorthand chain identifier (e.g. eth for Ethereum)
stringHex
stringstringstringEVM Gasless
"evm-gasless"stringChain UUID (internal identifier)
stringNative chain ID (e.g. 1 for Ethereum)
string[]Shorthand chain identifier (e.g. eth for Ethereum)
stringSVM
"svm"stringBase64
stringstringstring[]Starknet
"starknet"stringstringstring[]StarkCallDto[]TokenApproval
An ERC-20 approval required before bridging. See Approvals.
stringThe contract that needs the approval
stringstringInitiatingTransactionEvmDtoFeeItem
A single fee line item.
stringTokenDtonumberstringbooleannumberFeeGroup
A group of fee line items belonging to a provider.
FeeItem[]ProviderDtoActivity
An activity item returned by the /v1/activity endpoint.
"bridge" | "crosschainswap" | "swap"stringChain UUID (internal identifier)
stringNative chain ID (e.g. 1 for Ethereum)
string[]Shorthand chain identifier (e.g. eth for Ethereum)
stringChain UUID (internal identifier)
stringNative chain ID (e.g. 1 for Ethereum)
string[]Shorthand chain identifier (e.g. eth for Ethereum)
TransactionStepDoneDtoTransactionStepInvalidatedDtoTransactionStepNotReadyDtoTransactionStepReadyDtoTransactionStepAutoDtoWaitStepDoneDtoWaitStepInvalidatedDtoWaitStepInProgressDtoWaitStepNotStartedDtoUpgradeEventDto[]FeeGroup[]RouteMetaDtostringstringstringstringstringTokenDtoTokenDtostring | nullnumber | nullbooleanProviderExplorerDetails | nullTransactionStepDone
A completed transaction step.
"transaction"stringChain UUID (internal identifier)
stringNative chain ID (e.g. 1 for Ethereum)
string[]Shorthand chain identifier (e.g. eth for Ethereum)
RouteAction"done"ConfirmationDtoV2TransactionStepReady
A transaction step that is ready to be signed.
"transaction"stringChain UUID (internal identifier)
stringNative chain ID (e.g. 1 for Ethereum)
string[]Shorthand chain identifier (e.g. eth for Ethereum)
RouteAction"ready"TransactionStepNotReady
A transaction step that is not yet available.
"transaction"stringChain UUID (internal identifier)
stringNative chain ID (e.g. 1 for Ethereum)
string[]Shorthand chain identifier (e.g. eth for Ethereum)
RouteAction"not-ready"EvmNotReadyStepGasEstimateDto | SvmNotReadyStepGasEstimateDto | StarkNotReadyStepGasEstimateDtoTransactionStepAuto
A transaction step handled automatically (e.g. by a relayer).
"transaction"stringChain UUID (internal identifier)
stringNative chain ID (e.g. 1 for Ethereum)
string[]Shorthand chain identifier (e.g. eth for Ethereum)
RouteAction"auto"WaitStepDone
A completed wait step.
"wait"WaitStepType"done"numbernumberWaitStepInProgress
A wait step currently in progress.
"wait"WaitStepType"in-progress"numbernumberWaitStepNotStarted
A wait step that has not started yet.
"wait"WaitStepType"not-started"numberWaitStepInvalidated
A wait step invalidated by a protocol upgrade event.
"wait"WaitStepType"invalidated"numberUpgradeEventDtonumberUpgradeEvent
A protocol upgrade event that can invalidate earlier wait or transaction steps.
"upgrade-event""op-upgrade-fault-proofs" | "arb-upgrade-bold""op-upgrade-fault-proofs""op-respected-game-type-change""op-upgrade-13""op-retirement-timestamp-change""arb-bold-upgrade"stringChain UUID (internal identifier)
stringNative chain ID (e.g. 1 for Ethereum)
string[]Shorthand chain identifier (e.g. eth for Ethereum)
numbernumberConfirmation
Transaction confirmation details.
numberstring"confirmed" | "reverted" | "dropped"BlockExplorer
string"etherscan""blockscout""routescan""starkscan""other"EvmNotReadyStepGasEstimate
"evm"numberSvmNotReadyStepGasEstimate
"svm"numbernumbernumberStarkNotReadyStepGasEstimate
"stark"numbernumbernumberstringstringstringProvider
Display information for a route provider.
stringstringstring