Class _Middleware

Hierarchy

  • {
        $host: string;
        direction?: string;
        limit?: number;
        scope?: string;
        getAccountActivities(...args) => Promise<{
            data?: ({ blockHash: string; height: number; payload: { [x: string]: unknown; }; type: string; })[];
            next: null | string;
            prev: null | string;
        }>;
        getAex141ByContract(...args) => Promise<{
            baseUrl: string;
            contractId: string;
            contractTxi: string;
            extensions: string[];
            limits: { [x: string]: unknown; };
        }>;
        getAex141ContractOwners(...args) => Promise<{
            data?: ({ accountId: string; contractId: string; tokenId: number; })[];
            next: null | string;
            prev: null | string;
        }>;
        getAex141ContractTemplates(...args) => Promise<{
            data?: ({ contractId: string; edition?: { [x: string]: unknown; } | undefined; logIdx: number; templateId: number; txHash: `th_${string}`; })[];
            next: null | string;
            prev: null | string;
        }>;
        getAex141OwnedTokens(...args) => Promise<{
            data?: ({ accountId: string; contractId: string; tokenId: number; })[];
            next: null | string;
            prev: null | string;
        }>;
        getAex141TemplateTokens(...args) => Promise<{
            data?: ({ logIdx: number; ownerId: string; tokenId: number; txHash: `th_${string}`; })[];
            next: null | string;
            prev: null | string;
        }>;
        getAex141TokenOwner(...args) => Promise<{
            body: string;
        }>;
        getAex9AccountBalances(...args) => Promise<{
            data?: ({ amount: number; blockHash: number; contractId: string; decimals: number; height: number; tokenName: string; tokenSymbol: string; txHash: `th_${string}`; txIndex: number; txType: string; })[];
            next: null | string;
            prev: null | string;
        }>;
        getAex9ByContract(...args) => Promise<{
            contractId: string;
            contractTxi: number;
            decimals: number;
            eventSupply: number;
            extensions?: string[];
            holders: number;
            initialSupply: number;
            name: string;
            symbol: string;
        }>;
        getAex9ContractAccountBalance(...args) => Promise<{
            account?: string;
            amount?: number;
            contract?: string;
        }>;
        getAex9ContractAccountBalanceHistory(...args) => Promise<{
            account?: string;
            amount?: number;
            contract?: string;
            height?: number;
        }>;
        getAex9ContractBalances(...args) => Promise<{
            data?: ({ accountId: string; amount: number; blockHash: number; contractId: number; height: number; lastLogIdx: number; lastTxHash: string; })[];
            next: null | string;
            prev: null | string;
        }>;
        getAex9LogsCount(...args) => Promise<{
            body: number;
        }>;
        getAex9PairTransfers(...args) => Promise<{
            data?: ({ amount: number; blockHeight: number; callTxi: number; contractId: string; logIdx: number; microTime: number; recipient: string; sender: string; })[];
            next: null | string;
            prev: null | string;
        }>;
        getAex9RecipientTransfers(...args) => Promise<{
            data?: ({ amount: number; blockHeight: number; callTxi: number; contractId: string; logIdx: number; microTime: number; recipient: string; sender: string; })[];
            next: null | string;
            prev: null | string;
        }>;
        getAex9SenderTransfers(...args) => Promise<{
            data?: ({ amount: number; blockHeight: number; callTxi: number; contractId: string; logIdx: number; microTime: number; recipient: string; sender: string; })[];
            next: null | string;
            prev: null | string;
        }>;
        getAex9TokensCount(...args) => Promise<{
            body: number;
        }>;
        getBlock(...args) => Promise<{
            beneficiary?: string;
            hash?: string;
            height?: number;
            info?: string;
            miner?: string;
            nonce?: string;
            pow?: number[];
            prevHash?: string;
            prevKeyHash?: string;
            stateHash?: string;
            target?: number;
            time?: number;
            version?: number;
        }>;
        getBlockByMbi(...args) => Promise<{
            beneficiary?: string;
            hash?: string;
            height?: number;
            info?: string;
            miner?: string;
            nonce?: string;
            pow?: number[];
            prevHash?: string;
            prevKeyHash?: string;
            stateHash?: string;
            target?: number;
            time?: number;
            version?: number;
        }>;
        getBlocks(...args) => Promise<{
            data?: ({ beneficiary?: string | undefined; hash?: string | undefined; height?: number | undefined; info?: string | undefined; miner?: string | undefined; nonce?: string | undefined; pow?: number[] | undefined; ... 5 more ...; version?: number | undefined; })[];
            next: null | string;
            prev: null | string;
        }>;
        getChannel(...args) => Promise<{
            amount?: number;
            channel?: string;
            channelReserve?: number;
            delegateIds?: { [x: string]: unknown; };
            initiator?: string;
            initiatorAmount?: number;
            lastUpdatedHeight?: string;
            lastUpdatedTxType?: string;
            lockPeriod?: number;
            lockedUntil?: number;
            responder?: string;
            responderAmount?: number;
            round?: number;
            soloRound?: number;
            stateHash?: string;
            updatesCount?: string;
        }>;
        getChannels(...args) => Promise<{
            data?: ({ amount?: number | undefined; channel?: string | undefined; channelReserve?: number | undefined; delegateIds?: { [x: string]: unknown; } | undefined; initiator?: string | undefined; initiatorAmount?: number | undefined; ... 9 more ...; updatesCount?: string | undefined; })[];
            next: null | string;
            prev: null | string;
        }>;
        getContractsCalls(...args) => Promise<{
            data?: ({ blockHash?: string | undefined; callTxHash?: string | undefined; callTxi?: number | undefined; contractId?: string | undefined; contractTxi?: number | undefined; function?: string | undefined; height?: number | undefined; internalTx?: { ...; } | undefined; localIdx?: number | undefined; microIndex?: number | undef...)[];
            next: null | string;
            prev: null | string;
        }>;
        getContractsLogs(...args) => Promise<{
            data?: ({ args?: number[] | undefined; blockHash?: string | undefined; callTxHash?: string | undefined; callTxi?: number | undefined; contractId?: string | undefined; contractTxi?: number | undefined; ... 7 more ...; parentContractId?: number | undefined; })[];
            next: null | string;
            prev: null | string;
        }>;
        getDeltastats(...args) => Promise<{
            data?: ({ auctionsStarted?: number | undefined; blockReward?: number | undefined; contractsCreated?: number | undefined; devReward?: number | undefined; height?: number | undefined; namesActivated?: number | undefined; namesExpired?: number | undefined; namesRevoked?: number | undefined; oraclesExpired?: number | undefined;...)[];
            next: null | string;
            prev: null | string;
        }>;
        getKeyBlock(...args) => Promise<{
            beneficiary?: string;
            hash?: string;
            height?: number;
            info?: string;
            miner?: string;
            nonce?: string;
            pow?: number[];
            prevHash?: string;
            prevKeyHash?: string;
            stateHash?: string;
            target?: number;
            time?: number;
            version?: number;
        }>;
        getKeyBlockMicroBlocks(...args) => Promise<{
            data?: ({ hash?: string | undefined; height?: number | undefined; microBlockIndex?: number | undefined; pofHash?: number[] | undefined; prevHash?: string | undefined; prevKeyHash?: string | undefined; stateHash?: string | undefined; time?: number | undefined; transactionsCount?: number | undefined; version?: number | undefi...)[];
            next: null | string;
            prev: null | string;
        }>;
        getKeyBlocks(...args) => Promise<{
            data?: ({ beneficiary?: string | undefined; hash?: string | undefined; height?: number | undefined; info?: string | undefined; miner?: string | undefined; nonce?: string | undefined; pow?: number[] | undefined; ... 5 more ...; version?: number | undefined; })[];
            next: null | string;
            prev: null | string;
        }>;
        getMicroBlock(...args) => Promise<{
            hash?: string;
            height?: number;
            microBlockIndex?: number;
            pofHash?: number[];
            prevHash?: string;
            prevKeyHash?: string;
            stateHash?: string;
            time?: number;
            transactionsCount?: number;
            version?: number;
        }>;
        getMicroBlockTransactions(...args) => Promise<{
            data?: ({ blockHash?: string | undefined; blockHeight?: number | undefined; hash?: string | undefined; microIndex?: number | undefined; microTime?: number | undefined; signatures?: string[] | undefined; tx?: { ...; } | undefined; txIndex?: number | undefined; })[];
            next: null | string;
            prev: null | string;
        }>;
        getName(...args) => Promise<{
            active?: boolean;
            hash?: string;
            info?: { activeFrom?: number | undefined; claims?: number[] | undefined; expireHeight?: number | undefined; ownership?: { current?: string | undefined; original?: string | undefined; } | undefined; pointers?: { ...; } | undefined; transfers?: number[] | undefined; updates?: string | undefined; };
            previous?: ({ active?: boolean | undefined; hash?: string | undefined; info?: { activeFrom?: number | undefined; claims?: number[] | undefined; expireHeight?: number | undefined; ownership?: { current?: string | undefined; original?: string | undefined; } | undefined; pointers?: { ...; } | undefined; transfers?: number[] | unde...)[];
            status?: string;
        }>;
        getNameAuction(...args) => Promise<{
            active?: boolean;
            info?: { auctionEnd?: number | undefined; bids?: number[] | undefined; lastBid?: { blockHash?: string | undefined; blockHeight?: number | undefined; hash?: string | undefined; microIndex?: number | undefined; microTime?: number | undefined; signatures?: string[] | undefined; tx?: { ...; } | undefined; } | undefined; name?:...;
        }>;
        getNameClaims(...args) => Promise<{
            blockHash?: string;
            height?: number;
            tx?: { [x: string]: unknown; };
        }>;
        getNamePointees(...args) => Promise<{
            active?: { [x: string]: unknown; };
            inactive?: { [x: string]: unknown; };
        }>;
        getNamePointers(...args) => Promise<{}>;
        getNameTransfers(...args) => Promise<{
            blockHash?: string;
            height?: number;
            tx?: { [x: string]: unknown; };
        }>;
        getNameUpdates(...args) => Promise<{
            blockHash?: string;
            height?: number;
            tx?: { [x: string]: unknown; };
        }>;
        getNames(...args) => Promise<{
            data?: ({ active?: boolean | undefined; hash?: string | undefined; info?: { activeFrom?: number | undefined; claims?: number[] | undefined; expireHeight?: number | undefined; ownership?: { current?: string | undefined; original?: string | undefined; } | undefined; pointers?: { ...; } | undefined; transfers?: number[] | unde...)[];
            next: null | string;
            prev: null | string;
        }>;
        getNamesAuctions(...args) => Promise<{
            active?: boolean;
            info?: { auctionEnd?: number | undefined; bids?: number[] | undefined; lastBid?: { blockHash?: string | undefined; blockHeight?: number | undefined; hash?: string | undefined; microIndex?: number | undefined; microTime?: number | undefined; signatures?: string[] | undefined; tx?: { ...; } | undefined; } | undefined; name?:...;
        }>;
        getOracle(...args) => Promise<{
            active: boolean;
            activeFrom: number;
            expireHeight: number;
            extends: ({ query: string; response: string; })[];
            oracle: string;
            queryFee: number;
            register: number;
        }>;
        getOracles(...args) => Promise<{
            data?: ({ active: boolean; activeFrom: number; expireHeight: number; extends: { query: string; response: string; }[]; oracle: string; queryFee: number; register: number; })[];
            next: null | string;
            prev: null | string;
        }>;
        getSortedAex141Contracts(...args) => Promise<{
            data?: ({ baseUrl: string; contractId: string; contractTxi: string; extensions: string[]; limits: { [x: string]: unknown; }; })[];
            next: null | string;
            prev: null | string;
        }>;
        getSortedAex9Tokens(...args) => Promise<{
            data?: ({ contractId: string; contractTxi: number; decimals: number; eventSupply: number; extensions?: string[] | undefined; holders: number; initialSupply: number; name: string; symbol: string; })[];
            next: null | string;
            prev: null | string;
        }>;
        getStatus(...args) => Promise<{
            mdwAsyncTasks: { longTasks: number; producerBuffer: number; totalPending: number; };
            mdwGensPerMinute: number;
            mdwHeight: number;
            mdwLastMigration: number;
            mdwRevision: string;
            mdwSynced: boolean;
            mdwSyncing: boolean;
            mdwTxIndex: number;
            mdwVersion: string;
            nodeHeight: number;
            nodeProgress: number;
            nodeRevision: string;
            nodeSyncing: boolean;
            nodeVersion: string;
        }>;
        getTotalstats(...args) => Promise<{
            data?: ({ auctionsStarted?: number | undefined; blockReward?: number | undefined; contractsCreated?: number | undefined; devReward?: number | undefined; height?: number | undefined; namesActivated?: number | undefined; namesExpired?: number | undefined; namesRevoked?: number | undefined; oraclesExpired?: number | undefined;...)[];
            next: null | string;
            prev: null | string;
        }>;
        getTransfers(...args) => Promise<{
            data?: ({ accountId?: string | undefined; amount?: number | undefined; height?: number | undefined; kind?: string | undefined; refTxi?: number | undefined; })[];
            next: null | string;
            prev: null | string;
        }>;
        getTx(...args) => Promise<{
            blockHash?: string;
            blockHeight?: number;
            hash?: string;
            microIndex?: number;
            microTime?: number;
            signatures?: string[];
            tx?: { [x: string]: unknown; };
            txIndex?: number;
        }>;
        getTxCount(...args) => Promise<{
            body: number;
        }>;
        getTxCountById(...args) => Promise<{
            channelCloseMutualTx?: { [x: string]: unknown; };
            channelCloseSoloTx?: { [x: string]: unknown; };
            channelCreateTx?: { [x: string]: unknown; };
            channelDepositTx?: { [x: string]: unknown; };
            channelForceProgressTx?: number;
            channelOffchainTx?: { [x: string]: unknown; };
            channelSettleTx?: { [x: string]: unknown; };
            channelSlashTx?: { [x: string]: unknown; };
            channelSnapshotSoloTx?: { [x: string]: unknown; };
            channelWithdrawTx?: { [x: string]: unknown; };
            contractCallTx?: { [x: string]: unknown; };
            contractCreateTx?: { [x: string]: unknown; };
            gaAttachTx?: { [x: string]: unknown; };
            gaMetaTx?: { [x: string]: unknown; };
            nameClaimTx?: { [x: string]: unknown; };
            namePreclaimTx?: { [x: string]: unknown; };
            nameRevokeTx?: { [x: string]: unknown; };
            nameTransferTx?: number;
            nameUpdateTx?: { [x: string]: unknown; };
            oracleExtendTx?: { [x: string]: unknown; };
            oracleQueryTx?: { [x: string]: unknown; };
            oracleRegisterTx?: { [x: string]: unknown; };
            oracleResponseTx?: { [x: string]: unknown; };
            payingForTx?: { [x: string]: unknown; };
            spendTx?: { [x: string]: unknown; };
        }>;
        getTxs(...args) => Promise<{
            data?: ({ blockHash?: string | undefined; blockHeight?: number | undefined; hash?: string | undefined; microIndex?: number | undefined; microTime?: number | undefined; signatures?: string[] | undefined; tx?: { ...; } | undefined; txIndex?: number | undefined; })[];
            next: null | string;
            prev: null | string;
        }>;
        searchNames(...args) => Promise<{
            data?: ({ active?: boolean | undefined; hash?: string | undefined; info?: { activeFrom?: number | undefined; claims?: number[] | undefined; expireHeight?: number | undefined; ownership?: { current?: string | undefined; original?: string | undefined; } | undefined; pointers?: { ...; } | undefined; transfers?: number[] | unde...)[];
            next: null | string;
            prev: null | string;
        }>;
    }
    • _Middleware

Constructors

  • Parameters

    • url: string

      Url for middleware API

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

      Options

    Returns _Middleware

Properties

$host: string
direction?: string
limit?: number
scope?: string

Methods

  • Get an account activities.

    Parameters

    • Rest ...args: [string, ...(undefined | {
          ownedOnly?: boolean;
          type?: string;
      })[]]

    Returns Promise<{
        data?: ({ blockHash: string; height: number; payload: { [x: string]: unknown; }; type: string; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get AEX141 contract meta-info, extensions, limits and stats.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        baseUrl: string;
        contractId: string;
        contractTxi: string;
        extensions: string[];
        limits: { [x: string]: unknown; };
    }>

  • Get owners of tokens of a AEX-141 contract.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        data?: ({ accountId: string; contractId: string; tokenId: number; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get templates AEX-141 contract tokens.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        data?: ({ contractId: string; edition?: { [x: string]: unknown; } | undefined; logIdx: number; templateId: number; txHash: `th_${string}`; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get tokens owned by an account.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        data?: ({ accountId: string; contractId: string; tokenId: number; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get AEX-141 template tokens.

    Parameters

    • Rest ...args: [string, number, ...(undefined | {})[]]

    Returns Promise<{
        data?: ({ logIdx: number; ownerId: string; tokenId: number; txHash: `th_${string}`; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get owner of a NFT (AEX-141 token).

    Parameters

    • Rest ...args: [string, number, ...(undefined | {})[]]

    Returns Promise<{
        body: string;
    }>

  • Get all AEX9 balances for an account on the last block.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        data?: ({ amount: number; blockHash: number; contractId: string; decimals: number; height: number; tokenName: string; tokenSymbol: string; txHash: `th_${string}`; txIndex: number; txType: string; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get AEX9 creation and meta_info information by contract id.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        contractId: string;
        contractTxi: number;
        decimals: number;
        eventSupply: number;
        extensions?: string[];
        holders: number;
        initialSupply: number;
        name: string;
        symbol: string;
    }>

  • Get AEX9 balance for an account on a contract.

    Parameters

    • Rest ...args: [string, string, string, ...(undefined | {})[]]

    Returns Promise<{
        account?: string;
        amount?: number;
        contract?: string;
    }>

  • Get AEX9 account balance on a contract throughout all heights when changed.

    Parameters

    • Rest ...args: [string, string, ...(undefined | {})[]]

    Returns Promise<{
        account?: string;
        amount?: number;
        contract?: string;
        height?: number;
    }>

  • Get AEX9 balances on a contract.

    Parameters

    • Rest ...args: [string, ...(undefined | {
          by?: string;
      })[]]

    Returns Promise<{
        data?: ({ accountId: string; amount: number; blockHash: number; contractId: number; height: number; lastLogIdx: number; lastTxHash: string; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get AEX9 token events count.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        body: number;
    }>

  • Get AEX9 transfers filtered by sender and recipient.

    Parameters

    • Rest ...args: [string, string, ...(undefined | {})[]]

    Returns Promise<{
        data?: ({ amount: number; blockHeight: number; callTxi: number; contractId: string; logIdx: number; microTime: number; recipient: string; sender: string; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get AEX9 transfers filtered by recipient.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        data?: ({ amount: number; blockHeight: number; callTxi: number; contractId: string; logIdx: number; microTime: number; recipient: string; sender: string; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get AEX9 transfers filtered by sender.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        data?: ({ amount: number; blockHeight: number; callTxi: number; contractId: string; logIdx: number; microTime: number; recipient: string; sender: string; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get AEX9 tokens count.

    Parameters

    • Rest ...args: (undefined | {})[]

    Returns Promise<{
        body: number;
    }>

  • Get a single block.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        beneficiary?: string;
        hash?: string;
        height?: number;
        info?: string;
        miner?: string;
        nonce?: string;
        pow?: number[];
        prevHash?: string;
        prevKeyHash?: string;
        stateHash?: string;
        target?: number;
        time?: number;
        version?: number;
    }>

  • Get a single block.

    Parameters

    • Rest ...args: [number, number, ...(undefined | {})[]]

    Returns Promise<{
        beneficiary?: string;
        hash?: string;
        height?: number;
        info?: string;
        miner?: string;
        nonce?: string;
        pow?: number[];
        prevHash?: string;
        prevKeyHash?: string;
        stateHash?: string;
        target?: number;
        time?: number;
        version?: number;
    }>

  • Get multiple blocks.

    Parameters

    • Rest ...args: (undefined | {})[]

    Returns Promise<{
        data?: ({ beneficiary?: string | undefined; hash?: string | undefined; height?: number | undefined; info?: string | undefined; miner?: string | undefined; nonce?: string | undefined; pow?: number[] | undefined; ... 5 more ...; version?: number | undefined; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get a single channel.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        amount?: number;
        channel?: string;
        channelReserve?: number;
        delegateIds?: { [x: string]: unknown; };
        initiator?: string;
        initiatorAmount?: number;
        lastUpdatedHeight?: string;
        lastUpdatedTxType?: string;
        lockPeriod?: number;
        lockedUntil?: number;
        responder?: string;
        responderAmount?: number;
        round?: number;
        soloRound?: number;
        stateHash?: string;
        updatesCount?: string;
    }>

  • Get multiple channels.

    Parameters

    • Rest ...args: (undefined | {
          state?: string;
      })[]

    Returns Promise<{
        data?: ({ amount?: number | undefined; channel?: string | undefined; channelReserve?: number | undefined; delegateIds?: { [x: string]: unknown; } | undefined; initiator?: string | undefined; initiatorAmount?: number | undefined; ... 9 more ...; updatesCount?: string | undefined; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get contract calls.

    Parameters

    • Rest ...args: (undefined | {})[]

    Returns Promise<{
        data?: ({ blockHash?: string | undefined; callTxHash?: string | undefined; callTxi?: number | undefined; contractId?: string | undefined; contractTxi?: number | undefined; function?: string | undefined; height?: number | undefined; internalTx?: { ...; } | undefined; localIdx?: number | undefined; microIndex?: number | undef...)[];
        next: null | string;
        prev: null | string;
    }>

  • Get contract logs.

    Parameters

    • Rest ...args: (undefined | {
          aexnArgs?: boolean;
          contractId?: string;
          data?: string;
          event?: string;
          functionPrefix?: string;
      })[]

    Returns Promise<{
        data?: ({ args?: number[] | undefined; blockHash?: string | undefined; callTxHash?: string | undefined; callTxi?: number | undefined; contractId?: string | undefined; contractTxi?: number | undefined; ... 7 more ...; parentContractId?: number | undefined; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get delta stats.

    Parameters

    • Rest ...args: (undefined | {})[]

    Returns Promise<{
        data?: ({ auctionsStarted?: number | undefined; blockReward?: number | undefined; contractsCreated?: number | undefined; devReward?: number | undefined; height?: number | undefined; namesActivated?: number | undefined; namesExpired?: number | undefined; namesRevoked?: number | undefined; oraclesExpired?: number | undefined;...)[];
        next: null | string;
        prev: null | string;
    }>

  • Get a single key block.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        beneficiary?: string;
        hash?: string;
        height?: number;
        info?: string;
        miner?: string;
        nonce?: string;
        pow?: number[];
        prevHash?: string;
        prevKeyHash?: string;
        stateHash?: string;
        target?: number;
        time?: number;
        version?: number;
    }>

  • Get the key block micro blocks.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        data?: ({ hash?: string | undefined; height?: number | undefined; microBlockIndex?: number | undefined; pofHash?: number[] | undefined; prevHash?: string | undefined; prevKeyHash?: string | undefined; stateHash?: string | undefined; time?: number | undefined; transactionsCount?: number | undefined; version?: number | undefi...)[];
        next: null | string;
        prev: null | string;
    }>

  • Get multiple key blocks.

    Parameters

    • Rest ...args: (undefined | {})[]

    Returns Promise<{
        data?: ({ beneficiary?: string | undefined; hash?: string | undefined; height?: number | undefined; info?: string | undefined; miner?: string | undefined; nonce?: string | undefined; pow?: number[] | undefined; ... 5 more ...; version?: number | undefined; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get a micro block

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        hash?: string;
        height?: number;
        microBlockIndex?: number;
        pofHash?: number[];
        prevHash?: string;
        prevKeyHash?: string;
        stateHash?: string;
        time?: number;
        transactionsCount?: number;
        version?: number;
    }>

  • Get a micro block transactions

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        data?: ({ blockHash?: string | undefined; blockHeight?: number | undefined; hash?: string | undefined; microIndex?: number | undefined; microTime?: number | undefined; signatures?: string[] | undefined; tx?: { ...; } | undefined; txIndex?: number | undefined; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get a single name.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        active?: boolean;
        hash?: string;
        info?: { activeFrom?: number | undefined; claims?: number[] | undefined; expireHeight?: number | undefined; ownership?: { current?: string | undefined; original?: string | undefined; } | undefined; pointers?: { ...; } | undefined; transfers?: number[] | undefined; updates?: string | undefined; };
        previous?: ({ active?: boolean | undefined; hash?: string | undefined; info?: { activeFrom?: number | undefined; claims?: number[] | undefined; expireHeight?: number | undefined; ownership?: { current?: string | undefined; original?: string | undefined; } | undefined; pointers?: { ...; } | undefined; transfers?: number[] | unde...)[];
        status?: string;
    }>

  • Get name auction

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        active?: boolean;
        info?: { auctionEnd?: number | undefined; bids?: number[] | undefined; lastBid?: { blockHash?: string | undefined; blockHeight?: number | undefined; hash?: string | undefined; microIndex?: number | undefined; microTime?: number | undefined; signatures?: string[] | undefined; tx?: { ...; } | undefined; } | undefined; name?:...;
    }>

  • Get name claims

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        blockHash?: string;
        height?: number;
        tx?: { [x: string]: unknown; };
    }>

  • Get name pointees

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        active?: { [x: string]: unknown; };
        inactive?: { [x: string]: unknown; };
    }>

  • Get name pointers

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{}>

  • Get name transfers

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        blockHash?: string;
        height?: number;
        tx?: { [x: string]: unknown; };
    }>

  • Get name updates

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        blockHash?: string;
        height?: number;
        tx?: { [x: string]: unknown; };
    }>

  • Get multiple names.

    Parameters

    • Rest ...args: (undefined | {
          by?: string;
          ownedBy?: string;
          state?: string;
      })[]

    Returns Promise<{
        data?: ({ active?: boolean | undefined; hash?: string | undefined; info?: { activeFrom?: number | undefined; claims?: number[] | undefined; expireHeight?: number | undefined; ownership?: { current?: string | undefined; original?: string | undefined; } | undefined; pointers?: { ...; } | undefined; transfers?: number[] | unde...)[];
        next: null | string;
        prev: null | string;
    }>

  • Get multiple names.

    Parameters

    • Rest ...args: (undefined | {})[]

    Returns Promise<{
        active?: boolean;
        info?: { auctionEnd?: number | undefined; bids?: number[] | undefined; lastBid?: { blockHash?: string | undefined; blockHeight?: number | undefined; hash?: string | undefined; microIndex?: number | undefined; microTime?: number | undefined; signatures?: string[] | undefined; tx?: { ...; } | undefined; } | undefined; name?:...;
    }>

  • Get a single oracle.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        active: boolean;
        activeFrom: number;
        expireHeight: number;
        extends: ({ query: string; response: string; })[];
        oracle: string;
        queryFee: number;
        register: number;
    }>

  • Get multiple oracles.

    Parameters

    • Rest ...args: (undefined | {})[]

    Returns Promise<{
        data?: ({ active: boolean; activeFrom: number; expireHeight: number; extends: { query: string; response: string; }[]; oracle: string; queryFee: number; register: number; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get AEX141 contracts sorted by name or symbol.

    Parameters

    • Rest ...args: (undefined | {
          by?: string;
          prefix?: string;
      })[]

    Returns Promise<{
        data?: ({ baseUrl: string; contractId: string; contractTxi: string; extensions: string[]; limits: { [x: string]: unknown; }; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get AEX9 tokens sorted by name or symbol.

    Parameters

    • Rest ...args: (undefined | {
          by?: string;
          prefix?: string;
      })[]

    Returns Promise<{
        data?: ({ contractId: string; contractTxi: number; decimals: number; eventSupply: number; extensions?: string[] | undefined; holders: number; initialSupply: number; name: string; symbol: string; })[];
        next: null | string;
        prev: null | string;
    }>

  • Gets the current syncing status of both middleware and the node

    Parameters

    • Rest ...args: (undefined | {})[]

    Returns Promise<{
        mdwAsyncTasks: { longTasks: number; producerBuffer: number; totalPending: number; };
        mdwGensPerMinute: number;
        mdwHeight: number;
        mdwLastMigration: number;
        mdwRevision: string;
        mdwSynced: boolean;
        mdwSyncing: boolean;
        mdwTxIndex: number;
        mdwVersion: string;
        nodeHeight: number;
        nodeProgress: number;
        nodeRevision: string;
        nodeSyncing: boolean;
        nodeVersion: string;
    }>

  • Get total accumulated stats.

    Parameters

    • Rest ...args: (undefined | {})[]

    Returns Promise<{
        data?: ({ auctionsStarted?: number | undefined; blockReward?: number | undefined; contractsCreated?: number | undefined; devReward?: number | undefined; height?: number | undefined; namesActivated?: number | undefined; namesExpired?: number | undefined; namesRevoked?: number | undefined; oraclesExpired?: number | undefined;...)[];
        next: null | string;
        prev: null | string;
    }>

  • Get multiple transfers.

    Parameters

    • Rest ...args: (undefined | {})[]

    Returns Promise<{
        data?: ({ accountId?: string | undefined; amount?: number | undefined; height?: number | undefined; kind?: string | undefined; refTxi?: number | undefined; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get a single transaction.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        blockHash?: string;
        blockHeight?: number;
        hash?: string;
        microIndex?: number;
        microTime?: number;
        signatures?: string[];
        tx?: { [x: string]: unknown; };
        txIndex?: number;
    }>

  • Get count of transactions at the latest height.

    Parameters

    • Rest ...args: (undefined | {
          id?: string;
          txType?: string;
      })[]

    Returns Promise<{
        body: number;
    }>

  • Get transactions count and its type for given aeternity ID.

    Parameters

    • Rest ...args: [string, ...(undefined | {})[]]

    Returns Promise<{
        channelCloseMutualTx?: { [x: string]: unknown; };
        channelCloseSoloTx?: { [x: string]: unknown; };
        channelCreateTx?: { [x: string]: unknown; };
        channelDepositTx?: { [x: string]: unknown; };
        channelForceProgressTx?: number;
        channelOffchainTx?: { [x: string]: unknown; };
        channelSettleTx?: { [x: string]: unknown; };
        channelSlashTx?: { [x: string]: unknown; };
        channelSnapshotSoloTx?: { [x: string]: unknown; };
        channelWithdrawTx?: { [x: string]: unknown; };
        contractCallTx?: { [x: string]: unknown; };
        contractCreateTx?: { [x: string]: unknown; };
        gaAttachTx?: { [x: string]: unknown; };
        gaMetaTx?: { [x: string]: unknown; };
        nameClaimTx?: { [x: string]: unknown; };
        namePreclaimTx?: { [x: string]: unknown; };
        nameRevokeTx?: { [x: string]: unknown; };
        nameTransferTx?: number;
        nameUpdateTx?: { [x: string]: unknown; };
        oracleExtendTx?: { [x: string]: unknown; };
        oracleQueryTx?: { [x: string]: unknown; };
        oracleRegisterTx?: { [x: string]: unknown; };
        oracleResponseTx?: { [x: string]: unknown; };
        payingForTx?: { [x: string]: unknown; };
        spendTx?: { [x: string]: unknown; };
    }>

  • Get multiple transactions.

    Parameters

    • Rest ...args: (undefined | {
          account?: string;
          channel?: string;
          contract?: string;
          entrypoint?: string;
          oracle?: string;
          recipientId?: string;
          senderId?: string;
          type?: string[];
          typeGroup?: string[];
      })[]

    Returns Promise<{
        data?: ({ blockHash?: string | undefined; blockHeight?: number | undefined; hash?: string | undefined; microIndex?: number | undefined; microTime?: number | undefined; signatures?: string[] | undefined; tx?: { ...; } | undefined; txIndex?: number | undefined; })[];
        next: null | string;
        prev: null | string;
    }>

  • Get multiple names.

    Parameters

    • Rest ...args: (undefined | {})[]

    Returns Promise<{
        data?: ({ active?: boolean | undefined; hash?: string | undefined; info?: { activeFrom?: number | undefined; claims?: number[] | undefined; expireHeight?: number | undefined; ownership?: { current?: string | undefined; original?: string | undefined; } | undefined; pointers?: { ...; } | undefined; transfers?: number[] | unde...)[];
        next: null | string;
        prev: null | string;
    }>

Generated using TypeDoc