Vesting
Schedules
Create Schedule
Add a new batch schedule with vesting schedules and their beneficieries.
HTTP Method: POST
Roles: Guest
Endpoint: {{BASE_URL}}/v1/graphql
GraphQL Body:
mutation ($schedule: CreateScheduleInput!) {
v1CreateSchedule(schedule: $schedule) {
res
success
}
}
Params:
{
"schedule": {
"network": "{{NETWORK_ETHEREUM}}",
"contractName": "{{VESTING}}",
"batchName": "abc6",
"schedules": [
{
"startTime": "2025-07-05T19:44:48+00:00",
"cliffPeriod": {
"cliffTime": "2025-07-10T00:00:00+00:00",
"percentage": 10
},
"durationSec": 16,
"secondsPerSlice": 5,
"tokenAddress": "0x7D5c1468D8bE9f0F4FaD26F2Cb7e6b2ed9042577",
"amount": "1",
"initialAmount": "10",
"beneficiaries": ["0xabc"]
},
{
"startTime": "2025-07-05T19:44:48+00:00",
"durationSec": 16,
"secondsPerSlice": 5,
"tokenAddress": "0x7D5c1468D8bE9f0F4FaD26F2Cb7e6b2ed9042577",
"amount": "1",
"initialAmount": "10",
"beneficiary": "0xabc2"
}
]
}
}
Response
{
"v1CreateSchedule": {
"res": {
"batchId": "e319082e-b7c1-4095-b257-70c3f4243284",
"merkleRoot": "0xcf3af4c07afaaffbdeb94b7a2ca8d7eb90c2946fd3a8f56c8ac4e2803f7e76fd",
"onChain": false
},
"success": true
}
}
Releases
Get Historical Emissions
Retrieve the historical emissions from the day group by date.
HTTP Method: POST
Roles: Guest
Endpoint: {{BASE_URL}}/v1/graphql
GraphQL Body:
mutation ($release: HistoricalEmissionsInput!) {
v1GetHistoricalEmissions(release: $release) {
res
success
}
}
Params:
{
"release": {
"contractName": "{{VESTING}}",
"data": [
{
"networks": ["{{NETWORK_ETHEREUM}}"]
}
]
}
}
Response
{
"data": {
"v1GetHistoricalEmissions": {
"res": {
"1741294800": [
{
"amount": 0,
"fluctuation": 0,
"fluctuationValue": 0,
"schema": "polygon",
"tokenAddress": "0x8574299682D036F88195a2685601D90300E21Bca"
},
{
"amount": 0,
"fluctuation": 0,
"fluctuationValue": 0,
"schema": "polygon",
"tokenAddress":"0xa6da8c8999c094432c77e7d318951d34019af24b"
}
],
...
"1741366800": [
{
"amount": 1000000000000000000,
"fluctuation": 1,
"fluctuationValue": 0,
"schema": "polygon",
"tokenAddress": "0x8574299682D036F88195a2685601D90300E21Bca"
},
{
"amount": 0,
"fluctuation": 0,
"fluctuationValue": 0,
"schema": "polygon",
"tokenAddress":"0xa6da8c8999c094432c77e7d318951d34019af24b"
}
],
"1741381200": [
{
"amount": 0,
"fluctuation": -1,
"fluctuationValue": -1000000000000000000,
"schema": "polygon",
"tokenAddress": "0x8574299682D036F88195a2685601D90300E21Bca"
},
{
"amount": 0,
"fluctuation": 0,
"fluctuationValue": 0,
"schema": "polygon",
"tokenAddress":"0xa6da8c8999c094432c77e7d318951d34019af24b"
}
]
},
"success": true
}
}
}