Skip to main content

Set a whitelist addresses

Controllers are blockchain-level entities that manage access rights to assets, allowing you to restrict who can buy, sell, or trade them.

This endpoint updates the whitelist addresses of a specific controller. It can add new addresses to the whitelist or update the limit for existing addresses. The operation modifies the blockchain-level controller, ensuring that access permissions are applied according to the updated whitelist.

📘 Learn more about controllers.

Request Endpoint:​

POST /odata/v1.0/Controllers({key})/SetWhitelistAddresses

Parameters​

NameTypeDescriptionMandatory
keystring($uuid)The controller ID✅

Request Body:​

application/json — The object containing whitelist addresses to create or update.

Mandatory fields in body:

  • whitelistAddresses — array of addresses to add/update
  • Each item in whitelistAddresses must have:
  • Address (string) — the blockchain address
  • Limit (string or number) — the allowed limit for this address

Example Request Body:​

In EVM-compatible networks (e.g., Sparknet, Ethereum, and Polygon), the "Address" is 42 characters long. In non-EVM networks, the address length may differ. For example, on Internet Computer, it is 63 characters.

{
"whitelistAddresses": [
{
"Address": "0x128363b39f249b615d88b9dd2115b134a3b042be",
"Limit": "10"
},
{
"Address": "0x76f8b4f93cbc0468a35b258dc21331c409cc76a3",
"Limit": "20000"
}
]
}

Parameters Table (Body)​

ParameterTypeDescription
whitelistAddressesarrayList of whitelist addresses to create or update
whitelistAddresses[].AddressstringBlockchain address to whitelist
whitelistAddresses[].Limitstring / numberLimit for the address in transactions

Response Body Example:​

application/json

{
"Id": "C0D34D73-6FD3-40F2-A7E1-08D9412448F7",
"State": "3",
"BlockchainTransactionId": "0x748ac47e7226cae0e4e13373375f33ab9e4d43ef29d85d233162a7e7e913703b",
"Type": "ActivateAsset",
"OnCreated": "2025-10-10T09:03:11.922Z",
"OnUpdated": "2025-10-10T09:03:11.922Z",
"OnSubmitted": "2025-10-10T09:03:11.922Z",
"OnCommitted": "2025-10-10T09:03:11.922Z",
"OnConfirmed": "2025-10-10T09:03:11.922Z",
"OnRevokedByBlockchain": "2025-10-10T09:03:11.922Z",
"OnRevokedByUser": "2025-10-10T09:03:11.922Z",
"OnRevokedByTxServer": "2025-10-10T09:03:11.922Z",
"SignedBy": "string",
"CreatedBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"GasPrice": "string",
"GasUsed": "string",
"DataAsJson": "string",
"SigningParametersAsJson": "string"
}

Response Parameters Table​

ParameterTypeDescription
IdstringThe unique identifier of the transaction
StatestringCurrent state of the transaction
BlockchainTransactionIdstringID of the transaction on the blockchain
TypestringType of transaction
OnCreatedstring (datetime)Timestamp when the transaction was created
OnUpdatedstring (datetime)Timestamp when the transaction was last updated
OnSubmittedstring (datetime)Timestamp when the transaction was submitted
OnCommittedstring (datetime)Timestamp when the transaction was committed to the blockchain
OnConfirmedstring (datetime)Timestamp when the transaction was confirmed on the blockchain
OnRevokedByBlockchainstring (datetime)Timestamp if transaction was revoked by blockchain
OnRevokedByUserstring (datetime)Timestamp if transaction was revoked by user
OnRevokedByTxServerstring (datetime)Timestamp if transaction was revoked by TxServer
SignedBystringAddress that signed the transaction
CreatedBystringID of the creator of the transaction
GasPricestringGas price used for the transaction
GasUsedstringGas used for the transaction
DataAsJsonstringTransaction data in JSON format
SigningParametersAsJsonstringSigning parameters in JSON format

Responses​

CodeDescription
202Accepted
400Bad Request
401Unauthorized