WAX Unity Web3 Suite
AtomicAssets
AtomicAssets
  • Getting Started
  • Installation
    • WebGL Installation
  • Examples
    • Unity Example
    • Filtered assets avilable for trading
    • AccountExample
    • BurnsExample
    • CollectionsExample
    • OffersExample
    • SchemasExample
    • TemplatesExample
    • TransfersExample
  • API Docs
    • AtomicAssetsApiFactory
    • Accounts
      • AccountsApi
        • AccountCollectionDto
          • DataDto
            • SchemasDto
            • TemplatesDto
        • AccountDto
          • DataDto
            • CollectionsDto
            • TemplatesDto
        • AccountsDto
          • DataDto
      • AccountsUriParameterBuilder
    • Assets
      • AssetsApi
        • AssetDto
          • DataDto
            • BackedTokensDto
            • CollectionDto
            • FormatDto
            • SchemaDto
            • ImmutableDataDto
            • TemplateDto
        • AssetsDto
          • DataDto
            • BackedTokensDto
            • CollectionDto
            • SchemaDto
              • FormatDto
            • TemplateDto
              • ImmutableDataDto
      • AssetsUriParameterBuilder
    • Burns
      • BurnsApi
        • BurnDto
          • DataDto
            • CollectionsDto
            • TemplatesDto
        • BurnsDto
          • DataDto
      • BurnsUriParameterBuilder
    • Collections
      • CollectionsApi
        • CollectionDto
          • DataDto
        • CollectionsDto
          • DataDto
      • CollectionsUriParameterBuilder
    • Config
      • ConfigApi
        • ConfigDto
    • Offers
      • OffersApi
        • OfferDto
          • DataDto
            • AssetDto
              • BackedTokensDto
              • CollectionDto
              • SchemaDto
                • FormatDto
              • TemplateDto
                • ImmutableDataDto
        • OffersDto
          • DataDto
            • AssetDto
              • BackedTokensDto
              • CollectionDto
              • SchemaDto
                • FormatDto
              • TemplateDto
                • ImmutableDataDto
      • OffersUriParameterBuilder
    • Schemas
      • SchemasApi
        • SchemaDto
          • DataDto
            • CollectionDto
            • FormatDto
        • SchemasDto
          • DataDto
            • CollectionDto
            • FormatDto
      • SchemasUriParameterBuilder
    • Templates
      • TemplatesApi
        • TemplateDto
          • DataDto
            • CollectionDto
            • SchemaDto
              • FormatDto
        • TemplatesDto
          • DataDto
            • CollectionDto
            • SchemaDto
              • FormatDto
      • TemplatesUriParameterBuilder
    • Transfers
      • TransfersApi
        • TransfersDto
          • DataDto
            • AssetDto
              • BackedTokensDto
              • CollectionDto
              • SchemaDto
                • FormatDto
              • TemplateDto
                • ImmutableDataDto
      • TransfersUriParameterBuilder
    • StatsDto
      • DataDto
    • LogsDto
      • DataDto
    • Core
      • HttpRequestBuilder
      • HttpResponseMessageExtension
Powered by GitBook
On this page
  1. Examples

BurnsExample

Example showing how to query the Burns Endpoint

public async Task BurnsExample()
{
    // Get all burns by a specific account
    var burns = await AtomicAssetsApiFactory.Version1.BurnsApi.Account("someaccount");

    Console.WriteLine(burns.Data.Assets);

    // Print data about the collections the burned Assets belonged to
    foreach (var collection in burns.Data.Collections)
    {
        Console.WriteLine(collection.Assets);
        Console.WriteLine(collection.CollectionName);
    }

    // Print data about the templates the burned Assets belonged to
    foreach (var template in burns.Data.Templates)
    {
        Console.WriteLine(template.Assets);
        Console.WriteLine(template.CollectionName);
        Console.WriteLine(template.TemplateId);
    }
}
PreviousAccountExampleNextCollectionsExample

Last updated 2 years ago

Page cover image