POST
/
stakeAsset
curl --request POST \
  --url https://gateway.finhub.cloud/crypto/stakeAsset \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'tenantId: <tenantid>' \
  --data '{
  "nonce": 58258880,
  "asset": "XBT",
  "amount": "ipsum in",
  "method": "sint"
}'
{
  "error": [],
  "result": {
    "refid": "BOG5AE5-KSCNR4-VPNPEV"
  }
}

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

tenantId
string
required

Tenant/Owner id

Content-Type
string

Body

application/json
nonce
integer

(Required) Nonce used in construction of API-Sign header

asset
string

(Required) Asset to stake (asset ID or altname)

amount
string

(Required) Amount of the asset to stake

method
string

(Required) Name of the staking option to use (refer to the Staking Assets endpoint for the correct method names for each asset)

Response

200 - application/json

The response is of type object.