Hierarchy (view full)

Constructors

Methods

  • Parameters

    • __namedParameters: {
          auth: {
              key?: string;
              permit?: SecretJS.Permit;
          };
          contract: SecretContract;
          owner: string;
          spender: string;
      }
      • auth: {
            key?: string;
            permit?: SecretJS.Permit;
        }
      • contract: SecretContract
      • owner: string
      • spender: string

    Returns Promise<GetAllowanceResponse>

  • Parameters

    • req: QueryByLabelRequest
    • Optional headers: HeadersInit

    Returns Promise<QueryContractAddressResponse>

  • Parameters

    • req: QueryByCodeIdRequest
    • Optional headers: HeadersInit

    Returns Promise<QueryCodeResponse>

  • Parameters

    • req: QueryByCodeIdRequest
    • Optional headers: HeadersInit

    Returns Promise<QueryCodeHashResponse>

  • Parameters

    • req: QueryByContractAddressRequest
    • Optional headers: HeadersInit

    Returns Promise<QueryCodeHashResponse>

  • Parameters

    • req: Empty
    • Optional headers: HeadersInit

    Returns Promise<QueryCodesResponse>

  • Parameters

    • req: QueryByContractAddressRequest
    • Optional headers: HeadersInit

    Returns Promise<QueryContractInfoResponse>

  • Parameters

    • req: QueryByCodeIdRequest
    • Optional headers: HeadersInit

    Returns Promise<QueryContractsByCodeIdResponse>

  • Parameters

    • __namedParameters: {
          address: string;
          auth: {
              key?: string;
              permit?: SecretJS.Permit;
          };
          contract: SecretContract;
      }
      • address: string
      • auth: {
            key?: string;
            permit?: SecretJS.Permit;
        }
      • contract: SecretContract

    Returns Promise<GetBalanceResponse>

  • Parameters

    • __namedParameters: {
          contract: SecretContract;
      }
      • contract: SecretContract

    Returns Promise<GetTokenParamsResponse>

  • Parameters

    • __namedParameters: {
          address: string;
          auth: {
              key?: string;
              permit?: SecretJS.Permit;
          };
          contract: SecretContract;
          page?: number;
          page_size: number;
          should_filter_decoys?: boolean;
      }
      • address: string
      • auth: {
            key?: string;
            permit?: SecretJS.Permit;
        }
      • contract: SecretContract
      • Optional page?: number
      • page_size: number
      • Optional should_filter_decoys?: boolean

    Returns Promise<TransactionHistoryResponse>

  • Parameters

    • __namedParameters: {
          address: string;
          auth: {
              key?: string;
              permit?: SecretJS.Permit;
          };
          contract: SecretContract;
          page?: number;
          page_size: number;
          should_filter_decoys?: boolean;
      }
      • address: string
      • auth: {
            key?: string;
            permit?: SecretJS.Permit;
        }
      • contract: SecretContract
      • Optional page?: number
      • page_size: number
      • Optional should_filter_decoys?: boolean

    Returns Promise<TransferHistoryResponse>

  • Parameters

    • req: QueryByContractAddressRequest
    • Optional headers: HeadersInit

    Returns Promise<QueryContractLabelResponse>

  • Query a Secret Contract. May return a string on error.

    Type Parameters

    • T extends object

    • R extends unknown

    Parameters

    Returns Promise<R>

Generated using TypeDoc