Xandeum Web3 Library - v1.12.0
    Preparing search index...

    Function poke

    • Constructs a Solana transaction to perform a poke\operation, which writes data to a file at the specified path and byte position.

      Parameters

      • fsid: string

        A stringified integer representing the file system ID where the file resides.

      • path: string

        The path to the file to be written to.

      • position: number

        The byte offset in the file where data should be written.

      • wallet: PublicKey

        The public key of the wallet that signs and authorizes the transaction.

      • dataKey: PublicKey

        A public key of a data account that holds the content to be written to the file.

      Returns Promise<Transaction>

      A Promise that resolves to a Solana Transaction object containing the poke instruction.

      Will throw an error if the path contains invalid characters.