Contract: srcDeposit

Peti bridge contract interaction reference

Requirements

  1. Get the quote result from rfqQuote API

  2. 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

RFQ.QuoteStruct

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