I am having some troubles using the spl-token library. How do I use it?
<script src="https://cdn.jsdelivr.net/npm/@solana/[email protected]/lib/cjs/index.min.js"></script>
It is included it like that!
How do I use it now? For Solana web3, I simply use solanaWeb3.function(), but it doesn’t work for spl.
I also tried with this in my JavaScript file: const { TOKEN_PROGRAM_ID, Token} = splToken;
, but then I get this error:
Uncaught ReferenceError: splToken is not defined