Get all delegations
GET
https://www.allnodes.com/api/v1/staking
This endpoint allows to get list of all your delegations.
[
{
id: number;
name: string;
currencySymbol: string;
createdAt: string;
apr: string | null;
payoutFrequencySeconds: number | null;
address: {
ownerAddress?: string;
stakingAddress?: string;
lastRewardAt: string | null;
};
delegations: [{
validatorId: string;
validatorName: string;
delegationAmount: number;
rewardAmount: number;
}];
undelegations: [{
validatorId: string;
validatorName: string;
amount: number;
}];
settings: {
wallet: string;
};
}
]
Get a delegation
GET
https://www.allnodes.com/api/v1/staking/{id}
This endpoint allows to get info about specific delegation on your account.
Path Parameters
Delegation you want to get info about. ID can be extracted from the “Get all delegations” call
{
id: number;
name: string;
currencySymbol: string;
createdAt: string;
apr: string | null;
payoutFrequencySeconds: number | null;
address: {
ownerAddress?: string;
stakingAddress?: string;
lastRewardAt: string | null;
};
delegations: [{
validatorId: string;
validatorName: string;
delegationAmount: number;
rewardAmount: number;
}];
undelegations: [{
validatorId: string;
validatorName: string;
amount: number;
}];
settings: {
wallet: string;
};
}