Developer API
...
File Operations
Function: createFile()
5 min
docid\ wxgxpnpidcz6 2b6gh786 docid\ l2rwyc57gjg6s93mcecr9 / createfile createfile ( fsid , path , name , wallet ) promise < transaction > defined in https //github com/xandeum/xandeum web3 js/blob/master/src/createfile ts#l17 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 throws will throw an error if path or name contains invalid characters