andresmgsl / solana-cohort-june-2022

Solana Cohort
Apache License 2.0
3 stars 3 forks source link

Challenge Submission: New Features: Versioned Transactions #187

Open DonnySolana opened 2 years ago

DonnySolana commented 2 years ago

Rewards: 150 Points 🔥


Description

In this challenge your going to learn all about Versioned Transactions!

  1. Preview the Solana Bytes video on Versioned Transactions

  2. Look out for the answers to the challenge questions

    • How many transaction versions are supported?
    • How do you construct a MessageV0 formatted transaction?
    • What method is used to get an Address Lookup Table?
  3. Use the documentation provided as an additional resource!

Tips:

Resources:

Versioned Transactions Docs

Address Lookup Tables

Solana Bytes Youtube Video Playlist


How to Submit

Your submission should include the following:

  1. How many versions of transactions are supported?
  2. How do you construct a MessageV0 formatted transaction?
  3. What method is used to get an Address Lookup Table?

Submission Entered:

Challenge Id: [#221007020]

Hunter: DonnySolana

  1. How many transaction versions are supported? 2

  2. How do you construct a MessageV0 formatted transaction? // create v0 compatible message const messageV0 = new web3.TransactionMessage({ payerKey: payer.publicKey, recentBlockhash: blockhash, instructions, }).compileToV0Message();

  3. What method is used to get an Address Lookup Table?: getAddressLookupTable