Methods

(inner) addRoyaltyRecipient(client, release, updateData, releasePublicKey) → {String}

Parameters:
NameTypeDescription
clientObject

the NinaClient

releaseString

the release

updateDataObject

the data to update the release with

releasePublicKeyString

the Public Key of the release

Returns:

The Public Key of the recipient

Type: 
String
Example
addRoyaltyRecipient(client, recipient, updateData, releasePublicKey)

(inner) closeRelease(client, releasePublicKey) → {Object}

Parameters:
NameTypeDescription
clientObject

the NinaClient

releasePublicKeyString

Public Key of the release.

Returns:

The closed Release.

Type: 
Object
Example
await closeRelease(ninaClient, 'releasePublicKey');

(inner) collectRoyaltyForRelease(client, recipient, releasePublicKey, state) → {Object}

Parameters:
NameTypeDescription
clientObject

the NinaClient

recipientString

Public Key of the recipient.

releasePublicKeyString

Public Key of the release.

stateObject

the NinaClient state.

Returns:

the Release.

Type: 
Object
Example
collectRoyaltyForRelease(client, recipient, releasePublicKey, state)

(inner) fetch(publicKey, withAccountDataopt)

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString

The public key of the release.

withAccountDataBoolean<optional>
false

Fetch full on-chain Release account.

Example
const release = await NinaClient.Release.fetch("4dS4v5dGrUwEZmjCFu56qgyAmRfaPmns9PveWAw61rEQ");

(inner) fetchAll Fetches all releases.(paginationopt, withAccountDataopt)

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

Pagination options.

withAccountDataBoolean<optional>
false

Fetch full on-chain Release accounts.

Example
const releases = await NinaClient.Release.fetchAll();

(inner) fetchCollectors(publicKey, withCollectionopt, paginationopt)

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString

The public key of the release.

withCollectionBoolean<optional>
false

Fetch collectors collections.

paginationObject<optional>
{limit, offset, sort}

Pagination options.

Example
const collectors = await NinaClient.Release.fetchCollectors("4dS4v5dGrUwEZmjCFu56qgyAmRfaPmns9PveWAw61rEQ");

(inner) fetchExchanges(publicKey, withAccountDataopt, paginationopt)

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString

The public key of the release.

withAccountDataBoolean<optional>
false

Fetch full on-chain Exchange accounts.

paginationObject<optional>
{limit, offset, sort}

Pagination options.

Example
const exchanges = await NinaClient.Release.fetchExchanges("4dS4v5dGrUwEZmjCFu56qgyAmRfaPmns9PveWAw61rEQ");

(inner) fetchHubs(publicKey, withAccountDataopt, paginationopt)

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString

The public key of the release.

withAccountDataBoolean<optional>
false

Fetch full on-chain Hub and HubRelease accounts.

paginationObject<optional>
{limit, offset, sort}

Pagination options.

Example
const hubs = await NinaClient.Release.fetchHubs("4dS4v5dGrUwEZmjCFu56qgyAmRfaPmns9PveWAw61rEQ");

(inner) fetchRevenueShareRecipients(publicKey, withAccountDataopt, paginationopt)

Parameters:
NameTypeAttributesDefaultDescription
publicKeyString

The public key of the release.

withAccountDataBoolean<optional>
false

Fetch full on-chain Release accounts.

paginationObject<optional>
{limit, offset, sort}

Pagination options.

Example
const revenueShareRecipients = await NinaClient.Release.fetchRevenueShareRecipients("4dS4v5dGrUwEZmjCFu56qgyAmRfaPmns9PveWAw61rEQ");

(inner) initializeReleaseAndMint - Initializes a release and mints the first edition(client, hubPubkey) → {Object}

Parameters:
NameTypeDescription
clientObject

the Nina Client

hubPubkey*

the hub pubkey

Returns:
  • the release, release bump, and release mint
Type: 
Object
Example
await initializeReleaseAndMint(client, hubPubkey);

(inner) purchaseViaHub(client, releasePublicKey, hubPublicKey) → {String}

Parameters:
NameTypeDescription
clientObject

NinaClient instance.

releasePublicKeyString

Public Key of the release.

hubPublicKeyString

Public Key of the hub.

Returns:

the transaction ID.

Type: 
String
Example
const transactionId = await NinaClient.Release.purchaseViaHub(client, "4dS4v5dGrUwEZmjCFu56qgyAmRfaPmns9PveWAw61rEQ", "4dS4v5dGrUwEZmjCFu56qgyAmRfaPmns9PveWAw61rEQ");

(inner) releaseInit(client, retailPrice, amount, resalePercentage, metadataUri, artist, title, catalogNumber, metadataUri, isUsdc, release, releaseBump, releaseMint, isOpen) → {Object}

Parameters:
NameTypeDescription
clientObject

the NinaClient

retailPriceNumber

Retail price of the release.

amountNumber

Amount of the release.

resalePercentageNumber

Resale percentage of the release.

metadataUriString

Metadata URI of the release.

artistString

Artist of the release.

titleString

Title of the release.

catalogNumberString

Catalog number of the release.

metadataUriString

Metadata URI of the release.

isUsdcBoolean

Is the release priced in USDC or not.

releaseString

Release of the release.

releaseBumpString

Release bump of the release.

releaseMintString

Release mint of the release.

isOpenBoolean

Is the release open or not.

Returns:

The created Release.

Type: 
Object

(inner) releaseInitViaHub(client, hubPublicKey, retailPrice, amount, resalePercentage, isUsdc, metadataUri, artist, title, catalogNumber, release, releaseBump, releaseMint, isOpen) → {Object}

Parameters:
NameTypeDescription
clientObject

the NinaClient

hubPublicKeyString

Public Key of the hub.

retailPriceNumber

Retail price of the release.

amountNumber

Amount of the release.

resalePercentageNumber

Resale percentage of the release.

isUsdcBoolean

Is the payment in USDC or SOL.

metadataUriString

Metadata URI of the release.

artistString

Artist of the release.

titleString

Title of the release.

catalogNumberString

Catalog number of the release.

releaseString

Release of the release.

releaseBumpString

Release bump of the release.

releaseMintString

Release mint of the release.

isOpenBoolean

Is the release open or not.

Returns:

The release.

Type: 
Object

(inner) releasePurchase(client, releasePublicKey, hubPublicKey) → {String}

Parameters:
NameTypeDescription
clientObject

NinaClient instance.

releasePublicKeyString

Public Key of the release.

hubPublicKeyString

Public Key of the hub.

Returns:

Transaction Id.

Type: 
String