Created
December 24, 2021 02:33
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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