Actions46
- Account Actions
- Alcor Exchange (DEX) Actions
- Asset Actions
- Governance Actions
- History Actions
- Marketplace (AtomicMarket) Actions
- Nefty (Blends & Packs) Actions
- Smart Contract Action Actions
- Token Actions
Asset → Pack: Add Roll
AI-generatedSummary
Adds a roll (a set of weighted outcomes) to an already announced AtomicAssets/AtomicPacks pack on the WAX blockchain, for a given collection and pack ID.
Inputs
- endpoint (required) — WAX API endpoint to use. Choose a preset (Greymass is the default and recommended one, plus EOS Nation, EOSphere, Pink.gg and WAX Sweden) or Custom.
- customEndpoint — Custom WAX API URL. Shown only when Endpoint is Custom.
- collectionName (required) — Name of the collection that owns the pack (12 characters max).
- packId (required) — Unique ID of the announced pack that the roll is added to.
- rollData — JSON array of outcomes, e.g. [{"template_id":123,"probability":1000,"meta_data":[]}]. It defaults to an empty array.
Output shape
One output item per input item. The exact fields are not visible in the provided source, which contains only the entry module and license helper. The resource handler that builds the result is not included.
The node needs WAX Kit private key credentials and a valid license, which is checked against Lemon Squeezy and cached. If 'Continue On Fail' is enabled, a failed item returns {success:false, error, details} instead of stopping the workflow. The action is a blockchain transaction signed with the credential's key, so the account needs authority over the collection.
Examples
Example 1: Add a roll with two weighted outcomes to a pack that has already been announced.
Endpoint: Greymass; Collection Name: mycollection1; Pack ID: 42; Roll Data: [{"template_id":101,"probability":900,"meta_data":[]},{"template_id":102,"probability":100,"meta_data":[]}]