Static Readonly ACCOUNT_Static Readonly MIN_Static addCrafting program
the crafting facility's location
the authority for the crafting process account
the crafting process
the crafting recipe
the crafting facility
the source token account
the destination token account (must be owned by the crafting process account)
the input parameters
Static burnBurn a consumable ingredient from a crafting process account
InstructionReturn
Crafting program
the crafting process
the crafting recipe
the source token account (owned by crafting process)
the token mint
the input parameters
Static cancelCancel the crafting process and close the crafting process account can only be done if the crafting process was not started
InstructionReturn
Crafting program
the crafting facility's location
the authority for the crafting process account
receives rent refund
the crafting process
the crafting facility
Static claimClaim a non-consumable ingredient from a crafting process account
InstructionReturn
Crafting program
the crafting process
the authority for the crafting process account
the crafting recipe
the source token account (owned by crafting process)
the destination token account
the token mint
the input parameters
Static claimClaim an output from a crafting process account
InstructionReturn
Crafting program
the crafting process
the authority for the crafting process account
the crafting recipe
the source token account (owned by the craftableItem)
the destination token account
the craftable item
the input parameters
Static closeClose the crafting process account
InstructionReturn
Crafting program
the authority for the crafting process account
receives rent refund
the crafting process
the crafting recipe
the crafting facility
Static createCreate or Initialize a CraftingProcess Account
InstructionReturn
Crafting program
the crafting facility's location
the authority for the crafting process account
the crafting facility
the crafting recipe
the input parameters
Static decodeStatic findFind the CraftingProcess address
PDA and bump
Crafting program
the crafting facility
the crafting recipe
the crafting process id
Static getStatic legitimizeLegitimize an ingredient The token accounts that hold ingredients can receive tokens from anyone. However, only tokens received through the crafting program are recognized as valid ingredients. This instruction can be used in cases where one wants to "legitimize" such token account balances
InstructionReturn
Crafting program
the crafting facility's location
the authority for the crafting process account
the crafting process
the crafting recipe
the crafting facility
the token account owned by the crafting process which holds the ingredient in escrow
the input parameters
Static removeRemove an ingredient from a crafting process account
InstructionReturn
Crafting program
the crafting facility's location
the authority for the crafting process account
the crafting process
the crafting recipe
the crafting facility
the source token account (must be owned by the crafting process)
the destination token account
the token mint
the input parameters
Static startStart the crafting process
InstructionReturn
Crafting program
the crafting facility's location
the crafting process
the crafting recipe
the crafting facility
Optional recipeDurationOverride: BNthe recipe duration (overrides the duration set on the recipe account)
Optional tokenFromAuthority: AsyncSigner<unknown>the transfer authority of tokenFrom
Optional tokenFrom: PublicKeythe source token account for crafting fees
Optional tokenTo: PublicKeythe destination token account for crafting fees, should be as defined in Recipe account
Generated using TypeDoc
Add an ingredient to a crafting process account
Returns
InstructionReturn