Last updated
Last updated
GET
https://api.zks.app/:version/:network/contract-address
Returns the contracts being used for deposit, etc. In most time, the response won't be changed.
GET
https://api.zks.app/:version/:network/tokens
Returns all tokens which have been listed on ZKSwap.
Here's the schema of each token:
GET
https://api.zks.app/:version/:network/tokens/price
Returns all tokens' prices on ZKSwap.
GET
https://api.zks.app/:version/:network/pairs
Returns all pairs which have been added on ZKSwap.
GET
https://api.zks.app/:version/:network/pairs/price
Returns all pairs' prices on ZKSwap.
GET
https://api.zks.app/:version/:network/account/:address/balances
Returns the balances of an address. If the address never had a token/pair, it won't be listed. All the unit of asset is USD.
GET
https://api.zks.app/:version/:network/account/:address/info
Returns the id, nonce and pubKeyHash of the account. If the address never had any asset on ZKSwap, the id is 0.
GET
https://api.zks.app/:version/:network/account/:address/fee
All fees are in USD.
GET
https://api.zks.app/:version/:network/txs
Returns the list of transactions.
Each transaction contains the following fields:
GET
https://api.zks.app/:version/:network/tx/:tx_hash
Return the transaction data.
POST
https://api.zks.app/:network/tx
Submit the transaction to ZKSwap Layer-2. Returns the transaction hash if it's accepted.
Click to see how to make a transaction.