Developer Queries

This section provides concise, actionable answers to the most frequently asked questions from developers.

  • "How can I fetch my wallet's portfolio value?"

    • Use the /agent endpoint with a query like:

      {
        "question": "What is the detailed portfolio value for wallet XYZ123?"
      }
  • "Can I list and cancel NFTs for sale?"

    • Yes, the /agent endpoint supports both actions. Use specific commands:

      • Listing: "List this NFT for sale at 5 SOL."

      • Canceling: "Cancel the sale of NFT ID abc123."

  • "How do I ensure my commands work properly?"

    • Always use clear and specific queries. Include details like wallet addresses, token IDs, or desired actions to avoid ambiguity.

  • "Is it possible to swap tokens using this API?"

    • Absolutely! Use a command like:

      {
        "question": "Swap 10 SOL for USDC."
      }
  • "What happens if I send an invalid request?"

    • The API responds with an error message detailing what went wrong. Example:

      {
        "status": "error",
        "message": "Invalid wallet address format."
      }

Last updated