Interface NextActionPostRequest

Response body payload sent via POST request to obtain the next action in a successive chain of actions

NextAction should be returned as the POST response

interface NextActionPostRequest {
    account: string;
    data?: Record<
        | number
        | typeof iterator
        | "length"
        | "blink"
        | "link"
        | "toString"
        | "concat"
        | "slice"
        | "indexOf"
        | "lastIndexOf"
        | "includes"
        | "at"
        | "charAt"
        | "charCodeAt"
        | "localeCompare"
        | "match"
        | "replace"
        | "search"
        | "split"
        | "substring"
        | "toLowerCase"
        | "toLocaleLowerCase"
        | "toUpperCase"
        | "toLocaleUpperCase"
        | "trim"
        | "substr"
        | "valueOf"
        | "codePointAt"
        | "endsWith"
        | "normalize"
        | "repeat"
        | "startsWith"
        | "anchor"
        | "big"
        | "bold"
        | "fixed"
        | "fontcolor"
        | "fontsize"
        | "italics"
        | "small"
        | "strike"
        | "sub"
        | "sup"
        | "padStart"
        | "padEnd"
        | "trimEnd"
        | "trimStart"
        | "trimLeft"
        | "trimRight"
        | "matchAll"
        | "replaceAll"
        | "isWellFormed"
        | "toWellFormed", string | string[]>;
    signature?: string;
    state?: string;
}

Hierarchy

Properties

account: string

base58-encoded public key of an account that may sign the transaction

data?: Record<
    | number
    | typeof iterator
    | "length"
    | "blink"
    | "link"
    | "toString"
    | "concat"
    | "slice"
    | "indexOf"
    | "lastIndexOf"
    | "includes"
    | "at"
    | "charAt"
    | "charCodeAt"
    | "localeCompare"
    | "match"
    | "replace"
    | "search"
    | "split"
    | "substring"
    | "toLowerCase"
    | "toLocaleLowerCase"
    | "toUpperCase"
    | "toLocaleUpperCase"
    | "trim"
    | "substr"
    | "valueOf"
    | "codePointAt"
    | "endsWith"
    | "normalize"
    | "repeat"
    | "startsWith"
    | "anchor"
    | "big"
    | "bold"
    | "fixed"
    | "fontcolor"
    | "fontsize"
    | "italics"
    | "small"
    | "strike"
    | "sub"
    | "sup"
    | "padStart"
    | "padEnd"
    | "trimEnd"
    | "trimStart"
    | "trimLeft"
    | "trimRight"
    | "matchAll"
    | "replaceAll"
    | "isWellFormed"
    | "toWellFormed", string | string[]>

Key-value map of parameter values from user's input

  • key - parameter name
  • value - input value (by default type of string, if multi-option, type of Array<string>
signature?: string

signature produced from the previous action (either a transaction id or message signature)

state?: string

unedited state value initially provided by the Action API, relayed back to the Action API