Methods
(inner) fetch(publicKey, withAccountDataopt, paginationopt)
Fetches a Post.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
publicKey | String | The public key of the Post. | ||
withAccountData | Boolean | <optional> | false | Fetch full on-chain Post account. |
pagination | Object | <optional> | {limit, offset, sort} | Pagination options. |
- Source
Example
const post = await NinaClient.Post.fetch("K8XJr7LHWJeJJARTvnsFZViqxBzyDSjsfpS6iBuWhrV");
(inner) fetchAll(paginationopt, withAccountDataopt)
Fetches all Posts.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
pagination | Object | <optional> | {limit: 20, offset: 0, sort: 'desc'} | Pagination options. |
withAccountData | Boolean | <optional> | false | Fetch full on-chain Post accounts. |
- Source
Example
const posts = await NinaClient.Post.fetchAll();