Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ContractProvider

Hierarchy

Index

Methods

at

batch

getBigMapKey

  • getBigMapKey<T>(contract: string, key: string, schema?: unknown): Promise<T>

getBigMapKeyByID

  • getBigMapKeyByID<T>(id: string, keyToEncode: BigMapKeyType, schema: Schema, block?: number): Promise<T>

getBigMapKeysByID

  • description

    Fetch multiple values in a big map

    Type parameters

    • T

    Parameters

    • id: string

      Big Map ID

    • keysToEncode: BigMapKeyType[]

      Array of keys to query (will be encoded properly according to the schema)

    • schema: Schema

      Big Map schema (can be determined using your contract type)

    • Optional block: number

      optional block level to fetch the values from

    • Optional batchSize: number

      optional batch size representing the number of requests to execute in parallel

    Returns Promise<MichelsonMap<MichelsonMapKey, undefined | T>>

    An object containing the keys queried in the big map and their value in a well-formatted JSON object format

getStorage

  • getStorage<T>(contract: string, schema?: unknown): Promise<T>

originate

registerDelegate

reveal

  • reveal(params: RevealParams): Promise<RevealOperation>
  • description

    Reveal the current address. Will throw an error if the address is already revealed.

    Parameters

    • params: RevealParams

    Returns Promise<RevealOperation>

    An operation handle with the result from the rpc node

setDelegate

transfer

Generated using TypeDoc