AgentsCoin icon

AgentsCoin

Give your workflow an AgentsCoin wallet: balance, send, create + trade tokens

Swap

AI-generated

Summary

Swaps between AGENT and the specified token through the AgentsCoin router. Choose Buy or Sell, provide the token contract address and amount, and run the operation with the configured wallet credentials.

Inputs

  • Action — Select Buy (default) to spend the specified amount of AGENT on the token, or Sell to trade the specified amount of token for AGENT.
  • Token (required) — Token contract address to swap.
  • Amount (required) — Amount to swap. Buy parses this as AGENT; Sell parses it as the token amount.

Output shape

A list of one item per input item, each containing a transaction hash and explorer URL.

The workflow wallet must have enough AGENT to buy or enough tokens to sell. Selling first approves the router to spend the token, with a maximum allowance, then submits the swap. Both swap calls set minimum output to zero; the operation waits for transactions to confirm before returning.

Links

Discussion