WAX Kit icon

WAX Kit

Interact with the WAX blockchain

Alcor Exchange (DEX) → Create Order (Limit)

AI-generated

Summary

Creates a limit order on the Alcor Exchange DEX on the WAX blockchain, selling a specified amount of one token at a given price against a target token. The actual execution logic is in an unreadable obfuscated resources module not included in the source pack, so the details below come from the declared properties.

Inputs

  • endpoint (required) — WAX API endpoint (Greymass default, EOS Nation, EOSphere, Pink.gg, WAX Sweden, or Custom).
  • customEndpoint — Custom API URL; shown only when the endpoint is set to Custom.
  • tokenContract (required) — Contract of the token being sent (default eosio.token).
  • amount (required) — Amount of the token to send (default 1).
  • symbol (required) — Symbol of the token being sent (default WAX).
  • precision (required) — Decimal precision of the sent token (default 8).
  • price (required) — Price per unit in the target currency, as a string such as "0.50000000".
  • targetSymbol (required) — Symbol of the token to trade against (default WAX).
  • targetContract (required) — Contract of the target token (default eosio.token).
  • authorization — One or more actor and permission pairs (active, owner or custom) that authorize the transaction.

Output shape

One output item per input item, containing the result of the order transaction. The exact fields can't be confirmed from the available source.

The node requires WAX Kit private key credentials (waxKitPrivateKeyApi) and a license check against a license server. With Continue On Fail enabled, a failed item returns json with success:false, error and details. Otherwise the error is thrown. The Alcor resource value shown in the displayOptions is 'alcor', and this operation is 'createOrder'.

Examples

Example 1: Place a limit order selling 100 WAX for a token at a fixed price.

tokenContract=eosio.token, symbol=WAX, precision=8, amount=100, targetSymbol and targetContract set to the desired token, price=0.50000000, authorization actor=youraccount with permission active.

Example 2: Run the order through a custom RPC node.

endpoint=Custom, customEndpoint=https://your-node.example, plus the token, price and authorization fields.

Links

Discussion