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