Hierarchy (View Summary)

Constructors

  • Parameters

    • url: string

      Url for node API

    • options: NodeOptionalParams & {
          ignoreVersion?: boolean;
          retryCount?: number;
          retryOverallDelay?: number;
      } = {}

      Options

      • OptionalignoreVersion?: boolean

        Print warning instead of throwing exception if node or consensus protocol version is not supported, use with caution

      • OptionalretryCount?: number

        Amount of extra requests to do in case of failure

      • OptionalretryOverallDelay?: number

        Time in ms to wait between all retries

    Returns Node

Properties

$host: string

Methods

  • Parameters

    • Optionaloptions: OperationOptions

    Returns Promise<Status>

  • Returns Promise<boolean>

  • Returns network ID provided by node. This method won't do extra requests on subsequent calls.

    Returns Promise<string>

  • Get the pinning transaction for the current epoch. Returns both the individual parameters as well as the parent chain type (aeternity, btc etc.), network id and a packaged 80 byte readymade payload for that chain type.

    Parameters

    Returns Promise<PinningTx>

  • Dry-run unsigned transactions on top of a given block. Supports all TXs except GAMetaTx, PayingForTx and OffchainTx. The maximum gas limit of all calls is capped. The maximum gas limit per request is a global node setting. Since DryRunCallReq object do not have a mandatory gas field, if not set a default value of 1000000 is being used instead.

    Parameters

    Returns Promise<DryRunResults>