Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versioned transaction #211

Open
jerempjerem opened this issue May 15, 2024 · 3 comments
Open

Versioned transaction #211

jerempjerem opened this issue May 15, 2024 · 3 comments

Comments

@jerempjerem
Copy link

jerempjerem commented May 15, 2024

How can I create a versioned (v0) transaction like in js :


const messageV0 = new TransactionMessage({
        payerKey: SIGNER_WALLET.publicKey,
        recentBlockhash: latestBlockhash.blockhash,
        instructions: txInstructions
    }).compileToV0Message();
    console.log("   ✅ - Compiled Transaction Message");
    const transaction = new VersionedTransaction(messageV0);

@anri217
Copy link

anri217 commented May 23, 2024

Have u already finded the decision?

@1oid
Copy link

1oid commented Jun 17, 2024

I have the same question

@SC4RECOIN
Copy link
Contributor

you can pass a lookup table as an option when creating the txn

tx, err := solana.NewTransaction(
	        instructions,
		block.Blockhash,
		solana.TransactionPayer(user.PublicKey()),
		solana.TransactionAddressTables(transactionAddressTables),
	)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants