Questions tagged [spl-token-program]
The spl-token-program tag has no usage guidance.
11 questions
5
votes
2
answers
1k
views
Is it possible to make an ATA in one instruction, then use that created ATA in the next instruction, in a single transaction?
This is similar to Can I Create an Account and Transfer Tokens in the same Transaction? but the 'answer' to that question doesn't actually show how to use the token account created in the first ...
2
votes
1
answer
81
views
Where to specify SPL token name or address when transferring
Somebody from Discord was nice enough to point me to look at https://solana-labs.github.io/solana-program-library/token/js/modules.html#transfer but where do I specify what SPL token I want to ...
2
votes
4
answers
6k
views
how to decode data instructions with javascript
upd:
https://docs.solana.com/developing/programming-model/transactions#instruction-data
here, my task is to decode this data using js
I tried to solve the issue with this post How to get Solana ...
3
votes
1
answer
408
views
Transfer Hook: Not backwards compatible with common wallets
As far as I understand from documentation all the Token-2022 extensions should be backwards compatible with normal transfers from spl-token standard. However when testing Transfer Hooks I was only ...
2
votes
1
answer
182
views
Why is AssociatedToken Program not needed when using associated_token constraint in anchor?
I wrote a piece of code that uses associated_token::mint and associated_token::authority and I passed the Token Program but did not pass the Associated Token Program. Considering All Accounts must be ...
2
votes
1
answer
336
views
Can I Create an Account and Transfer Tokens in the same Transaction?
Is it possible to create associated token account and transfer token to that token account at the same time in one transaction?
1
vote
2
answers
368
views
How to create a PDA and enable data storage?
I'm using PDA to hold the funds and the smart contract will sign it to transfer funds from the PDA to anyone.
What's the best way to create a PDA to store multiple NFTs/tokens and also custom data ...
1
vote
1
answer
306
views
Creating SPL token Non-Transferable Extension with metadata on React
I'm trying to create SPL token with Non-Transferable Extension with metadata.
Right now I can create token with each features only follow these guides, and fails to combine them.
below is how I tried ...
0
votes
1
answer
119
views
'Octal escape sequences are not allowed in strict mode' error when generating keypair
I started Solana and web 3 dev recently
Have been having this issue for like 3 days, tried checking online for solutions and nothing.
Please help anyone
CODE
import { Keypair } from "@solana/web3....
0
votes
1
answer
68
views
Which is correct token program address
I'm from ETH coming to SOL. But I noticed in this article, the smart contract address (token program address) is this way - https://nimb.ws/sIxWM7
But here the address starts with the word "Token&...
0
votes
1
answer
2k
views
How to transfer SPL Tokens? [duplicate]
I'm running a Solana node and I'd like to send a transfer request to my running node. I can transfer SOL but I don't know what I need to do for transferring SPL Tokens like GMT or SRM.
I was looking ...