Skip to main content

Endpoints

API Usage

Once you already have access to the Staking API with a validated user and existing apikeys you can start using this service.

API Reference docs

tip

You can check the Staking API Reference here:

Authentication

In order to use staking api related endpoints you need to include your API KEY

Header:

NameDescriptionExample valueRequired
X-API-KEYYour api key value<API_KEY_VALUE>

Stake into stakewise vault

Craft a stake transaction:

Description

This endpoint will craft a stake transaction ready to be signed.

Request body parameters

StakewiseStakeActionDto

Returned

StakewiseStakingActionResponseDto


Unstake action

Craft a unstake transaction

Description

This endpoint will build an "enter exit queue" unstake transaction ready to be signed. The exited assets needs to mature for a given period before there are claimable

Request param

StakewiseStakeActionDto

Returned

StakewiseStakingActionResponseDto


Withdraw action

Craft a withdraw transaction

Description

Once the assets in queue are ready to be claimable you can claim them. This action will craft a withdraw transaction of the withdrawable assets.

StakewiseWithdrawActionDto

Returned

StakewiseStakingActionResponseDto


Prepare action

Gathers signature and unsigned tx:

Description

Prepare a signed transaction by gathering the provided signatures with the unsigned transaction hex string:

Request body parameters

EthPrepareActionDto

Returned

EthPrepareActionResponseDto


Broadcast action

Broadcast a signed transaction

Description

Broadcast a signed transaction. Usually you will brodcast the signted transaction returned in prepare previous step:

Request body parameters

EthBroadcastActionDto

Returned

EthBroadcastActionResponseDto


Historic

Get stakewise actions history for the given address

Description

Get stakewise actions history for the given address. It will return all historic actions of different kind of actions.

Request parameters

At url param you will need to pass the address you want to retrieve actions from

Returned

Array of StakewiseGetActionResponseDto


Stake balance

Get stakewise stake balance for the given address

Description

Get stakewise stake balance for the given address.

Request parameters

At url param you will need to pass the address you want to retrieve actions from

Returned

Array of StakewiseGetStakeBalanceResponseDto


Exited balance

Get stakewise exited balance for the given address

Description

Get stakewise exited balance for the given address.

Request parameters

At url param you will need to pass the address you want to retrieve actions from

Returned

Array of StakewiseGetExitedBalanceResponseDto