Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

approveAgentEligibility

Tells a client whether user can sign approveAgent now. An account becomes eligible once it is activated by its first deposit, so call this before showing an "Enable trading" button in account setup.

POST/infotype approveAgentEligibility

Decide whether to show “Enable trading” or a deposit prompt before approveAgent.

Request body
typestringrequired

Must be `approveAgentEligibility`.

"approveAgentEligibility"
userstring · addressrequired

Account that will sign `approveAgent`.

Request example
curl -X POST https://rpc.txflow-testnet.xyz/info \
  -H "Content-Type: application/json" \
  -H "x-api-version: 2026-08-16" \
  -d '{
  "type": "approveAgentEligibility",
  "user": "0x95761f4d19B906B3B09da3EeE0BF30B337f4dB88"
}'
Try it
POST https://rpc.txflow-testnet.xyz/info
Response 200
codeinteger

`0` on success.

dataobject
eligibleboolean

`true` once the account is activated by its first deposit.

reasonstring

Machine-readable reason, present on some `eligible: false` responses.

successboolean

`false` on error, with `code` set and the text in `message` instead of `data`.

Response example
{
  "success": true,
  "code": 0,
  "data": {
    "eligible": true
  }
}

When eligible is false, prompt the user to deposit and poll this type every few seconds until it returns true, then request the approveAgent signature.

Next steps