Here's a diagram that shows all the different parts of a Solana transaction.

More details below πŸ‘‡
1/ Each Solana transaction contains a message, and the first part of each message is its header.

The header is simple, it just contains the numbers described in the diagram.
2/ The next part of the transaction message is an array of accounts. They are ordered based on whether they require a signature and whether they are writable.

This array also contains the addresses of the programs used by the instructions.
3/ Notably, Solana forces you to explicitly specify which accounts require signatures, and which accounts are writeable.

That's why when you create an instruction on the client-side (TypeScript in this example), it looks like this πŸ‘‡
4/ The message blockhash is pretty self-explanatory. It's included so that validators can reject txs that are too old.
5/ Solana transactions can contain multiple instructions!

This is important, b/c you may want to execute multiple instructions atomically (i.e. all of them succeed, or all of them fail).

The indexes described in the diagram index into the account addresses array we saw above.
6/ Each Solana transaction also contains an array of signatures.

Each item is a digital signature of the message, signed by some private key.
7/ That's it! For more details, check out the official docs.

docs.solana.com/developing/pro…

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with pencilflip.sol πŸ„ (πŸ“œ,πŸ“œ)

pencilflip.sol πŸ„ (πŸ“œ,πŸ“œ) Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @pencilflip

18 Nov
1/ Here's a thread of all the Solana threads I've written (a thread of threads), plus some great threads/tweets by other folks. I'll try to keep adding onto this in the future.

First, 11 resources to get started with Solana development

2/ Solana accounts explained in 5 tweets

3/ A simple breakdown of Solana accounts

Read 40 tweets
15 Nov
Here's my smooth brained understanding of Solana and rollups
1/ First off, a rollup is a L2 scaling solution. With rollups, a bunch of transactions are executed off-chain, and their data is posted on L1. This increases throughput, because instead of L1 processing 10 individual txs, it can process 1 "rolled-up" tx.
2/ So is Solana planning on having rollups on top of its L1? No ❌

Read 10 tweets
15 Nov
Just spent the past hour reading about Solana and rollups on Twitter. 99% of it went over my head but it was interesting πŸ˜†. Links to some of the more interesting threads I read below...
Read 5 tweets
14 Nov
The 🍬 Candy Machine 🍬 is a program built by @redacted_j and @baalazamon that's commonly used to mint Solana NFT collections.

This thread is about how the program works (not how to use the Candy Machine for your own collection).

Let's go! πŸ‘‡
1/ First, if you want a simpler, shorter explanation, check out this comic!

2/ Now, some preliminary resources.

If you don't understand Solana's account model, check out this thread

Read 38 tweets
12 Nov
gm πŸ„ Excited to share @TheMycoverse, the project @petrichorate and I are working on!

We're starting with a mushroom-inspired NFT collection (b/c mushrooms are awesome), but our larger goal is to help onboard more artists and creators into web3.
Right now, getting into web3 as an artist is hard πŸ˜΅β€πŸ’«.

Which blockchain should you choose? Which marketplace should you list on? How do you make an NFT collection? How do you airdrop NFTs to people? How do you market yourself?
We're building a community that cares about helping artists. With that community, we'll create tools and resources that make it easy for any artist or creator to get started with web3.
Read 4 tweets
10 Nov
How do NFT whitelists work on Ethereum? It's pretty simpleβ€”let's take a look at the @smilesssvrs smart contract to see how they did it πŸ‘‡

1/ The contract has a state variable called "_mintStatus."

This determines whether minting is only open to people on the whitelist (Acts 1-4), or is open to the public (Public 1-2).

Each status is associated with a minting limit. E.g. during Act 1, one person can mint 9 NFTs. Image
2/ Only the owner of the smart contract is allowed to change the status. Image
Read 10 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Thank you for your support!

Follow Us on Twitter!

:(