Developer API
...
File Content Operations
Function: peek()
6 min
docid\ wxgxpnpidcz6 2b6gh786 docid\ l2rwyc57gjg6s93mcecr9 / peek peek ( fsid , path , startposition , endposition , wallet ) promise < transaction > defined in https //github com/xandeum/xandeum web3 js/blob/master/src/peek ts#l20 constructs a solana transaction to perform a "peek" operation on a file within a file system the peek operation reads data between two byte offsets within a specified file path parameters fsid string a stringified integer representing the file system id in which the file resides path string the path to the file to be peeked startposition number the starting byte offset (inclusive) to begin reading from endposition number the ending byte offset (exclusive) to stop reading at 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 peek instruction throws will throw an error if the path contains invalid characters