Class Approval

Represents an approval for a transaction with a signer and signature.

Hierarchy

  • Approval

Constructors

Properties

Methods

Constructors

Properties

signature: HexBytes

The signature of the transaction signed by the signer.

signer: PublicKey

The public key of the signer.

Methods

  • Serializes an array of Approvals into a Uint8Array typed byte array. This is used to store or transmit the approvals associated with a deploy.

    Returns

    A Uint8Array typed byte array that can be deserialized back into an array of Approval objects.

    Example

    const approvals = [new Approval(publicKey, signature)];
    const serializedApprovals = Approval.toBytes(approvals);

    Parameters

    • approvals: Approval[]

      An array of Approval objects that represent signatures from accounts that have approved the deploy.

    Returns Uint8Array

Generated using TypeDoc