Skip to main content

Types

Table of contents

Enumerations

Classes

Interfaces

Type Aliases

Variables

Type Aliases

ActiveRouteOutputDTO

Ƭ ActiveRouteOutputDTO: Object

Type declaration

NameTypeDescription
resultActiveRouteResponse-
successbooleanStatus of API response.

Defined in

socket-v2-sdk/src/client/models/ActiveRouteOutputDTO.ts:3


ActiveRouteResponse

Ƭ ActiveRouteResponse: Object

Type declaration

NameTypeDescription
activeRouteIdnumberId of the Active Route.
createdAtstringTimestamp of Route start.
currentUserTxIndexnumberIndex of current tx in userTxs array.
fromAmountstringAmount of sending tokens.
fromAssetToken-
fromAssetAddressstringAddress of token on source chain.
fromChainIdnumberId of source chain.
routeStatusActiveRouteStatusStatus of the Active Route.
toAmountstringApproximate amount of receiving tokens.
toAssetToken-
toAssetAddressstringAddress of token on destination chain.
toChainIdnumberId of destination chain.
totalUserTxnumberTotal number of txs required in Active Route.
updatedAtstringTimestamp of last route update.
userAddressstringAddress of user doing the Active Route.
userTxsUserTx[]Array of user txs.

Defined in

socket-v2-sdk/src/client/models/ActiveRouteResponse.ts:9


ActiveRoutesOutputDTO

Ƭ ActiveRoutesOutputDTO: Object

Type declaration

NameTypeDescription
result{ activeRoutes: ActiveRouteResponse[] ; pagination: { limit: number ; offset: number ; totalRecords: number } }-
result.activeRoutesActiveRouteResponse[]-
result.pagination{ limit: number ; offset: number ; totalRecords: number }-
result.pagination.limitnumber-
result.pagination.offsetnumber-
result.pagination.totalRecordsnumber-
successbooleanStatus of API response.

Defined in

socket-v2-sdk/src/client/models/ActiveRoutesOutputDTO.ts:3


ApprovalData

Ƭ ApprovalData: Object

Type declaration

NameTypeDescription
allowanceTargetstringContract address that needs approval.
approvalTokenAddressstringAddress of token for which approval is required.
minimumApprovalAmountstringMinimum amount of approval needed.
ownerstringAddress of owner.

Defined in

socket-v2-sdk/src/client/models/ApprovalData.ts:1


ApprovalOutputDTO

Ƭ ApprovalOutputDTO: Object

Type declaration

NameType
result{ tokenAddress: string ; value: string }
result.tokenAddressstring
result.valuestring
successboolean

Defined in

socket-v2-sdk/src/client/models/ApprovalOutputDTO.ts:1


ApprovalTxOutputDTO

Ƭ ApprovalTxOutputDTO: Object

Type declaration

NameType
result{ data?: string ; from?: string ; to?: string }
result.data?string
result.from?string
result.to?string
successboolean

Defined in

socket-v2-sdk/src/client/models/ApprovalTxOutputDTO.ts:1


Balance

Ƭ Balance: Object

Type declaration

NameType
resultBalanceResult[]
successboolean

Defined in

socket-v2-sdk/src/client/models/Balance.ts:3


BalanceResult

Ƭ BalanceResult: Object

Type declaration

NameType
addressstring
amountnumber
chainIdChainId
currencystring
decimalsnumber
namestring
pricenumber
symbolstring

Defined in

socket-v2-sdk/src/client/models/BalanceResult.ts:3


BridgeDetails

Ƭ BridgeDetails: Object

Type declaration

NameTypeDescription
displayNamestringDisplay name of bridge.
icon?stringURL for icon of bridge.
nameBridgeNameName of bridge.
serviceTimenumberApprox time for bridging in seconds.

Defined in

socket-v2-sdk/src/client/models/BridgeDetails.ts:5


BridgeRouteErrors

Ƭ BridgeRouteErrors: { [bridge in BridgeName]?: Object }

Defined in

socket-v2-sdk/src/client/models/BridgeRouteErrors.ts:8


BridgeStatusResponse

Ƭ BridgeStatusResponse: Object

Type declaration

NameTypeDescription
destinationTransactionHash?stringDestination Transaction hash.
destinationTxStatusTxStatusStatus of destination transaction while bridging.
fromChainIdnumberSource Chain Id
sourceTxstringSource Transaction.
sourceTxStatusTxStatusStatus of source transaction while bridging.
toChainIdnumberDestination Chain Id.

Defined in

socket-v2-sdk/src/client/models/BridgeStatusResponse.ts:3


BridgeStatusResponseDTO

Ƭ BridgeStatusResponseDTO: Object

Type declaration

NameTypeDescription
resultBridgeStatusResponse-
successbooleanStatus of API.

Defined in

socket-v2-sdk/src/client/models/BridgeStatusResponseDTO.ts:3


ChainDetails

Ƭ ChainDetails: Object

Type declaration

NameTypeDescription
chainIdChainIdId of chain.
currencyGasTokenDetails-
explorersstring[]-
iconstringURL for icon of chain.
isL1booleanFlag indicating whether the chain is L1.
namestringName of chain.
receivingEnabledbooleanFlag indicating whether receiving of tokens is supported to chain.
rpcsstring[]-
sendingEnabledbooleanFlag indicating whether sending of tokens is supported from chain.

Defined in

socket-v2-sdk/src/client/models/ChainDetails.ts:4


ChainGasBalances

Ƭ ChainGasBalances: any

Defined in

socket-v2-sdk/src/client/models/ChainGasBalances.ts:1


ChainSwitchDoneCallback

Ƭ ChainSwitchDoneCallback: (chainId: ChainId) => void

Type declaration

▸ (chainId): void

Callback when chain switch has completed.

Parameters
NameType
chainIdChainId
Returns

void

Defined in

socket-v2-sdk/src/web3ConnectedSocket.ts:26


Dexes

Ƭ Dexes: Middleware.OneInch | Middleware.ZeroX

Defined in

socket-v2-sdk/src/client/models/Dexes.ts:3


GasFee

Ƭ GasFee: Object

Type declaration

NameTypeDescription
assetTokenGas token details.
feesInUsdnumberUSD value of gas fees at current gas price.
gasAmountstringEstimated Amount of gas token will be used
gasLimitnumberApprox Gas Limit of the transaction.

Defined in

socket-v2-sdk/src/client/models/GasFee.ts:3


GasPriceResponseDTO

Ƭ GasPriceResponseDTO: Object

Type declaration

NameType
result{ chainId?: ChainId ; fast?: { estimatedSeconds?: number ; gasPrice?: number } ; normal?: { estimatedSeconds?: number ; gasPrice?: number } ; slow?: { estimatedSeconds?: number ; gasPrice?: number } ; txType?: number }
result.chainId?ChainId
result.fast?{ estimatedSeconds?: number ; gasPrice?: number }
result.fast.estimatedSeconds?number
result.fast.gasPrice?number
result.normal?{ estimatedSeconds?: number ; gasPrice?: number }
result.normal.estimatedSeconds?number
result.normal.gasPrice?number
result.slow?{ estimatedSeconds?: number ; gasPrice?: number }
result.slow.estimatedSeconds?number
result.slow.gasPrice?number
result.txType?number
successboolean

Defined in

socket-v2-sdk/src/client/models/GasPriceResponseDTO.ts:3


GasTokenDetails

Ƭ GasTokenDetails: Object

Type declaration

NameTypeDescription
addressstringAddress of gas token.
decimalsnumberDecimals of gas token.
iconstringURL for icon of gas token.
minNativeCurrencyForGasstringMinimum amount to be left for gas while using max amount.
namestringName of gas token.
symbolstringSymbol of gas token.

Defined in

socket-v2-sdk/src/client/models/GasTokenDetails.ts:1


HealthResponseDTO

Ƭ HealthResponseDTO: Object

Type declaration

NameType
okboolean

Defined in

socket-v2-sdk/src/client/models/HealthResponseDTO.ts:1


MinGasBalances

Ƭ MinGasBalances: any

Defined in

socket-v2-sdk/src/client/models/MinGasBalances.ts:1


NextTxOutputDTO

Ƭ NextTxOutputDTO: Object

Type declaration

NameTypeDescription
resultNextTxResponse-
statusbooleanStatus of API.

Defined in

socket-v2-sdk/src/client/models/NextTxOutputDTO.ts:3


OpenAPIConfig

Ƭ OpenAPIConfig: Object

Type declaration

NameType
API_KEY?string | Resolver<string>
BASEstring
CREDENTIALS"include" | "omit" | "same-origin"
HEADERS?Headers | Resolver<Headers>
PASSWORD?string | Resolver<string>
TOKEN?string | Resolver<string>
USERNAME?string | Resolver<string>
VERSIONstring
WITH_CREDENTIALSboolean
ENCODE_PATH?(path: string) => string

Defined in

socket-v2-sdk/src/client/core/OpenAPI.ts:6


Quote

Ƭ Quote: Object

Type declaration

NameType
bridgeRouteErrorsBridgeRouteErrors
fromAsset?Token
fromChainId?number
refuel?RefuelData
routes?Route[]
toAsset?Token
toChainId?number

Defined in

socket-v2-sdk/src/client/models/QuoteOutputDTO.ts:6


QuoteOutputDTO

Ƭ QuoteOutputDTO: Object

Type declaration

NameTypeDescription
resultQuote-
successbooleanStatus of API.

Defined in

socket-v2-sdk/src/client/models/QuoteOutputDTO.ts:16


Route

Ƭ Route: Object

Type declaration

NameTypeDescription
chainGasBalancesChainGasBalances-
fromAmountstringSending token amount.
minimumGasBalancesMinGasBalances-
recipientstringAddress of user receiving the amount.
routeIdstringUnique id for each route.
senderstringAddress of user making the transactions.
serviceTimenumberEstimate of total time in seconds, excluding the transaction time.
toAmountstringApproximate receiving token amount.
totalGasFeesInUsdnumberCombined USD gas fees for all transactions in the route.
totalUserTxnumberTotal number of transactions for the route.
usedBridgeNamesBridgeName[]Array of bridges used in the route
userTxsUserTx[]Array of user transactions.

Defined in

socket-v2-sdk/src/client/models/Route.ts:6


RouteStatusOutputDTO

Ƭ RouteStatusOutputDTO: Object

Type declaration

NameTypeDescription
resultPrepareActiveRouteStatus-
statusbooleanStatus of API.

Defined in

socket-v2-sdk/src/client/models/RouteStatusOutputDTO.ts:12


SingleTxDTO

Ƭ SingleTxDTO: Object

Type declaration

NameType
refuelRefuelData
routeRoute

Defined in

socket-v2-sdk/src/client/models/SingleTxDTO.ts:4


SingleTxOutputDTO

Ƭ SingleTxOutputDTO: Object

Type declaration

NameTypeDescription
resultSingleTxResponse-
statusbooleanStatus of API.

Defined in

socket-v2-sdk/src/client/models/SingleTxOutputDTO.ts:3


SingleTxResponse

Ƭ SingleTxResponse: Object

Type declaration

NameTypeDescription
approvalDataApprovalData | null-
chainIdChainIdId of chain where transaction has to be sent.
totalUserTxnumberTotal number of transactions in Active Route.
txDatastringCalldata for transaction.
txTargetstringAddress to which transaction has to be sent.
txTypeTxTypeType of transaction.
userTxTypeUserTxTypeType of user transaction.
valuestringNative token amount to be sent with transaction.

Defined in

socket-v2-sdk/src/client/models/SingleTxResponse.ts:6


SocketTxDoneCallback

Ƭ SocketTxDoneCallback: (tx: SocketTx) => void

Type declaration

▸ (tx): void

Callback when a socket transaction is complete.

Parameters
NameType
txSocketTx
Returns

void

Defined in

socket-v2-sdk/src/web3ConnectedSocket.ts:22


StartActiveRouteInputDTO

Ƭ StartActiveRouteInputDTO: Object

Type declaration

NameTypeDescription
fromAssetAddressstringToken address on source chain.
fromChainIdnumberChain id of source chain.
includeFirstTxDetails?booleanInclude the tx details for the first user transaction. If true it will return the txData txType etc. If false, it will only return the active route Id of the selected route.
refuel?RefuelDataRefuel data for if the user have selected bridge with gas option
routeRouteSelected route by the user to bridge tokens from one chain to another.
toAssetAddressstringToken address on destination chain.
toChainIdnumberChain id of destination chain.

Defined in

socket-v2-sdk/src/client/models/StartActiveRouteInputDTO.ts:4


Step

Ƭ Step: Object

Type declaration

NameType
fromAmountstring
fromAssetToken
fromChainIdnumber
gasFeesGasFee
protocolBridgeDetails
serviceTimenumber
toAmountstring
toAssetToken
toChainIdnumber
typestring

Defined in

socket-v2-sdk/src/client/models/UserTx.ts:9


SupportedBridgesOutputDTO

Ƭ SupportedBridgesOutputDTO: Object

Type declaration

NameTypeDescription
resultBridgeDetails[]-
successbooleanStatus of API.

Defined in

socket-v2-sdk/src/client/models/SupportedBridgesOutputDTO.ts:3


SupportedChainsOutputDTO

Ƭ SupportedChainsOutputDTO: Object

Type declaration

NameTypeDescription
resultChainDetails[]-
successbooleanStatus of API.

Defined in

socket-v2-sdk/src/client/models/SupportedChainsOutputDTO.ts:3


Token

Ƭ Token: Object

Type declaration

NameTypeDescription
addressstringAddress of token.
chainAgnosticId?string | nullUnique Id over all chains
chainIdChainIdChain id of the token
decimals?numberDecimal used for token.
icon?stringURL for icon of token.
logoURI?stringURL for icon of token.
name?stringName of token.
symbolstringSymbol of token.

Defined in

socket-v2-sdk/src/client/models/Token.ts:3


TokenBalanceReponseDTO

Ƭ TokenBalanceReponseDTO: Object

Type declaration

NameType
result{ balance?: string ; chainId?: ChainId ; decimals?: number ; icon?: string ; name?: string ; symbol?: string ; tokenAddress?: string ; userAddress?: string }
result.balance?string
result.chainId?ChainId
result.decimals?number
result.icon?string
result.name?string
result.symbol?string
result.tokenAddress?string
result.userAddress?string
successboolean

Defined in

socket-v2-sdk/src/client/models/TokenBalanceReponseDTO.ts:3


TokenListOutputDTO

Ƭ TokenListOutputDTO: Object

Type declaration

NameTypeDescription
resultToken[]-
successbooleanStatus of API.

Defined in

socket-v2-sdk/src/client/models/TokenListOutputDTO.ts:3


TokenPriceResponseDTO

Ƭ TokenPriceResponseDTO: Object

Type declaration

NameType
result{ chainId?: ChainId ; currency?: string ; tokenAddress?: string ; tokenPrice?: number }
result.chainId?ChainId
result.currency?string
result.tokenAddress?string
result.tokenPrice?number
successboolean

Defined in

socket-v2-sdk/src/client/models/TokenPriceResponseDTO.ts:3


TransactionReceiptResponseDTO

Ƭ TransactionReceiptResponseDTO: Object

Type declaration

NameTypeDescription
resultany-
successbooleanStatus of API.

Defined in

socket-v2-sdk/src/client/models/TransactionReceiptResponseDTO.ts:1


TxDoneCallback

Ƭ TxDoneCallback: (tx: SocketTx, hash: string) => void

Type declaration

▸ (tx, hash): void

Callback when a transaction for send/approval has completed.

Parameters
NameType
txSocketTx
hashstring
Returns

void

Defined in

socket-v2-sdk/src/web3ConnectedSocket.ts:24


UserTx

Ƭ UserTx: Object

Type declaration

NameType
approvalData?ApprovalData
chainIdChainId
destinationTxHash?string
destinationTxReceipt?TransactionReceipt
gasFeesGasFee
recipientstring
routePathstring
senderstring
serviceTimenumber
sourceTransactionHash?string
sourceTransactionReceipt?TransactionReceipt
stepCountnumber
stepsStep[]
toAmountstring
toAssetToken
txTypeTxType
userTxIndexnumber
userTxStatus?PrepareActiveRouteStatus
userTxTypeUserTxType

Defined in

socket-v2-sdk/src/client/models/UserTx.ts:22

Variables

OpenAPI

Const OpenAPI: OpenAPIConfig

Defined in

socket-v2-sdk/src/client/core/OpenAPI.ts:19