Function: renamePath()
5 min
xandeum web3 library v1 12 0 docid\ wxgxpnpidcz6 2b6gh786 xandeum web3 library docid\ l2rwyc57gjg6s93mcecr9 / renamepath renamepath ( fsid , oldpath , name , wallet ) promise < transaction > defined in renamepath ts 18 https //github com/xandeum/xandeum web3 js/blob/master/src/renamepath ts#l18 constructs a solana transaction to rename (or move) a file or directory within a file system, based on a provided file system id ( fsid ) parameters fsid string a stringified integer representing the file system id where the path exists oldpath string the current path of the file or directory to be renamed or moved name string the new name to assign to the file or directory wallet publickey the public key of the wallet that signs and authorizes the transaction returns promise < transaction > a promise that resolves to a solana transaction object containing the rename path instruction throws may throw an error if either oldpath or newpath is invalid per sanitizepath