RPC: Resource
Fetches a resource by parsed id and returns whichever state it is in: document, comment, redirect, not found, tombstone, or error.
Fetching schema…

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

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Attributes
name
RPC: Resource
summary
Fetches a resource by parsed id and returns whichever state it is in: document, comment, redirect, not found, tombstone, or error.
Schema definitionThe schema this document defines, for other documents to use.
Fetching schema…