SPL Token Instructions

Hi there,
can someone elaborate what are used for Approve(createApproveInstruction) and Revoke(createRevokeInstruction) Instructions?
Thanks!

Hi @igdeman and welcome to the forum!

Where have you seen these instructions? I haven’t seen those before and my searches don’t find anything in the Solana program documentation.

They are under SPL token.

createApproveInstruction, line 35

createRevokeInstruction, line 31

1 Like

actually i have found the answer:

Authority delegation
Account owners may delegate authority over some or all of their token balance using the Approve instruction. Delegated authorities may transfer or burn up to the amount they’ve been delegated. Authority delegation may be revoked by the Account’s owner via the Revoke instruction.

1 Like