Options
All
  • Public
  • Public/Protected
  • All
Menu

Module muta-client

Index

Type aliases

Batched

Batched<T>: {}

Type parameters

  • T

Type declaration

  • [key: string]: T

CheckPromise

CheckPromise<T>: (x: T) => Promise<boolean> | boolean

Type parameters

  • T

Type declaration

    • (x: T): Promise<boolean> | boolean
    • Parameters

      • x: T

      Returns Promise<boolean> | boolean

PromiseThunk

PromiseThunk<T>: () => Promise<T>

Type parameters

  • T

Type declaration

    • (): Promise<T>
    • Returns Promise<T>

RawClient

RawClient: ReturnType<typeof getSdk>

RawReceipt

RawReceipt: Omit<DeepNonNullable<GetReceiptQuery>["getReceipt"], "__typename">

RawTransaction

RawTransaction: Omit<DeepNonNullable<GetTransactionQuery>["getTransaction"], "__typename">

Variables

Const DEFAULT_RETRY_INTERVAL

DEFAULT_RETRY_INTERVAL: 500 = 500

Const DEFAULT_RETRY_TIMEOUT

DEFAULT_RETRY_TIMEOUT: 100000 = 100000

Const receiptFragment

receiptFragment: "fragment receiptKeys on Receipt {txHashheightcyclesUsedevents {dataservicename}stateRootresponse {serviceNamemethodresponse {codeerrorMessagesucceedData}}}" = `fragment receiptKeys on Receipt {txHashheightcyclesUsedevents {dataservicename}stateRootresponse {serviceNamemethodresponse {codeerrorMessagesucceedData}}}`

Const txFragment

txFragment: "fragment transactionKeys on SignedTransaction {chainIdcyclesLimitcyclesPricemethodnoncepayloadpubkeyserviceNamesignaturetimeouttxHashsender}" = `fragment transactionKeys on SignedTransaction {chainIdcyclesLimitcyclesPricemethodnoncepayloadpubkeyserviceNamesignaturetimeouttxHashsender}`

a GraphQL fragment for transaction keys

fragment transactionKeys on SignedTransaction {
   chainId
   cyclesLimit
   cyclesPrice
   method
   nonce
   payload
   pubkey
   serviceName
   signature
   timeout
   txHash
}

Functions

Const DEFAULT_RESOLVE_CHECK

  • DEFAULT_RESOLVE_CHECK(): boolean

batchWithSameFragment

  • batchWithSameFragment<T>(endpoint: string, queries: string, fragment: string): Promise<Batched<T>>

chainHandlers

  • chainHandlers<Payload>(handlers: Handler<Payload>[]): Handler<Payload>

chunkAndBatch

Const generateReceiptQuerySegment

  • generateReceiptQuerySegment(txHash: string, index: number): string

Const generateTransactionQuerySegment

  • generateTransactionQuerySegment(txHash: string, index: number): string

getDefaultClientOption

hookOnBeforeSendTransaction

isBeforeSendTransactionHook

  • isBeforeSendTransactionHook(x: unknown): x is BeforeSendTransactionHook

Const nonNullable

  • nonNullable<T>(t: T): boolean

retry

wait

  • wait(ms: number): Promise<unknown>

Object literals

Const defaultSerializer

defaultSerializer: object

deserialize

deserialize: parse = safeParseJSON

serialize

  • serialize(x: unknown): string

Generated using TypeDoc