Generate staking request for Go Account

post/api/go-staking/v1/{coin}/accounts/{accountId}/requests/preview

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 Parameters

  • coinstringRequired
    The staking asset.
    Enum: OFCSOL OFCSUI
  • accountIdstringRequired
    Account ID to fetch the staking request for.

Request Body

Staking request details
clientId
string or null
Max length: <= 256 characters
amount string <big-integer>required
Amount to stake, must be a positive value

200 Response

payload string required
The unsigned payload that should be signed by the client.
feeInfo object required
Describes the transaction fee details.
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 Response

error string
errorName string
reqId string
context object

401 Response

error string
errorName string
reqId string
context object

403 Response

error string
errorName string
reqId string
context object

500 Response

error string
errorName string
reqId string
context object