Links

polygonStaking_portfolio

Get the account's positions and assets in the Polygon staking protocol.
You can specify the account address and then you can query the account's Pool-Staked in the polygon staking protocol. Using this API, you are able to acknowledge the detailed information like Pool-Staked infos and USD amount of each token as well as the sections. Some DeFi investigation and strategies can be made by calling this API.
Supported on Ethereum.

Parameters

Object - An object with the following fields (required):
  • protocol(string, optional) - "polygonStaking", If you don't specify the protocol, the API can return position data for all supported DeFi protocols.
  • accountAddress(hex string, required) - The account you intend to check.

Returns

Object - An object with the following fields:
  • id(integer number) - json-rpc id.
  • jsonrpc(string) - json-rpc version.
  • result(object) - an object with the following fields:
    • data(object array, defined below) - response datas of the portfolioItemObject, click to view the detailed object description.

Example

Request

curl --location --request POST 'https://apis.blockvision.org/v1/<api key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 1,
"jsonrpc": "2.0",
"method": "account_defiPortfolio",
"params": {
"protocol":"polygonStaking",
"accountAddress": "0xc0999ef916d3517aa46ed4151fdcf60fd2b0ec5c"
}
}'

Result

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": [
{
"websiteUrl": "https://staking.polygon.technology",
"logo": "https://apis.blockvision.org/static/img/logo/matic.png",
"protocol": "Polygon Staking",
"proxy": "",
"usdAmount": "230231060",
"positionInfos": [
{
"logo": "https://apis.blockvision.org/static/img/logo/matic.png",
"contractAddress": "0x96fca49aa75607cd3be4aff640960a8c0c98cee5",
"symbol": "MATIC",
"usdValue": "230231060",
"section": "Staked",
"rewardTokens": [
{
"contractAddress": "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0",
"symbol": "MATIC",
"balance": "778683.61",
"usdValue": "911060"
}
],
"balanceTokens": [
{
"contractAddress": "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0",
"symbol": "MATIC",
"balance": "196000000.00",
"usdValue": "229320000"
}
]
}
]
}
]
}
}