
Hands-on with Sera Protocol's GraphQL API!
Introduction In the previous article, we covered the overview of Sera Protocol . In this article, I will explain how to use Sera Protocol's GraphQL API! Let's Use the API Right Away! With Sera Protocol's GraphQL, you can retrieve the following five types of data: Market Order Depths Charts Tokens Let's call each of them! Market To get information about the market 0xd99802ee8f16d6ff929e27546de15d03fdcce4bd , run the following curl command: curl -s -X POST -H "Content-Type: application/json" -d '{"query": "{ market(id: "0xd99802ee8f16d6ff929e27546de15d03fdcce4bd") { id quoteToken { symbol decimals } baseToken { symbol decimals } quoteUnit makerFee takerFee minPrice tickSpace latestPrice } }"}' https://api.goldsky.com/api/public/project_cmicv6kkbhyto01u3agb155hg/subgraphs/sera-pro/1.0.9/gn | jq If you get a result like this, you're good to go! { "data" : { "market" : { "id" : "0xd99802ee8f16d6ff929e27546de15d03fdcce4bd" , "quoteToken" : { "symbol" : "TUSDC" , "decimals" : "6" }, "baseToke
Continue reading on Dev.to
Opens in a new tab

