Rent
This page provides instructions on how to rent in NFT using the UniBridge SDK.
UniBridge Collateralized
Import the
UnibridgeCollateralized
andPaymentToken
modules from the SDK.Instantiate a renter object through the module, providing the renter wallet as a parameter.
To initiate the
rent()
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 therent()
function, as demonstrated below.
UniBridge Collateral Free
Import the
UnibridgeCollateralFree
andPaymentToken
modules from the SDK.Instantiate a renter object through the module, providing the renter wallet as a parameter.
To initiate the
rent()
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 therent()
function, as demonstrated below.
Last updated