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 · 1 comment
Open

Versioned transaction #211

jerempjerem opened this issue May 15, 2024 · 1 comment

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?

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

2 participants