Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WasmAPI

Hierarchy

  • BaseAPI
    • WasmAPI

Index

Constructors

Properties

Methods

  • allCodes(chainID: string, params?: Partial<PaginationOptions & APIParams>): Promise<[CodeInfo[], Pagination]>
  • codeInfo(codeID: number, chainID: string, params?: APIParams): Promise<CodeInfo>
  • contractHistory(contractAddress: string, params?: Partial<PaginationOptions & APIParams>): Promise<[HistoryEntry[], Pagination]>
  • Parameters

    • contractAddress: string
    • params: Partial<PaginationOptions & APIParams> = {}

    Returns Promise<[HistoryEntry[], Pagination]>

  • contractInfo(contractAddress: string, params?: APIParams): Promise<ContractInfo>
  • contractQuery<T>(contractAddress: string, query: string | object, params?: APIParams): Promise<T>
  • Type Parameters

    • T

    Parameters

    • contractAddress: string
    • query: string | object
    • params: APIParams = {}

    Returns Promise<T>

  • contractStates(contractAddress: string, params?: Partial<PaginationOptions & APIParams>): Promise<[Model[], Pagination]>
  • getReqFromAddress(address: string): APIRequester
  • getReqFromChainID(chainID: string): APIRequester
  • params(chainID: string): Promise<{ params: Params }>
  • pinnedCodes(chainID: string, params?: APIParams): Promise<PinnedCodes>
  • rawContractState(contractAddress: string, query_data: string, params?: APIParams): Promise<QueryResult>
  • smartContractState(contractAddress: string, query_data: string | object, params?: APIParams): Promise<QueryResult>