NMKR Studio now allows also to send notifications to you for successful sales from your project.
The notifications can be sent via E-Mail or Webhook.
Please keep in mind that this feature is in beta phase now, if you experience any issues, please let us know.
Set up Notifications for your project
The Notifications can be enabled for every project separately. Go to the Notifications tab in the edit section of your project. Click "notifications".
Notifications via Email
Select E-Mail in the dropdown and insert your desired email address and activate the notifications. Click on "save".
Click "save changes" in the notifications tab to save the newly added notification. You will now receive notification E-Mails about successful sales of your projects NFTs.
As you may receive a lot of Emails, please whitelist the domain @nmkr.io with your E-mail provider.
Notifications via Webhook
A webhook is a callback function that uses HTTP to allow lightweight, event-driven communication between two application programming interfaces (APIs).
To enable Notifications via Webhook please select Webhook in the dropdown.
Insert your API Url Address and note the secret key.
Activate the notification and klick "OK".
Click "save changes" in the notifications tab to save the newly added notification.
Response classes
Webhooks will be called for every single sale in the project. The following shows the response classes that will be sent:
public enum NotificationEventTypes
{
transactionconfirmed,
transactionfinished,
transactioncanceled,
}
public class NotificationSaleNft
{
public string NftUid { get; set; }
public string NftName { get; set; }
public string NftNameInHex { get; set; }
public string AssetId { get; set; }
public string PolicyId { get; set; }
public long Count { get; set; }
public long Multiplier { get; set; }
}
public class NotificationSaleClass
{
[JsonConverter(typeof(StringEnumConverter))]
public NotificationEventTypes EventType { get; set; }
public string ProjectName { get; set; }
public string ProjectUid { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public TransactionTypes SaleType { get; set; }
public DateTime SaleDate { get; set; }
public long Price { get; set; }
public long? MintingCosts { get; set; }
public long? SendbackCosts { get; set; }
public long? NetworkFees { get; set; }
public long? NMKRRewards { get; set; }
public long? Discount { get; set; }
public NotificationSaleNft[] NotificationSaleNfts { get; set; }
public string TxHash { get; set; }
public string ReceiverAddress { get; set; }
public string OriginatorAddress { get; set; }
public string StakeAddressReceiver { get; set; }
public object DetailResults { get; set; }
}