Subgraph interactions
SDK functions to read from the Toucan subgraph
fetchTokenPriceOnDex
function fetchTokenPriceOnDex(pool: PoolSymbol): Promise<TokenPrice>;Params
Name
Type
Description
fetchUserBatches
function fetchUserBatches(walletAddress: string): Promise<Batch[]>;Params
Name
Type
Description
Return Values
fetchTCO2TokenById
Params
Name
Type
Description
fetchTCO2TokenByFullSymbol
Params
Name
Type
Description
fetchAllTCO2Tokens
fetchBridgedBatchTokens
fetchUserRetirements
Params
Name
Type
Description
fetchRedeems
Params
Name
Type
Description
fetchUserRedeems
Params
Name
Type
Description
fetchPoolContents
Params
Name
Type
Description
fetchProjectById
Params
Name
Type
Description
fetchAggregations
Custom queries
Example: Getting all infos on a project on a Carbon Credit
Last updated
Was this helpful?