Revoking Static Address

You can revoke a static wallet by providing the merchant API key and the address associated with the static wallet. This action will disable the static wallet and prevent any further transactions from being credited to the specified address.

To avoid reaching the limit on generating new static addresses, we recommend manually revoking addresses with no transactions. If you have too many static addresses without transactions, the system will prevent you from generating additional ones. Therefore, it's important to proactively revoke inactive addresses to ensure you can continue generating new ones.

post
Header parameters
merchant_api_keystringRequired

Your Merchant API Key for authentication and authorization.

Content-TypestringRequiredDefault: application/json
Body
addressstringOptional

The address of the static wallet you want to revoke.

Responses
200

Successful operation

application/json
post
import requests
import json

url = 'https://api.oxapay.com/v1/payment/static-address/revoke'

headers = {
    'merchant_api_key': 'YOUR_MERCHANT_API_KEY',
    'Content-Type': 'application/json'
}

data = {
    "address": "WALLET_ADDRESS_TO_REVOKE"
}

response = requests.post(url, data=json.dumps(data), headers=headers)
result = response.json()
print(result)
{
  "data": {},
  "message": "Operation completed successfully!",
  "error": {},
  "status": 200,
  "version": "1.0.0"
}

Last updated