gagliardetto / solana-go

Go SDK library and RPC client for the Solana Blockchain
Apache License 2.0
930 stars 264 forks source link

Support Message V0 #93

Closed riptl closed 1 year ago

riptl commented 2 years ago

Currently only legacy messages are supported.

Message V0 sets the first bit of the message to 1. This bit is not coincidentally the MSB in MessageHeader NumRequiredSignatures, which was redefined to be 7 bits instead of 8. Basically, if NumRequiredSignatures & 0x80 == 1, then it's a message v0.

v0 adds MessageAddressTableLookup, a way to indirectly load a large number of accounts through the address table program.

(note: this is low priority imo, just posting this here so it's tracked)

gagliardetto commented 1 year ago

Implemented.