The solana web3 connection with Xandeum-compatible JSON-RPC endpoint (e.g., 'https://api.devnet.solana.com'
).
The filesystem path to query metadata for (e.g., /documents/myfile.txt
).
A Promise<any>
resolving to the parsed JSON response from the RPC server,
typically containing a result
object with metadata fields.
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.