Fetches a resource by its parsed id and returns whichever state it is in: a document, a comment, a redirect, not found, a tombstone, or an error. rpc/type/resource lists each state.
This page describes the rpc/resource method. It is one method of the Seed API, which clients call as request(key, input) -> output. input types what you send and output types what comes back. The output is a read model that the daemon computes for clients, separate from the signed blobs that travel the network. The formal schema is attached as the schemaDefinition in this page's metadata, so the app can show it and run the method from its API console.
See also
Seed API: HTTP transport, input encodings, errors and authentication.
Seed API Schemas: the catalog of methods and the in-app console.
RPC: every method in one union.
Hypermedia URLs: the hm:// URLs that ids come from.
Document (Payload): the document read model.
ResourceMetadata: fetch only the metadata.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime