I'm looking to make a basic solana program with just some slight modifications from the spl token program.
Is there an example of importing the spl program and then adding a function?
Solana Stack Exchange is a question and answer site for Solana software users and developers. It only takes a minute to sign up.Sign up to join this community
SPL-Token is a program that is currently used as the token standard on Solana. In order to add additional functionality to the program, you have to either:
You can find an example of wrapping some of the existing SPL-Token instructions with another program in these program examples.
It all depends on the functionality you want to add.
There is an upcoming token22 standard that allows extensions to be added, but the functionality is still set to a few different extensions. The preferred way to add functionality is still listed in the 2 options above.