REST APIStakeGo Account Staking

POST

Generate an unsigned staking request to preview for a given asset and Go Account. Use only for stake requests - don't use for unstaking requests.

Path Params

  • coin string enum required
    The staking asset.
    OFCSOLOFCSUI
  • accountId string required
    Account ID to fetch the staking request for.

Body Params

object

  • clientId string nullable

    up to 256 characters

  • amount string big-integer required
    Amount to stake, must be a positive value

Responses

200
Preview response containing unsigned transaction

Response Body

object

Represents an unsigned transaction build response for a staking preview.
  • payload string required
    The unsigned payload that should be signed by the client.
  • feeInfo object required
    Describes the transaction fee details.
    feeInfo object
    • feeString string required
      Fee value as a string (to preserve precision).
  • coin string required
    The coin symbol (e.g. ofc).
  • token string required
    The token symbol (e.g. ofctsui).
400
Bad Request

Response Body

object

  • error string
  • errorName string
  • reqId string
  • context object
401
Unauthorized

Response Body

object

  • error string
  • errorName string
  • reqId string
  • context object
403
Forbidden

Response Body

object

  • error string
  • errorName string
  • reqId string
  • context object
500
Server Error - Transient error please try again

Response Body

object

  • error string
  • errorName string
  • reqId string
  • context object