WAX Smart Contract icon

WAX Smart Contract

Execute actions on WAX smart contracts

Execute Action

AI-generated

Summary

Execute a smart contract action

Inputs

  • contractName (required) — Name of the smart contract (e.g., eosio.token, atomicassets)
  • actionName (required) — Name of the contract action to execute
  • actionData (required) — JSON data to send with the action
  • authorization — Authorization required for the action
  • endpoint (required) — WAX blockchain API endpoint
  • memo — Optional memo for the transaction

Output shape

an array of execution result objects

Each result includes success, operation, contract, action, actionData, authorization list, memo, and transaction details (transaction_id or raw result). Errors are wrapped in an error object with message and details.

Examples

Example 1: Transfer tokens from an account

Contract Name: atomicassets, Action Name: transfer, Action Data: {"to":"gamer1","qty":1,"symbol":"EOS"}, Authorization: [{actor:"myaccount",permission:"active"}], Endpoint: https://wax.greymass.com, Memo: "Sale payout"

Example 2: Query a table of asset data

Operation: getTable, Table Name: assets, Scope: "myaccount", Lower Bound: "0", Upper Bound: "1000000", Limit: 50, Key Type: "i64", Auto Convert: true, Endpoint: https://wax.greymass.com

Discussion