Skip to content

Build the MsgTransferTokens that purchases one unit of a given product. Uses precalculateBalancesFromApproval so the chain figures out the mint balance from…

buildPurchaseProductMsg(creator, collectionId, product): PurchaseProductMsg

Defined in: packages/bitbadgesjs-sdk/src/core/products.ts:349

Build the MsgTransferTokens that purchases one unit of a given product. Uses precalculateBalancesFromApproval so the chain figures out the mint balance from the approval definition. Routes to the burn address if the product is burnOnPurchase (consumable goods), else to creator.

Parameters

creator

string

collectionId

string

product

ExtractedProduct

Returns

PurchaseProductMsg

Edit this page on GitHub