Send Transaction
Sign and send transaction through Blocto.
Sign and Send Transaction
import { SystemProgram, Account, Transaction } from '@solana/web3.js'
const walletPublicKey = window.solana.publicKey
const transaction = new Transaction()
const instruction = SystemProgram.createAccount({
fromPubkey: walletPublicKey,
...
})
transaction.add(instruction)
const txHash = await window.solana.signAndSendTransaction(transaction)
console.log(txHash) // tx hashConvert to Program Wallet Transaction
Last updated
Was this helpful?