Methods

(inner) fetch(publicKey, withAccountDataopt, paginationopt)

Fetches a Post.

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString

The public key of the Post.

withAccountDataBoolean<optional>
false

Fetch full on-chain Post account.

paginationObject<optional>
{limit, offset, sort}

Pagination options.

Example
const post = await NinaClient.Post.fetch("K8XJr7LHWJeJJARTvnsFZViqxBzyDSjsfpS6iBuWhrV");

(inner) fetchAll(paginationopt, withAccountDataopt)

Fetches all Posts.

Parameters:
NameTypeAttributesDefaultDescription
paginationObject<optional>
{limit: 20, offset: 0, sort: 'desc'}

Pagination options.

withAccountDataBoolean<optional>
false

Fetch full on-chain Post accounts.

Example
const posts = await NinaClient.Post.fetchAll();