NEAR
SDK functions on Near protocol
Stake
Craft a stake transaction.
The amount to stake is in NEAR.
Unstake
Craft an unstake transaction. Once unstaked, your token will be available for withdrawals after ~36 to 48h (3 full epochs).
The amount to unstake is optional and in NEAR, the whole stake balance will be unstaked if no amount is given.
Withdraw
Craft a withdraw transaction. The amount to withdraw must first be unstaked and available before you can withdraw it.
The amount to withdraw is optional and in NEAR, the whole stake balance will be withdrawn if no amount is given.
Sign
Sign a transaction by specifying the integration and the crafted transaction.
Here is an example showing how to sign a transaction with a fireblocks vault.
Checkout the setup fireblocks documentation to setup your vault.
Broadcast
Broadcast a signed transaction.
Get transaction status
Get the transaction status of a broadcasted transaction by providing its transaction hash and the pool id that received transaction.
Decode transaction
Decode a serialized transaction previously crafted. You can use this to get more information about a transaction prior to broadcast it such as the gas fees used, the function parameters etc.
Get stakes
Get stakes real time data. You can get stakes by Kiln accounts, by stake accounts (poolId_walletId) or by wallets.
Get rewards
Get historical rewards data by day. You can get rewards aggregated by Kiln accounts, by stake accounts (poolId_walletId) or by wallets.
Get network stats
Get some network stats.
Last updated