Provider API
You can see below the required structure of the provider API. Please follow the required format so that no difficulties arise during integration!
Please provide the data in JSON format as shown below:
type Provider = {
name: string;
users: number;
balanceUsd: number;
supportedAssets: [
Array<{
name: string; # Asset name
slug: string; # Asset slug, preferred slugs can be found below
nodes: [
Array<{
nodeType: string; # hostingNode/operatorNode/posNode
address: string; # mandatory for pos nodeType, optional for operator nodeType
feeUsd: number; # (optional) Hosting Fee, a USD fixed price for hostingNodes
fee: number; # (optional) commission in % for posNodes
users: number; # for eth nodes number of validators
balanceUsd: number; # (optional)
balanceToken: number;
liquidStakingProvider: string; # (optional) identifier for liquid staking protocol, only for operator nodeType
}>;
]
}>;
]
};
You can search for the preferred slug for each asset by searching the asset in Staking Rewards and copying it from the url ex. https://www.stakingrewards.com/asset/ethereum-2-0 -> slug = "ethreum-2-0"
Last updated
Was this helpful?