curl --request POST \
--url https://api.dfns.io/staking/stakes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-DFNS-USERACTION: <api-key>' \
--data '
{
"externalId": "ext-123",
"walletId": "wa-4g991-s29to-9hrq4nbuto6ih33b",
"protocol": "Ethereum",
"provider": "Figment",
"amount": "32000000000000000000"
}
'{
"id": "<string>",
"walletId": "<string>",
"status": "Active",
"requester": {
"userId": "us-6b58p-r53sr-rlrd3l5cj3uc4ome",
"tokenId": "to-202a0-cdo33-o65mbt6q758lvvnt"
},
"requestBody": {
"protocol": "Babylon",
"walletId": "<string>",
"provider": "Figment",
"amount": "<string>",
"duration": 123,
"externalId": "<string>"
},
"dateCreated": "<string>",
"protocol": "Babylon",
"data": {
"finalityProviders": [
"<string>"
],
"covenantPubkeys": [
"<string>"
],
"magicBytes": "<string>",
"covenantThreshold": 123,
"minUnbondingTime": 123,
"lockHeight": 123
},
"actions": [
{
"id": "<string>",
"stakeId": "<string>",
"status": "PendingPolicyApproval",
"kind": "Stake",
"requester": {
"userId": "us-6b58p-r53sr-rlrd3l5cj3uc4ome",
"tokenId": "to-202a0-cdo33-o65mbt6q758lvvnt"
},
"requestBody": {
"protocol": "Babylon",
"walletId": "<string>",
"provider": "Figment",
"amount": "<string>",
"duration": 123,
"externalId": "<string>"
},
"dateCreated": "<string>",
"transactionId": "<string>",
"signatureId": "<string>",
"transactionHash": "<string>",
"failureReason": "<string>"
}
],
"provider": "Figment"
}Create a new stake.
curl --request POST \
--url https://api.dfns.io/staking/stakes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-DFNS-USERACTION: <api-key>' \
--data '
{
"externalId": "ext-123",
"walletId": "wa-4g991-s29to-9hrq4nbuto6ih33b",
"protocol": "Ethereum",
"provider": "Figment",
"amount": "32000000000000000000"
}
'{
"id": "<string>",
"walletId": "<string>",
"status": "Active",
"requester": {
"userId": "us-6b58p-r53sr-rlrd3l5cj3uc4ome",
"tokenId": "to-202a0-cdo33-o65mbt6q758lvvnt"
},
"requestBody": {
"protocol": "Babylon",
"walletId": "<string>",
"provider": "Figment",
"amount": "<string>",
"duration": 123,
"externalId": "<string>"
},
"dateCreated": "<string>",
"protocol": "Babylon",
"data": {
"finalityProviders": [
"<string>"
],
"covenantPubkeys": [
"<string>"
],
"magicBytes": "<string>",
"covenantThreshold": 123,
"minUnbondingTime": 123,
"lockHeight": 123
},
"actions": [
{
"id": "<string>",
"stakeId": "<string>",
"status": "PendingPolicyApproval",
"kind": "Stake",
"requester": {
"userId": "us-6b58p-r53sr-rlrd3l5cj3uc4ome",
"tokenId": "to-202a0-cdo33-o65mbt6q758lvvnt"
},
"requestBody": {
"protocol": "Babylon",
"walletId": "<string>",
"provider": "Figment",
"amount": "<string>",
"duration": 123,
"externalId": "<string>"
},
"dateCreated": "<string>",
"transactionId": "<string>",
"signatureId": "<string>",
"transactionHash": "<string>",
"failureReason": "<string>"
}
],
"provider": "Figment"
}CustomerEmployee)EndUser)Stakes:Create: Always required.Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows
User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows
Success
Active, Failed, Staking, Unbonding, Unbond, Withdrawing, Withdrawn The user who initiated the request.
Show child attributes
Show child attributes
Babylon Show child attributes
Show child attributes
Figment Was this page helpful?