Ana içeriğe geç

Add to Blacklist

Adds a user address to a token's blacklist.

Request

POST /v2/admin/kyc/tokens/{tokenID}/blacklist

Parameters

NameTypeInDescription
tokenIDstringpathRequired. The ID of the token
user_addressstringbodyRequired. The wallet address to blacklist

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication
Content-TypeRequired. Must be application/json

Request Body

{
"user_address": "0x1234567890123456789012345678901234567890"
}

Example

curl --request POST \
--url '{{baseUrl}}/v2/admin/kyc/tokens/67d8774e903bfcbe7eb5d93e/blacklist' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--header 'Content-Type: application/json' \
--data '{
"user_address": "0x1234567890123456789012345678901234567890"
}'

Response

A successful request returns an HTTP 201 status code with the action response.

{
"requires_approval": false,
"completed": true
}

Response Fields

FieldTypeDescription
requires_approvalbooleanWhether the action requires approval
completedbooleanWhether the action was completed immediately

Status Codes

Status CodeDescription
201Success - Address added to blacklist
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing authentication token
404Not Found - Token ID does not exist
409Conflict - Address already exists in blacklist
500Internal Server Error