Function prepareFlashLoanBegin
- prepareFlashLoanBegin(
pool: Pool,
userAddr: string,
receiverAddr: string,
borrowAmount: number | bigint,
txnIndexForFlashLoanEnd: number,
params: SuggestedParams,
): Transaction Parameters
- pool: Pool
pool to borrow from
- userAddr: string
account address for the user
- receiverAddr: string
account address to receive the loan
- borrowAmount: number | bigint
the amount of the asset to borrow
- txnIndexForFlashLoanEnd: number
transaction index in the group transaction for the flash_loan_end call.
- params: SuggestedParams
suggested params for the transactions with the fees overwritten
Returns Transaction
Transaction flash loan begin transaction
- pool: Pool
Returns a transaction to begin flash loan Must be groped together with flash_loan_end call.