Function: getMetadata()
3 min
xandeum web3 library v1 12 0 docid\ wxgxpnpidcz6 2b6gh786 xandeum web3 library docid\ l2rwyc57gjg6s93mcecr9 / getmetadata getmetadata ( connection , path ) promise < any > defined in getmetadata ts 26 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