You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns PNG image file if logo exists, or 404 error if not found.
180
+
181
+
<asideclass="notice">
182
+
Logo URL can be constructed from token id: /api/v2/tokens/{token_id}/logo
183
+
</aside>
184
+
162
185
# Global Data
163
186
164
187
## Stats
@@ -1677,3 +1700,139 @@ Call action **cancelsell** or **cancelbuy** with parameters:
1677
1700
***executor** - order owner account name
1678
1701
***market_id** - id of the order related market
1679
1702
***order_id** - order id.
1703
+
1704
+
# CPU Payer (WAX only)
1705
+
1706
+
Alcor provides a free CPU payer service for WAX blockchain that covers transaction CPU costs for users interacting with Alcor contracts. This uses the `ONLY_BILL_FIRST_AUTHORIZER` mechanism.
1707
+
1708
+
<asideclass="notice">
1709
+
This service is only available on WAX blockchain.
1710
+
</aside>
1711
+
1712
+
## How it works
1713
+
1714
+
1. Client checks `/status` endpoint to see if service is available
1715
+
2. If available, client builds transaction with `liquid.alcor::noop` as first action
1716
+
3. Client signs the transaction (only their actions, noop has payer's auth)
1717
+
4. Client sends serialized transaction to `/cosign` endpoint
1718
+
5. Worker validates and cosigns for `liquid.alcor@bw`
1719
+
6. Client combines signatures and pushes to blockchain
1720
+
7. CPU cost is billed to `liquid.alcor` (first authorizer)
1721
+
1722
+
## Status
1723
+
1724
+
```shell
1725
+
curl -X POST https://wax.alcor.exchange/api/v2/cpu/status \
1726
+
-H "Content-Type: application/json"
1727
+
```
1728
+
1729
+
> The above command returns JSON structured like this:
1730
+
1731
+
```json
1732
+
{
1733
+
"available": true,
1734
+
"signing": true,
1735
+
"throttled": false,
1736
+
"cpu": {
1737
+
"used": 100000,
1738
+
"max": 400000,
1739
+
"percent": 25.0
1740
+
},
1741
+
"lastCheck": 1705123456789
1742
+
}
1743
+
```
1744
+
1745
+
Check if CPU payer service is available and signing.
0 commit comments