Reporting API
Everyone loves seeing the additional crypto they are earning. Staked provides an API for full access to the details.
Get Balance Of All Provisioned Nodes
GET
https://mainnet.staked.cloud/api/reports/:chain/balance
Get the balance of all nodes provisioned through the Node Provisioning API.
Path Parameters
Name | Type | Description |
---|---|---|
chain* | String | Chain Name |
Query Parameters
Name | Type | Description |
---|---|---|
api_key* | String | Your API key |
Get Balance Of Address
GET
https://mainnet.staked.cloud/api/reports/:chain/delegator/:address/balance
Get the balance of an address that has delegated to Staked.
Path Parameters
Name | Type | Description |
---|---|---|
chain* | string | Chain Name |
address* | string | Address to get balance for |
Query Parameters
Name | Type | Description |
---|---|---|
api_key* | string | Your API key |
Balance Object Schema
Field | Description | Type |
balance | Staking balance | Number |
block | Block of latest snapshot | Number |
timestamp | Timestamp at latest snapshot | String |
address | Address queried | String |
conversion_factor_power | Decimals used in Number values (used to keep precision) | Number |
attributes | Extra information depending on the chain | Object |
Get Detailed Balance of Address
GET
https://mainnet.staked.cloud/api/reports/:chain/delegator/:address/detailed_balance
Get the detailed balance (summary view of rewards and the staked balance) of an address. The detail param is used to describe the results - "monthly" returns an array of detailed balance objects aggregated by month, "by_period" returns an array of detailed balance objects for each state change (delegation or reward).
Path Parameters
Name | Type | Description |
---|---|---|
chain* | string | Chain Name |
address* | string | Address to get detailed balance for |
Query Parameters
Name | Type | Description |
---|---|---|
api_key* | string | Your API Key |
detail | string | "by_period" or "monthly" |
Response Object Schema
Field | Description | Type |
results | Array of Detailed Balance Objects | Array |
page | Current page of results | Number |
pages | Total number of pages | Number |
per_page | Results per page | Number |
total | Total number of results | Number |
Detailed Balance Object Schema
Detailed balance objects are returned for every state change of an account (stake, reward, unstake).
Field | Description | Type |
timestamp | Timestamp of snapshot | String |
block | Block of snapshot | Number |
total_delegation | Total amount delegated | Number |
delegation | Delegated amount in state change | Number |
balance | Staking balance at snapshot | Number |
total_reward_and_fees | Total accumulated reward and fees up to snapshot | Number |
reward_and_fees | Reward and fees earned in state change | Number |
total_reward | Total accumulated reward up to snapshot | Number |
reward | Reward earned in state change | Number |
total_fees | Total fees accumulated up to snapshot | Number |
fees | Fees in state change | Number |
total_gross_return | Total gross return up to snapshot | Number |
gross_return | Gross return from state change | Number |
annualized_gross_return | Annualized gross return | Number |
block_explorer_url | Block Explorer URL for state change | String |
kind | Kind of state change ("Delegation" or "Reward") | String |
conversion_factor_power | Decimals used in Number values (used to keep precision) | Number |
currency | Name of currency | String |
Get Transactions (and rewards) of All Provisioned Nodes
GET
https://mainnet.staked.cloud/api/reports/:chain/txns
Get the transactions for all nodes provisioned through the Staked API associated with your API key. Use the kind parameter to specify which type of transactions to query.
Path Parameters
Name | Type | Description |
---|---|---|
chain* | String | Chain Name |
Query Parameters
Name | Type | Description |
---|---|---|
api_key* | String | Your API Key |
kind | String | Transaction kind |
start | String | Start date. Format: YYYY-MM-DD |
end | String | End date. Format: YYYY-MM-DD |
page | String | Page number for paginated results. |
per_page | String | Number of items per page for paginated results. |
Get Transactions (and rewards) of Address
GET
https://mainnet.staked.cloud/api/reports/:chain/delegator/:address/txns
Get the transactions for an address that has delegated to Staked. Use the kind parameter to specify which type of transactions to query.
Path Parameters
Name | Type | Description |
---|---|---|
chain* | string | Chain Name |
address* | string | Address to get transaction data for |
Query Parameters
Name | Type | Description |
---|---|---|
api_key* | string | Your API Key |
kind | string | Transaction kind |
start | string | Start date. Format: YYYY-MM-DD |
end | string | End date. Format: YYYY-MM-DD |
Transaction Object Schema
Field | Description | Type |
id | Transaction identifier | String |
kind | Kind of transaction | Transaction Kind Enum |
transaction_time | Timestamp of transaction | String |
transaction_address | Hash or identifier of transaction on blockchain | String |
holding_address | Address queried | String |
Amount | Amount of value in transaction | Number |
Reward | Reward in transaction | Number |
Fees | Fees in transaction | Number |
Total | Net value in transaction | Number |
conversion_factor_power | Decimals used in Number values (used to keep precision) | Number |
denom | Denomination | Number |
block_reference | Block the transaction was included in | Number |
Transaction Kind Enum
Value | Meaning |
STK | Delegation Transactions |
UNSTK | Undelegation Transactions |
SCH | Scheduled Future Rewards |
PEND | Rewards in Frozen Period |
PYBL | Rewards Pending Distribution |
PAID | Earned Rewards |
XFER | Transfers (includes withdrawals in Ethereum) |
Last updated