Preview unsigned staking request for Go Account (internal)

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

Internal service-to-service endpoint to generate an unsigned staking transaction preview. Bypasses user wallet permission checks. The caller must supply userId in the request body; it is forwarded to wallet-platform as the user-id header. Use only for stake requests.

Path Parameters

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

Request Body

Internal preview request payload including userId
userId string required
The user ID on whose behalf the transaction is built
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