Claim Collateral / Rent
This page provides instructions on how to claim collateral or rent using the UniBridge SDK.
UniBridge Collateralized
Import the
UnibridgeCollateralized
andPaymentToken
modules from the SDK.Instantiate a lender object through the module, providing the lender wallet as a parameter.
To initiate the
stopLending()
function, it is necessary to construct the suitable payload object containing the requisite fields and values. Once the payload object is prepared, it can be supplied as an argument while calling thestopLending()
function, as demonstrated below.
UniBridge Collateral Free
Import the
UnibridgeCollateralFree
andPaymentToken
modules from the SDK.Instantiate a lender object through the module, providing the lender wallet as a parameter.
To initiate the
stopLending()
function, it is necessary to construct the suitable payload object containing the requisite fields and values. Once the payload object is prepared, it can be supplied as an argument while calling thestopLending()
function, as demonstrated below.
Last updated