AdjustCurrencyLimits
Adjusts the transaction limit and daily limit for a controllable currency. Only the currency issuer can adjust these limits.
Request
POST /nxt?requestType=adjustCurrencyLimits
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
secretPhrase | string | Currency issuer's secret passphrase | Yes |
currency | long | Currency ID | Yes |
transactionLimitQNT | long | New per-transaction transfer limit | Yes |
dailyLimitQNT | long | New daily transfer limit | Yes |
Constraints
- The currency must be of type
CONTROLLABLE(bitmask 32) - Only the currency issuer can adjust limits
transactionLimitQNTmust not exceed current supplydailyLimitQNTmust not exceed current supplydailyLimitQNTmust be >=transactionLimitQNT
Response
{
"transaction": "1234567890123456789",
"fullHash": "abc123...",
"errorCode": 0,
"errorDescription": ""
}
Error Handling
| Error | Condition |
|---|---|
CURRENCY_NOT_LIMITED | Currency is not of type CONTROLLABLE |
NOT_CURRENCY_ISSUER | Sender is not the currency issuer |
Example
curl -X POST http://localhost:22024/nxt \
-d "requestType=adjustCurrencyLimits" \
-d "secretPhrase=your_phrase" \
-d "currency=987654321" \
-d "transactionLimitQNT=5000000000" \
-d "dailyLimitQNT=10000000000"