• Make TransactionInstruction for post_vaa instruction.

    signatureSet is a @solana/web3.Keypair generated outside of this method, which was used to write signatures and the message hash to.

    https://github.com/certusone/wormhole/blob/main/solana/bridge/program/src/api/post_vaa.rs

    Parameters

    • connection: Connection
    • wormholeProgramId: PublicKeyInitData

      wormhole program address

    • payer: PublicKeyInitData

      transaction signer address

    • vaa: VAA<PayloadLiteral>

      either signed VAA bytes or parsed VAA

    • signatureSet: PublicKeyInitData

      key for signature set account

    Returns TransactionInstruction

Generated using TypeDoc