Search
K
Comment on page

Types

Constant values returned in API responses

userTxType

userTxType
Description
approve
Token approval transaction
fund-movr
Indicates a Swap+Bridge or only Bridging transaction
claim
User transaction to claim funds on destination chain
dex-swap
Transaction for swapping tokens
sign
Users sign a message with intent to bridge

txType

txType
Description
eth_sendTransaction
User's wallet needs to call eth_sendTransaction method
eth_signMessage
User's wallet needs to sign tx with eth_signMessagemethod

StepTypes

step
Description
bridge
Bridging step in tx
middleware
DEX swap or refuel step in tx

UserTxStatus

status
Description
READY
The next transaction needs to be performed by fetching the tx data from /build-next-tx (only relevant for Multi Tx Bridging)
PENDING
The current transaction or bridging process is in progress and no action needs to be taken
COMPLETED
Transaction has completed and user does not have to take any more action
FAILED
Transaction failed on-chain

bridgeRouteErrors

Error
Description
INSUFFICIENT_LIQUIDITY
Bridge has insufficient liquidity for token on destination chain
BRIDGE_QUOTE_TIMEOUT
Bridge did not return a quote within Socket's timeout interval
MIN_AMOUNT_NOT_MET
Input amount is less than bridge's minimum bridging amount for given token
MAX_AMOUNT_EXCEEDED
Input amount exceeds bridge's maximum bridging amount for given token
CONTRACT_RECEIVER_NOT_SUPPORTED
Bridge does not support a contract as receiver address on the destination chain
DIFFERENT_RECEIVER_NOT_SUPPORTED
Bridge requires receiver address on destination chain to be same as sender on source chain
INSUFFICIENT_INPUT_AMOUNT
Bridge requires a higher input amount to cover destination fees
SOCKET_INTERNAL_ERROR
Socket Internal Error
UNSUPPORTED_CHAIN
Bridge does not support source/destination chain requested in quote
ASSET_NOT_SUPPORTED
Bridge does not support asset requested in quote