- Preparing search index...
- The search index is not available
API References
Type alias FreezeTokenPaymentGuardRouteSettings
Freeze
Token
Payment
Guard
Route
Settings
: { path
: "initialize"; period
: number; candyGuardAuthority
: Signer; } | { path
: "thaw"; nftMint
: PublicKey; nftOwner
: PublicKey; } | { path
: "unlockFunds"; candyGuardAuthority
: Signer; }
The settings for the freezeTokenPayment guard that should be provided when accessing the guard's special "route" instruction.
Initialize
The
initialize
path creates the freeze escrow account that will hold the funds until all NFTs are thawed. It must be called before any NFTs can be minted.Thaw
The
thaw
path unfreezes one NFT if one of the following conditions are met:Anyone can call this instruction. Since the funds are not transferrable until all NFTs are thawed, it creates an incentive for the treasury to thaw all NFTs as soon as possible.
Unlock Funds
The
unlockFunds
path transfers all of the escrow funds to the configured destination token address once all NFTs have been thawed.See
FreezeTokenPaymentGuardSettings for more information on the freezeTokenPayment guard itself.