-
Notifications
You must be signed in to change notification settings - Fork 2
Pools
Waves Rider edited this page Aug 28, 2023
·
6 revisions
Key: %s__shutdown
Type: Boolean
curl -X 'POST' \
'https://nodes.wavesnodes.com/utils/script/evaluate/3PCuHsTU58WKhCqotbcSwABvdPzqqVAbbTv?trace=false' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"expr": "getPoolStatusREADONLY(\"3PFzaH2ghpwANHFgjeva83N1yxzErELx2eh\")"
}'
Key: %d%d%s__<internalAmountAsset>__<internalPriceAsset>__config
Type: String
Index: 2
Status | Description |
---|---|
0 | Active, pool without restrictions |
1 | Put disabled, pool with put operation disabled |
2 | Matcher disabled, pool with matcher operations disabled |
3 | Shutdown, pool operations halted |
No key means operations are enabled
curl -X 'POST' \
'https://nodes.wavesnodes.com/utils/script/evaluate/3PCuHsTU58WKhCqotbcSwABvdPzqqVAbbTv?trace=false' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"expr": "isPoolOneTokenOperationsDisabledREADONLY(\"3PFzaH2ghpwANHFgjeva83N1yxzErELx2eh\")"
}'
Key: %s__oneTokenOperationsDisabled
Type: Boolean
Key: %d%d%s__<amountAssetInternal>__<priceAssetInternal>__oneTokenOperationsDisabled
Type: Boolean
No key means operations are enabled
curl -X 'POST' \
'https://nodes.wavesnodes.com/utils/script/evaluate/3PCuHsTU58WKhCqotbcSwABvdPzqqVAbbTv?trace=false' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"expr": "isPoolSwapDisabledREADONLY(\"3PFzaH2ghpwANHFgjeva83N1yxzErELx2eh\")"
}'
Key: %s__swapDisabled
Type: Boolean
Key: %d%d%s__<amountAssetInternal>__<priceAssetInternal>__swapDisabled
Type: Boolean