Comments (3)
Hi there. Thanks very much. I was running into the same issue and solved it cos I found this closed issue on GitHub. Just wondering how you know it needs space 82 for an SPL token account? Thanks!
82 is the sum of the bytes occupied by the struct fields of the account:
4+32+8+1+1+4+32
4+32 (4 bytes for the optionality indicator + 32 bytes MintAuthority
pubkey)
8 bytes for Supply
uint64
1 byte for the Decimals
uint8
1 byte for the IsInitialized
bool
4+32 (4 bytes for optionality indicator + 32 bytes for FreezeAuthority
pubkey)
from solana-go.
I set space wrongly when NewCreateAccountInstruction
. It needs space 82
when using NewCreateAccountInstruction
with TokenProgram
from solana-go.
Hi there. Thanks very much. I was running into the same issue and solved it cos I found this closed issue on GitHub. Just wondering how you know it needs space 82 for an SPL token account? Thanks!
from solana-go.
Related Issues (20)
- how to decode the instruction.data? HOT 1
- how to getTokenAccountOwner HOT 1
- how to know it is "Token Program: Sync Native" HOT 2
- how to get the decimal of a mint address? HOT 2
- how to get the mint name of 7i5KKsX2weiTkry7jA4ZwSuXGhs5eJBEjY8vVxR4pfRx HOT 1
- Support for Token-2022 program HOT 1
- Can we use this package to interact with custom programs on solana ? HOT 1
- Can we use this package to interact with custom programs on solana ?
- How are these instructions.go files are created ?
- How to derive PDAs using this solana-go ? HOT 1
- [HELP] GetBlockWithOpts using GetParsedTransaction not working in the version v1.8.4 HOT 2
- transfer memo data
- [HELP] How to create and a transaction from encoded B64 data? HOT 5
- General Question: Is there any example on submitting txs with priority fees? HOT 2
- Cannot build account meta during transaction decoding HOT 2
- Pls help, dont knpw how to create trans for launchmynft HOT 2
- GetMultipleAccountsWithOpts doesn't honor MinContextSlot
- WSS method blockSubscribe throws "Invalid/Unspported params for blockSubscribe." HOT 2
- Deserialise of uint64 in rentEpoch field is overflow HOT 3
- [HELP] - Always getting a versioned Transaction Too large error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solana-go.