Skip to main content

StartBinder

Starts a binder for a specific beta chain with binding rules.

Request

POST /nxt?requestType=startBinder

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
secretPhrasestringSecret passphrase for accountYes
privateKeystringPrivate key for accountNo
publicKeystringPublic key for accountNo
betaChainstringBeta chain nameNo
minRateQNTPerFXTlongMinimum rate in QNT per FXTNo
totalFeesLimitFQTlongTotal fees limit in FQTNo
overpayFQTPerFXTlongOverpay per FXT in FQTNo
feeCalculatorNamestringFee calculator nameNo
filterstringFilter (repeatable)No
bindingRulesJSONstringBinding rules as JSON arrayNo

Response

{
"binder": {
"account": "1234567890123456789",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"betaChain": "SHAMWARI_TEST",
"minRateQNTPerFXT": "100000000000",
"totalFeesLimitFQT": "50000000000000",
"overpayFQTPerFXT": "10000000000",
"feeCalculatorName": "standard",
"rules": [],
"nextUpdateTime": 1700000000
},
"errorCode": 0,
"errorDescription": ""
}

Example

curl -X POST "http://localhost:22024/nxt?requestType=startBinder" \
-d "secretPhrase=your_secret_passphrase" \
-d "minRateQNTPerFXT=100000000000" \
-d "totalFeesLimitFQT=50000000000000" \
-d "overpayFQTPerFXT=10000000000"