Skip to content

Instantly share code, notes, and snippets.

@AdonousTech
Created December 24, 2021 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdonousTech/da9b1b2fff985f5585af63ce3e601dde to your computer and use it in GitHub Desktop.
Save AdonousTech/da9b1b2fff985f5585af63ce3e601dde to your computer and use it in GitHub Desktop.
Using @desoscript to construct a request for a single post from a DeSo Node
/**
See @adonoustech/desoscript-core
*/
// construct interface request
const req: IDesoLayerSinglePostRequest = {
userSub: null, // optional internal Id for user
instruction: CanonicalCLIInstructions.SINGLE_POST, //enum
payload: { // IGetSinglePostRequestPayload
AddGlobalFeedBool: false,
CommentLimit: 0,
CommentOffset: 0,
FetchParents: true,
PostHashHex: postHashHex,
ReaderPublicKeyBase58Check: // add-pub-key-here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment