A contract's viewing key methods.

Hierarchy

Constructors

Properties

address?: string

Address of the contract on the chain.

agent?: Agent

Agent that will interact with the contract.

codeHash?: string

Code hash confirming the contract's integrity.

fee?: IFee

Default fee for all contract transactions.

fees: Record<string, IFee> = {}

Default fee for specific transactions.

log: Console = ...
meta: Contract<any>

Contract metadata.

Accessors

Methods

  • Create a random viewing key.

    Parameters

    • entropy: string = ...

    Returns Promise<Uint8Array>

  • Get the recommended fee for a specific transaction.

    Parameters

    • Optional msg: string | Record<string, unknown>

    Returns undefined | IFee

  • Set a user-specified viewing key.

    Parameters

    • key: string

    Returns Promise<unknown>

  • Throw if fetched metadata differs from configured.

    Parameters

    • kind: string
    • expected: any
    • actual: any

    Returns void

Generated using TypeDoc