Constructors

Properties

The raw signing request data.

signature?: RequestSignature

The request signature.

version: number

The signing request version.

Methods

  • Encode this request into an esr: uri.

    Parameters

    • Optional compress: boolean
    • Optional slashes: boolean
    • scheme: string = 'esr:'

    Returns string

    An esr uri string.

    Argument

    compress Whether to compress the request data using zlib, defaults to true if omitted and zlib is present; otherwise false.

    Argument

    slashes Whether add slashes after the protocol scheme, i.e. esr://. Defaults to true.

  • Chain IDs this request is valid for, only valid for multi chain requests. Value of null when isMultiChain is true denotes any chain.

    Returns null | ChainId[]

  • Present if the request is an identity request and requests a specific account.

    Returns null | Name

    Note

    This returns nil unless a specific identity has been requested, use isIdentity to check id requests.

  • Present if the request is an identity request and requests a specific permission.

    Returns null | Name

    Note

    This returns nil unless a specific permission has been requested, use isIdentity to check id requests.

  • Present if the request is an identity request and requests a specific permission.

    Returns null | Name

    Note

    This returns nil unless a specific permission has been requested, use isIdentity to check id requests.

  • Get signature data, returns an empty array if request is not signed.

    Returns Uint8Array

  • True if chainId is set to chain alias 0 which indicates that the request is valid for any chain.

    Returns boolean

  • Set broadcast flag.

    Parameters

    • broadcast: boolean

      Whether the transaction should be broadcast by receiver.

    Returns void

  • Set the request callback, mutating.

    Parameters

    • url: string

      Where the callback should be sent.

    • background: boolean

      Whether the callback should be sent in the background.

    Returns void

  • Set the signature data for this request, mutating.

    Parameters

    • signer: string

      Account name of signer.

    • signature: string

      The signature string.

    Returns void