POST

POST Request

Actions support HTTP POST JSON requests to their URL with the the body payload:

{
  "account": "<account>"
}

where account is a base58-encoded representation of the public key of the user making the request.

Clients should use Accept-Encoding headers and the Action service should respond with a Content-Encoding header for HTTP compression.

Post Response

Actions services should respond to POST requests with an HTTP OK JSON response with a payload of the format below.

export interface ActionPostResponse {
  /** base64-encoded transaction */
  transaction: string;
  /** optional message, can be used to e.g. describe the nature of the transaction */
  message?: string;
}

Examples

Last updated