Create Stake
Last updated
Last updated
POST /staking/stakes
Creates a new stake.
Stakes:Create
Always Required
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:
duration
*
number
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
When creating a stake it will implicitly create a StakeAction
with kind Stake