AMM
PyroTokens
Developer Docs
Search…
Technical Documentation
Smart Contracts
Behodler Repositories
Behodler AMM
Limbo
Deployments
Mainnet
Ropsten
Subgraphs
Behodler AMM
Integrations
Smart Contracts
User Platforms
Powered By
GitBook
Behodler AMM
GraphQL queries for use with the Behodler AMM Subgraph on The Graph.
Get All Tokens
Get a list of all tokens
1
{
2
tokens(orderBy: ethBlock, orderDirection: desc){
3
name
4
symbol
5
decimals
6
eth
7
usd
8
volume
9
ethVolume
10
usdVolume
11
liquidity
12
totalSupply
13
}
14
}
Copied!
Get All Swaps
Get a list of all swaps, most recent first
1
{
2
swaps(orderBy: timestamp, orderDirection: desc){
3
id
4
transaction
5
timestamp
6
sender
7
inputToken {
8
id
9
symbol
10
}
11
outputToken {
12
id
13
symbol
14
}
15
inputAmount
16
outputAmount
17
}
18
}
Copied!
Get Volume and Liquidity
Get total swap volume (all swaps) and current liquidity
1
{
2
behodler(id:1)
3
{
4
ethVolume
5
usdVolume
6
ethLiquidity
7
usdLiquidity
8
}
9
}
Copied!
Get Liquidity transactions
Get a list of all liquidity transactions (minting and burning of SCX) , most recent first
1
{
2
liquidities(orderBy: timestamp, orderDirection: desc){
3
id
4
timestamp
5
direction
6
token {
7
id
8
symbol
9
}
10
amount
11
scx
12
}
13
}
Copied!
Previous
Mock External Contracts & Liquidity
Next - Integrations
Smart Contracts
Last modified
3mo ago
Copy link
Contents
Get All Tokens
Get All Swaps
Get Volume and Liquidity
Get Liquidity transactions