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.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
publicKeyOrHandle | String | |||
withAccountData | Boolean | <optional> | false | Include full on-chain accounts (Release, Hub, Post, Exchange). |
- Source
const account = await NinaClient.Account.fetch("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");
(inner) fetchAll(paginationopt)
Fetches all accounts.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
pagination | Object | <optional> | {limit: 20, offset: 0, sort: 'desc'} | Pagination options. |
- Source
const accounts = await NinaClient.Account.fetchAll();
(inner) fetchCollected(publicKey, withAccountDataopt, paginationopt)
Fetches the Releases collected by an Account.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
publicKey | String | |||
withAccountData | Boolean | <optional> | false | Include full on-chain Release accounts. |
pagination | Object | <optional> | {limit, offset, sort} | Pagination options. |
- Source
const collection = await NinaClient.Account.fetchCollected("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");
(inner) fetchExchanges(publicKey, withAccountDataopt, paginationopt)
Fetches the open, cancelled and completed Exchanges for an Account.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
publicKey | String | |||
withAccountData | Boolean | <optional> | false | Include full on-chain Exchange accounts. |
pagination | Object | <optional> | {limit, offset, sort} | Pagination options. |
- Source
const exchanges = await NinaClient.Account.fetchExchanges("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");
(inner) fetchHubs(publicKey, withAccountData, paginationopt)
Fetches the Hubs that an Account is a collaborator on.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
publicKey | String | |||
withAccountData | Boolean | Include full on-chain Hub accounts. | ||
pagination | Object | <optional> | {limit, offset, sort} | Pagination options. |
- Source
const hubs = await NinaClient.Account.fetchHubs("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ";
(inner) fetchPosts(publicKey, withAccountDataopt, paginationopt)
Fetches the Posts published by an Account.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
publicKey | String | |||
withAccountData | Boolean | <optional> | false | Include full on-chain Post accounts. |
pagination | Object | <optional> | {limit, offset, sort} | Pagination options. |
- Source
const posts = await NinaClient.Account.fetchPosts("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");
(inner) fetchPublished(publicKey, withAccountDataopt, paginationopt)
Fetches the Releases that an Account has published.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
publicKey | String | |||
withAccountData | Boolean | <optional> | false | Include full on-chain Release accounts. |
pagination | Object | <optional> | {limit, offset, sort} | Pagination options. |
- Source
const published = await NinaClient.Account.fetchPublished("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");
(inner) fetchRevenueShares(publicKey, withAccountDataopt, paginationopt)
Fetches the Releases that an Account has Revenue Share on.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
publicKey | String | |||
withAccountData | Boolean | <optional> | false | Include full on-chain Release accounts. |
pagination | Object | <optional> | {limit, offset, sort} | Pagination options. |
- Source
const revenueShares = await NinaClient.Account.fetchRevenueShares("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");
(inner) fetchSubscriptions(publicKey, withAccountDataopt, paginationopt)
Fetches the Subcriptions for an Account.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
publicKey | String | |||
withAccountData | Boolean | <optional> | false | Include full on-chain Subscription accounts. |
pagination | Object | <optional> | {limit, offset, sort} | Pagination options. |
- Source
const subscriptions = await NinaClient.Account.fetchSubscriptions("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");
(inner) fetchVerifications(publicKey, paginationopt)
Fetches the Verifications for an Account.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
publicKey | String | |||
pagination | Object | <optional> | {limit, offset, sort} | Pagination options. |
- Source
const verifications = await NinaClient.Account.fetchVerifications("52xYtQzDaxeTGcz3WD37mAJgqVFAzR72EnGYaSHab5DQ");