Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save codebender828/9d5f1a9877981f040a3b7b561cca1a85 to your computer and use it in GitHub Desktop.
Save codebender828/9d5f1a9877981f040a3b7b561cca1a85 to your computer and use it in GitHub Desktop.
Deserialize Base 64 Transaction
import { Transaction } from '@solana/web3.js';
const transactionBuffer = Buffer.from(<BASE_64_TRANSACTION_PAYLOAD>, 'base64');
const transaction = Transaction.from(transactionBuffer);
// proceed with transaction signing and sending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment