OstiumBuilder Service
API ReferenceHTTP APIAuth

Auth: Revoke

Get revoke transaction and message.

Alpha Version

The Ostium Builder Service is in Alpha. API endpoints, specifications, and builder URLs may change without notice. Use with caution in production environments.

POST /v1/auth/revoke

Returns a remove-delegate transaction and a message to sign for revoke verification.

Headers

HeaderRequiredDescription
X-Trader-AddressYesTrader wallet address.

Response Body

FieldTypeRequiredDescription
removeDelegateTxUnsignedTransactionYesTransaction to remove delegation.
smartAccountAddressstringYesSmart account address.
messagestringYesMessage to sign for /v1/auth/verify-revoke.
noncestringYesNonce embedded in the message.
expiresAtstringYesISO expiry time.

UnsignedTransaction

FieldTypeRequiredDescription
tostringYesContract address.
datastringYesABI-encoded calldata.
valuestringYesETH value (usually "0").
fromstringNoTrader address.

Example

curl -X POST https://builder.ostiscan.xyz/v1/auth/revoke \
  -H "X-Trader-Address: 0xYourWallet"

Example Response

{
  "removeDelegateTx": { "to": "0x...", "data": "0x...", "value": "0", "from": "0x..." },
  "smartAccountAddress": "0x...",
  "message": "<signable message returned by server>",
  "nonce": "0x...",
  "expiresAt": "2026-02-05T12:34:56.789Z"
}

Notes

  • Revoke delegation and USDC allowance on-chain before calling /v1/auth/verify-revoke.

Errors

See /docs/errors.

On this page