Get All Staking Transactions

GET https://api.sfox.com/v1/staking/transactions

Retrieve a list of staking transactions from your account including stake and reward transactions.

Query Parameters

ParameterTypeDescription

currency

string

Retrieve transactions for a given asset or set of assets. e.g. ?currency=avax%Cdot

types

string

Retrieve a specified type of transactions or set of transaction types. Possible values:

  • STAKE: Staking transactions

  • REWARD: Reward transactions

from

timestamp

Retrieve transactions that occurred after and including this timestamp (UNIX timestamp in ms).

to

timestamp

Retrieve transactions that occurred before and including this timestamp (UNIX timestamp in ms).

Response Body

KeyDescription

amount

The transaction amount

atx_id

The associated ID of this transaction on your account ledger

stake_start

Time at which the staking period began for this request

stake_end

Time at which the staking period will or did end

staked_reward_amount

The rewards that were earned from this staking request

staked_auto_restake

Flag signifying whether you have enabled auto re-staking for this request

date_added

Time at which this transaction was recorded

date_updated

Time of the most recent update to this transaction

currency_symbol

Asset associated with this transaction

status

Status of this transaction

type

Type of transaction (either stake or reward)

Responses

200
{
    "data": [
        {
            "amount": 0.0670929,
            "atx_id": 1452808,
            "stake_start": null,
            "stake_end": null,
            "staked_reward_amount": null,
            "staked_auto_restake": null,
            "date_added": "2022-09-29T23:05:34.000Z",
            "date_updated": "2022-09-29T23:05:34.000Z",
            "currency_symbol": "avax",
            "status": "done",
            "type": "reward"
        },
        {
            "amount": 25,
            "atx_id": 1315723,
            "stake_start": "2022-09-15T23:04:27.000Z",
            "stake_end": "2022-09-29T23:04:27.000Z",
            "staked_reward_amount": 0.0670929,
            "staked_auto_restake": 0,
            "date_added": "2022-09-15T23:04:11.000Z",
            "date_updated": "2022-09-29T23:05:34.000Z",
            "currency_symbol": "avax",
            "status": "Unstaked",
            "type": "stake"
        }
    ]
}

Example Request

curl -H 'Authorization: Bearer <API_TOKEN>' 
'https://api.sfox.com/v1/staking/transactions'

Last updated