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

    Function createFile

    • Constructs a Solana transaction to create a new file within a file system, identified by a file system ID (fsid).

      Parameters

      • fsid: string

        A stringified integer representing the file system ID where the file is to be created.

      • path: string

        The absolute or relative path within the file system where the file should be created.

      • name: string

        The name of the new file or directory to be created.

      • wallet: PublicKey

        The public key of the wallet that will sign and authorize the transaction.

      Returns Promise<Transaction>

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

      Will throw an error if path or name contains invalid characters.