OstiumBuilder Service
API ReferenceHTTP APIAuth

Auth: Verify Revoke

Verify revoke and delete the delegate wallet record.

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/verify-revoke

Verifies delegation removal and USDC allowance revocation, then deletes the delegate wallet record.

Headers

HeaderRequiredDescription
X-Trader-AddressYesTrader wallet address.
Content-TypeYesapplication/json or text/plain (JSON string).

Request Body

FieldTypeRequiredDescription
messagestringYesMessage returned by /v1/auth/revoke.
signaturestringYesSignature for the message.

Response Body

FieldTypeRequiredDescription
successbooleanYesWhether the action succeeded.
smartAccountAddressstringYesSmart account address.
delegatedTostringYesCurrent delegate address.
allowancestringYesUSDC allowance in base units.

Example

curl -X POST https://builder.ostiscan.xyz/v1/auth/verify-revoke \
  -H "Content-Type: application/json" \
  -H "X-Trader-Address: 0xYourWallet" \
  -d '{"message":"<message>","signature":"0x..."}'

Example Response

{
  "success": true,
  "smartAccountAddress": "0x...",
  "delegatedTo": "0x0000000000000000000000000000000000000000",
  "allowance": "0"
}

Notes

  • This endpoint requires delegation to be removed and allowance to be revoked on-chain.

Errors

See /docs/errors.

On this page