Staking

Stake Crypto Funds

Initiates Staking deposits.

Roles

The API key you use to access this endpoint must have the Trader, Fund Manager or Trader role assigned. See Roles for more information.

post/v1/staking/stake

Request

  • Base URL
    https://api.gemini.com
  • URL
    https://api.gemini.com/v1/staking/stake
  • Auth
    API key in header X-GEMINI-APIKEY and API key in header X-GEMINI-SIGNATURE and API key in header X-GEMINI-PAYLOAD

Headers

X-GEMINI-APIKEYstring required

Your API key

X-GEMINI-SIGNATUREstring required

HEX-encoded HMAC-SHA384 of payload signed with API secret

X-GEMINI-PAYLOADstring required

Base64-encoded JSON payload

Content-Typestring
Content-Lengthstring
Cache-Controlstring

Request body

requeststring required

The literal string "v1/staking/stake"

accountstring

Required for Master API keys as described in Private API Invocation. The name of the account within the subaccount group.

providerIdstring required

Provider Id, in uuid4 format. providerId is accessible from the Staking rates response

currencystring required

Currency code, see symbols

amountstring decimal required

The amount of currency to deposit

Example request

{
  "nonce": "1495127793000"
}

Response

The staking deposit transaction

transactionIdstring

A unique identifier for the staking transaction

providerIdstring

Provider Id, in uuid4 format

currencystring

Currency code, see symbols

amountnumber

The amount deposited

accrualTotalnumber

The total accrual

Example response

{
  "transactionId": "65QN4XM5",
  "providerId": "62b21e17-2534-4b9f-afcf-b7edb609dd8d",
  "currency": "MATIC",
  "amount": 30,
  "rates": {
    "rate": 540
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.