Create Tier Ladder
Tiered token endpoints will only work with contracts with the tiered-token add on enabled. Create a new token ladder with multiple tiers and threshold qualifications.
Endpoint
POST https://api.juicelabs.io/v1/collections/:collectionAddress/ladders
Authorization Header
X-API-KEY: [YOUR_API_KEY]
Request Body
{
"name": "My Ladder",
"collectionAddress": "0x7F5c2A6874D81913eB94fC97f569674d9B95f419",
"network": "sepolia",
"tiers": [
{
"thresholdTokenAddress": "0x7F5c2A6874D81913eB94fC97f569674d9B95f419",
"thresholdTokenId": 1,
"thresholdAmount": 0,
"tokenMetaUri": "ipfs://bafkreid4f7vg7kjdf53k3bdniegweebiudurxh7pbrknzwdfo5xxhsfota"
},
{
"thresholdTokenAddress": "0x7F5c2A6874D81913eB94fC97f569674d9B95f419",
"thresholdTokenId": 1,
"thresholdAmount": 10,
"tokenMetaUri": "ipfs://bafkreid4f7vg7kjdf53k3bdniegweebiudurxh7pbrknzwdfo5xxhsfota"
}
]
}
Response Shape
{
"success": true,
"data": {
"...": "..."
}
}