Contract: srcDeposit
Celer Intent contract interaction reference
Requirements
Get the quote result from rfqQuote API
Find the corresponding contract address here
ABI (optional if you use the binding like Typechain)
srcDeposit/srcDepositNative
Lock the assets to source rfq contract. if the bridge token is a native token, use the srcDepositNative.
// typechain method example
srcDeposit(
_quote: RFQ.QuoteStruct,
_submissionDeadline: BigNumberish,
overrides?: PayableOverrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
Request Parameters
_quote
RFQ.QuoteStruct
refer to RFQ.QuoteStruct
_submissionDeadline
Number
get form rfqQuote srcDeadline filed
value(msg.value)
String
ERC20 bridge: msgFee, Native token bridge: msgFee + source token amount
RFQ.QuoteStruct
srcChainId
Number
source chain id
srcToken
String
source token address
srcAmount
String
Input amount with source token decimal
srcReleaseAmount
NOT REQUIRED
dstChainId
Number
destination chain id
dstToken
String
Destination token address
sender
String
rfq contract sender address
receiver
String
receive address
refundTo
String
refund address, Usually the user wallet address.
Once the transaction submitting, same as other EVM bridge, user history can be found in TransferHistory API, and the transaction process status can be found in GetTransferStatus API.
Last updated