Developer API
...
Metadata & Utilities
Function: getMetadata()
3 min
docid\ wxgxpnpidcz6 2b6gh786 docid\ l2rwyc57gjg6s93mcecr9 / getmetadata getmetadata ( connection , path ) promise < any > defined in https //github com/xandeum/xandeum web3 js/blob/master/src/getmetadata ts#l26 sends a json rpc request to the xandeum rpc endpoint to retrieve metadata about a file or directory at the given path this function calls the custom rpc method getmetadata , which is implemented by the backend to return metadata such as type (file or directory), size, timestamps etc parameters connection connection the solana web3 connection with xandeum compatible json rpc endpoint (e g , 'https //api devnet solana com' ) path string the filesystem path to query metadata for (e g , /documents/myfile txt ) returns promise < any > a promise\<any> resolving to the parsed json response from the rpc server, typically containing a result object with metadata fields