Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SignAndPostAuthorization

Hierarchy

  • SignAndPostAuthorization

Callable

  • Called by the signing server and lets user decide if they want to authorize a sign and post request.

    Must return true if the user authorized the signing and false if the user rejects it.

    Any error (thrown or returned as a rejected promise) from this callback is sent to the RPC client as an unspecified "Internal server error" and the callback author should ensure this does not happen.

    Parameters

    • reason: string

      An explanation why the autorization is requested. This is created by the website and shown to the user.

    • transaction: UnsignedTransaction

      The transaction to be signed.

    • Optional meta: any

      An object that is passed by reference from request handlers into the callback.

    Returns Promise<boolean>

Generated using TypeDoc