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

revokeBuilderFee

Removes the signing user's approval for one builder. The action fails with Builder not approved if no active approval exists.

POST/exchangetype revokeBuilderFee

Withdraw a user’s fee approval for one builder.Direct EIP-712, signed by the account key

Action fields
apiVersioninteger · uint32required

TxFlow signing API version.

builderstring · addressrequired

Builder wallet whose approval is removed.

chainIdinteger · uint32required

TxFlow chain ID.

nonceinteger · uint64required

Fresh millisecond timestamp. Direct EIP-712 actions carry the nonce inside the action as well as in the outer payload; the two must match.

txflowNetworkstringrequired

TxFlow network name used by the EIP-712 action and domain.

typestringrequired

Must be `revokeBuilderFee`.

"revokeBuilderFee"
Request example
curl -X POST https://rpc.txflow-testnet.xyz/exchange \
  -H "Content-Type: application/json" \
  -H "x-api-version: 2026-08-16" \
  -d '{
  "action": {
    "type": "revokeBuilderFee",
    "txflowNetwork": "TxFlow-Testnet",
    "chainId": 2511,
    "apiVersion": 1,
    "builder": "0x2e4D75df2eE2653EA7a113cC1Fa36D45E923061F",
    "nonce": 1757992743994
  },
  "signature": {
    "r": "0x<r>",
    "s": "0x<s>",
    "v": 27
  },
  "nonce": 1757992743994,
  "vaultAddress": null,
  "signatureChainId": null
}'
Try it
testnet · no account yet
Generates a throwaway key in your browser, claims testnet USDC and authorizes an agent key. The account is kept while you browse the docs and lost on reload.
Response · RevokeBuilderFee 200
codeinteger

`0` on success.

dataobject
dataobject
typestring

The action's internal name, which does not always match the request `type`.

"RevokeBuilderFee"
statusstring

A rejected request returns `err` with a non-zero `code` and the reason in `message` (or `response`).

"ok"
Response example
{
  "status": "ok",
  "code": 0,
  "data": {
    "type": "RevokeBuilderFee",
    "data": {
      "statuses": [
        "success"
      ]
    }
  }
}

Signing

Like approveBuilderFee, this action is signed directly by the account key. Its EIP-712 primary type is distinct from the approval type:

RevokeBuilderFee(string txflowNetwork,uint32 chainId,uint32 apiVersion,address builder,uint64 nonce)
{
  "type": "revokeBuilderFee",
  "txflowNetwork": "TxFlow-Testnet",
  "chainId": 2511,
  "apiVersion": 1,
  "builder": "0x2e4D75df2eE2653EA7a113cC1Fa36D45E923061F",
  "nonce": 1757992743994
}

The replay nonce is the body's own nonce. When the outer payload carries signatureChainId, it overrides only domain.chainId; the business chainId inside the signed struct remains unchanged. See Signing.

Next steps

After propagation, the approval's maxFeeRate is 0 and its status is REVOKED.