Skip to main content

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

NameTypeDescriptionRequired
secretPhrasestringCurrency issuer's secret passphraseYes
currencylongCurrency IDYes
transactionLimitQNTlongNew per-transaction transfer limitYes
dailyLimitQNTlongNew daily transfer limitYes

Constraints

  • The currency must be of type CONTROLLABLE (bitmask 32)
  • Only the currency issuer can adjust limits
  • transactionLimitQNT must not exceed current supply
  • dailyLimitQNT must not exceed current supply
  • dailyLimitQNT must be >= transactionLimitQNT

Response

{
"transaction": "1234567890123456789",
"fullHash": "abc123...",
"errorCode": 0,
"errorDescription": ""
}

Error Handling

ErrorCondition
CURRENCY_NOT_LIMITEDCurrency is not of type CONTROLLABLE
NOT_CURRENCY_ISSUERSender 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"