Create Stake
POST /staking/stakes
Creates a new stake.
User action signature required. See User Action Signing for more information.
Request headers required. See Request Headers for more information.
Authentication required. See Authentication Headers for more information.
Required Permissions
Stakes:Create
Always Required
Parameters
Body
walletId
*
Required
Id of the Dfns wallet making the deposit.
String
amount
*
Required
Transaction amount denominated in min units
String
provider
Optional
Staking Provider, Eg "Figment"
String
protocol
*
Required
Staking Protocol, Eg "Babylon", "Iota",..
String
Currently, only two kind are possible: LockedNative
for vested staking on IOTA and Native
otherwise.
Depending on the protocol, some arguments are required when creating a stake:
Babylon
duration
*
number
Iota
You need to choose between amount and lockedIotas to indicate if you want to stake vested coins or native coins
validator
*
string
amount
string
for native staking
lockedIotas
string[]
for vested staking
Example
Response
Response example
Remarks
When creating a stake it will implicitly create a StakeAction
with kind Stake
Last updated