chainline-contracts / chainline.contracts / HubContract / wallet_reserveFunds

wallet_reserveFunds

private fun ScriptHash.wallet_reserveFunds(expiry: BigInteger, value: BigInteger, recipient: ScriptHash): Unit (source)

Reserves funds in a previously validated user wallet. Overwrites any existing fund reservations.

Note: Please ensure that the wallet has been validated before this is called.

Parameters

expiry - timestamp of when the reserved funds get released automatically

value - the amount of GAS to hold in the reservation as a fixed8 int

recipient - the recipient script hash that the funds are reserved for (set to owner if not known yet)

Return
true on success