Methods

(inner) fetch(publicKeyOrHandle, withAccountDataopt)

Fetches Releases Published, Releases Collected, Hubs collaborated on, Posts published, Exchanges made (open, completed, cancelled), and Releases with Revenue Share for an Account.

Parameters:
NameTypeAttributesDefaultDescription
publicKeyOrHandleString
withAccountDataBoolean<optional>
false

Include full on-chain accounts (Release, Hub, Post, Exchange).

Example
const account = await NinaClient.Account.fetch("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");

(inner) fetchAll(paginationopt)

Fetches all accounts.

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

Pagination options.

Example
const accounts = await NinaClient.Account.fetchAll();

(inner) fetchCollected(publicKey, withAccountDataopt, paginationopt)

Fetches the Releases collected by an Account.

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString
withAccountDataBoolean<optional>
false

Include full on-chain Release accounts.

paginationObject<optional>
{limit, offset, sort}

Pagination options.

Example
const collection = await NinaClient.Account.fetchCollected("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");

(inner) fetchExchanges(publicKey, withAccountDataopt, paginationopt)

Fetches the open, cancelled and completed Exchanges for an Account.

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString
withAccountDataBoolean<optional>
false

Include full on-chain Exchange accounts.

paginationObject<optional>
{limit, offset, sort}

Pagination options.

Example
const exchanges = await NinaClient.Account.fetchExchanges("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");

(inner) fetchHubs(publicKey, withAccountData, paginationopt)

Fetches the Hubs that an Account is a collaborator on.

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString
withAccountDataBoolean

Include full on-chain Hub accounts.

paginationObject<optional>
{limit, offset, sort}

Pagination options.

Example
const hubs = await NinaClient.Account.fetchHubs("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ";

(inner) fetchPosts(publicKey, withAccountDataopt, paginationopt)

Fetches the Posts published by an Account.

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString
withAccountDataBoolean<optional>
false

Include full on-chain Post accounts.

paginationObject<optional>
{limit, offset, sort}

Pagination options.

Example
const posts = await NinaClient.Account.fetchPosts("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");

(inner) fetchPublished(publicKey, withAccountDataopt, paginationopt)

Fetches the Releases that an Account has published.

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString
withAccountDataBoolean<optional>
false

Include full on-chain Release accounts.

paginationObject<optional>
{limit, offset, sort}

Pagination options.

Example
const published = await NinaClient.Account.fetchPublished("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");

(inner) fetchRevenueShares(publicKey, withAccountDataopt, paginationopt)

Fetches the Releases that an Account has Revenue Share on.

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString
withAccountDataBoolean<optional>
false

Include full on-chain Release accounts.

paginationObject<optional>
{limit, offset, sort}

Pagination options.

Example
const revenueShares = await NinaClient.Account.fetchRevenueShares("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");

(inner) fetchSubscriptions(publicKey, withAccountDataopt, paginationopt)

Fetches the Subcriptions for an Account.

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString
withAccountDataBoolean<optional>
false

Include full on-chain Subscription accounts.

paginationObject<optional>
{limit, offset, sort}

Pagination options.

Example
const subscriptions = await NinaClient.Account.fetchSubscriptions("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");

(inner) fetchVerifications(publicKey, paginationopt)

Fetches the Verifications for an Account.

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString
paginationObject<optional>
{limit, offset, sort}

Pagination options.

Example
const verifications = await NinaClient.Account.fetchVerifications("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");