Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ContractProvider

Hierarchy

Index

Methods

at

ballot

batch

drainDelegate

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

  • getBigMapKeysByID<T>(id: string, keysToEncode: BigMapKeyType[], schema: Schema, block?: number, batchSize?: number): Promise<MichelsonMap<MichelsonMapKey, undefined | T>>
  • 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

getSaplingDiffByID

  • getSaplingDiffByID(id: string, block?: number): Promise<SaplingDiffResponse>

getStorage

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

increasePaidStorage

  • increasePaidStorage(params: IncreasePaidStorageParams): Promise<IncreasePaidStorageOperation>
  • description

    Increase the amount of bytes in a smart contract storage by paying a fee

    Parameters

    • params: IncreasePaidStorageParams

      IncreasePaidStorage operation parameter

    Returns Promise<IncreasePaidStorageOperation>

    An operation handle with the result from the rpc node

originate

proposals

  • proposals(params: ProposalsParams): Promise<ProposalsOperation>

registerDelegate

registerGlobalConstant

  • registerGlobalConstant(params: RegisterGlobalConstantParams): Promise<RegisterGlobalConstantOperation>
  • description

    Register a Micheline expression in a global table of constants. Will sign and inject an operation using the current context

    Parameters

    • params: RegisterGlobalConstantParams

      registerGlobalConstant operation parameter

    Returns Promise<RegisterGlobalConstantOperation>

    An operation handle with the result from the rpc node

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

smartRollupAddMessages

  • smartRollupAddMessages(params: SmartRollupAddMessagesParams): Promise<SmartRollupAddMessagesOperation>
  • description

    Smart Rollup Add Messages

    Parameters

    • params: SmartRollupAddMessagesParams

    Returns Promise<SmartRollupAddMessagesOperation>

    An operation handle with the result from the RPC node

smartRollupOriginate

  • smartRollupOriginate(params: SmartRollupOriginateParams): Promise<SmartRollupOriginateOperation>
  • description

    Smart rollup originate

    Parameters

    • params: SmartRollupOriginateParams

    Returns Promise<SmartRollupOriginateOperation>

    An operation handle with the result from the RPC node

transfer

transferTicket

  • transferTicket(params: TransferTicketParams): Promise<TransferTicketOperation>
  • description

    Transfer tickets from an implicit account to a contract or another implicit account.

    Parameters

    • params: TransferTicketParams

    Returns Promise<TransferTicketOperation>

    An operation handle with the result from the rpc node

updateConsensusKey

  • updateConsensusKey(params: UpdateConsensusKeyParams): Promise<UpdateConsensusKeyOperation>
  • description

    Update consensus key

    Parameters

    • params: UpdateConsensusKeyParams

    Returns Promise<UpdateConsensusKeyOperation>

    An operation handle with the result from the RPC node

Generated using TypeDoc