Unvest Docs
Search…
⌃K

Subgraph

Built With

TheGraph Request URL:

Mainnet (ChainID: 1)
https://thegraph.com/hosted-service/subgraph/party-finance/unvest-v2-mainnet
Görli (ChainID: 5) - Testnet
https://thegraph.com/hosted-service/subgraph/party-finance/unvest-v2-goerli
Optimism (ChainID: 10)
https://thegraph.com/hosted-service/subgraph/party-finance/unvest-v2-optimism
BSC (ChainID: 56)
https://thegraph.com/hosted-service/subgraph/party-finance/unvest-v2-bsc
Polygon (ChainID: 137)
https://thegraph.com/hosted-service/subgraph/party-finance/unvest-v2-polygon
Optimism-Goerli (ChainID: 420) - Testnet
https://thegraph.com/hosted-service/subgraph/party-finance/unvest-v2-optimism-goerli
Arbitrum (ChainID: 42161)
https://thegraph.com/hosted-service/subgraph/party-finance/unvest-v2-arbitrum
Avalanche (ChainID: 43114)
https://thegraph.com/hosted-service/subgraph/party-finance/unvest-v2-avalanche
Mumbai (ChainID: 80001) - Testnet
https://thegraph.com/hosted-service/subgraph/party-finance/unvest-v2-avalanche

Queries

Query a user's vesting balance by project

Retrieves the latest user's balance for all vesting tokens in a specific project.
query QueryUserAllVestingsByProject(
$userAddress: String!
$vestingsToken: [String!]!
) {
holderBalances(
where: { user: $userAddress, vestingToken_in: $vestingsToken }
) {
vestingToken {
id
symbol
}
allocation
claimed
}
}

Query all vesting balances by project

Retrieves the overall vesting balances in a specific project.
query QueryAllVestingsInfo(
$vestingsToken: [String!]!
) {
vestingBalances(
first: 1000
where: { vestingToken_in: $vestingsToken }
) {
vestingToken {
id
symbol
}
allocation
claimed
}
}

Query all recipient's balances by vesting

Retrieves all of the recipient's balances by a specific vesting token.
query QueryVestingRecipientBalances(
$vestingsToken: String!
) {
holderBalances(
first: 1000
where: { vestingToken: $vestingToken, isRecipient: true }
) {
user
allocation
claimed
balance
updatedAt
lastClaimedAt
transferredIn
transferredOut
}
}