Safe Stake SDK

Through InfStones' Staking API, we offer seamless integration with Safe Stake services, allowing users to easily manage their staking activities across various blockchain protocols via API calls.

1 Create Access Token

You need to have an InfStones platform account first, sign up and log in to InfStones platform.

Contact us to create your access token. All requests you send using the Staking API need to be authenticated using your access token.

2 Use Staking API

We support the following features through Staking API: stake, unstake, claim reward, query stake and reward history.

2.1 Stake

Through stake API, we assemble the raw transaction required for the stake action and return it to the user. The user can then sign the raw data using their own wallet's private key and broadcast it to complete the stake process.

2.2 Unstake

Through unstake API, we assemble the raw transaction required for the unstake action and return it to the user. The user can then sign the raw data using their own wallet's private key and broadcast it to complete the unstake process.

2.3 Claim Reward

Through claim API, we assemble the raw transaction required for the claim reward action and return it to the user. The user can then sign the raw data using their own wallet's private key and broadcast it to complete the claim reward process.

2.4 Query Stake and Reward History

Through history GraphQL, the user can check the stake and reward history of any asset staked with InfStones.

3 Key Terminologies

In our Staking API, we have defined the following key terminologies.

3.1 Activity

Activity is initiated by users and encompasses a range of actions, including staking, unstaking, claiming rewards, and withdrawals. Learn more.

3.2 Asset

Asset aggregates critical staking-related information, including active stake, total rewards, unstaking details, and more. An "asset" will be created once the user completes the staking. Learn more.

3.3 History

History provides users with the historical data of their staking and reward activities. Learn more.

4 Supported Protocols

We are now supporting the Staking API on the following blockchain protocols.