WAX Kit icon

WAX Kit

Interact with the WAX blockchain

Marketplace (AtomicMarket) → Buy NFT (Purchase Sale)

AI-generated

Summary

Buys an NFT listed on the AtomicMarket on the WAX blockchain by purchasing a sale by its Sale ID, paying the given price in the chosen token. The visible source is obfuscated and its resource handlers are not included, so the exact on-chain actions are not confirmed.

Inputs

  • endpoint (required) — WAX API endpoint. Options are Greymass (default), EOS Nation, EOSphere, Pink.gg, WAX Sweden, or Custom.
  • customEndpoint — Custom API URL. Shown only when the endpoint is set to Custom.
  • saleId (required) — The unique ID of the sale listing to purchase.
  • price (required) — Amount of tokens to pay (default 1, e.g. 10.5).
  • symbol (required) — Currency symbol (default WAX).
  • precision (required) — Currency decimal precision (default 8).
  • settlementContract (required) — Token contract used for settlement (default eosio.token).
  • authorization — One or more authorizations for the transaction. Each has an actor account, a permission (active, owner or custom), and a custom permission name when custom is selected.

Output shape

One output item per input item. The item's json comes from the operation handler, which is not visible in the supplied source. A blockchain transaction result is likely but not confirmed.

The node requires the waxKitPrivateKeyApi credential and checks its license key against a remote license service before running. If 'Continue On Fail' is enabled, a failed item returns json with success:false, error and details instead of stopping the workflow. The price, symbol, precision and settlement contract must match the sale listing, or the purchase will likely fail.

Examples

Example 1: Buy a listed NFT for 10.5 WAX

Endpoint: Greymass; Sale ID: 123456789; Price: 10.5; Symbol: WAX; Precision: 8; Settlement Contract: eosio.token; Authorization: actor = your account, permission = active.

Links

Discussion