Page cover

Vote Escrow

API endpoints specific to Plenty's vote escrow system

Locks

Get all VE locks for a Tezos address

GET https://api.plenty.network/ply/locks

This endpoint returns an array of objects where each object contains information about a VE lock, its ID, base value, timestamp of expiry, attachment status, current voting power, available and used voting power for the present epoch, and voting power in the next epoch.

Query Parameters

Name
Type
Description

address

String

Tezos address of the user

{
  result: {
    id: string;
    owner: string;
    baseValue: string; // Amount of PLY locked
    endTs: string; // Ending timestamp
    attached: boolean; // `true` if attached to a gauge
    epochVotingPower: string; // Current max usable voting power of the lock
    currentVotingPower: string; // Voting power at present second
    availableVotingPower: string; // Unused voting power in the present epoch
    nextEpochVotingPower: string; // Voting power for the next epoch
  }[];
}

Bribes

Get all bribes added in a specific epoch

GET https://api.plenty.network/ply/bribes

This endpoint returns an array of objects where each object contains information about the bribes added to a specific pool.

Query Parameters

Name
Type
Description

epoch

Integer

Epoch for which bribes are requested

Get all bribes provided by a specific Tezos address

GET https://api.plenty.network/ply/bribes-provider

This endpoint returns an array of objects where each object contains information about the bribe added by the provided Tezos address.

Query Parameters

Name
Type
Description

address*

String

Tezos address of bribe provider

Pools

Get incentivisation details of all pools added to the VE system

GET https://api/plenty.network/ply/pools

This endpoint returns an array of objects where each object contains information about an incentivised pool, its current and future epoch APR and all bribes of the present epoch,

Voting Rewards

Get all unclaimed voting rewards for a Tezos address

GET https://api.plenty.network/ply/votes

This endpoint returns an array of objects where each object contains information about unclaimed fees and bribes for a specific epoch.

Query Parameters

Name
Type
Description

address*

String

User's Tezos address

V2 Position

Get all v2 liquidity positions of a Tezos address

GET https://api.plenty.network/ply/positions

This endpoint returns an array of objects where each object contains information about a v2 liquidity position of the user, its staked gauge balance, wallet balance, boosted balance and token, and APR of the pool involved.

Query Parameters

Name
Type
Description

address

String

Tezos address of the user

Last updated