5

The documentations show how to initialize a new mint with a transfer fee, using createInitializeTransferFeeConfigInstruction().

My question is how to modify the transfer fee configuration later? Preferably in JS/TS.

1
  • Is this still not possible to update?
    – HALO
    Commented Apr 9 at 1:57

2 Answers 2

5

There's a missing instruction creator for the SetTransferFee instruction in the JS library, which is an oversight.

It's certainly possible, but only through the CLI currently with spl-token set-transfer-fee, e.g.:

$ spl-token set-transfer-fee <MINT_ID> <FEE_IN_BASIS_POINTS> <MAX_FEE>
0

Once it is set, there is no way to update the transfer fee for the mint.

2
  • So, once you create a mint with a transfer fee, you can't update the fee later?
    – iMrDJAi
    Commented Oct 6, 2023 at 21:00
  • for now you can't.
    – Ellie
    Commented Oct 7, 2023 at 1:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.