import * as coreClient from "@azure/core-client"; import { NodeOptionalParams, GetAccountByPubkeyOptionalParams, GetAccountByPubkeyResponse, GetAccountByPubkeyAndHashOptionalParams, GetAccountByPubkeyAndHashResponse, GetAccountByPubkeyAndHeightOptionalParams, GetAccountByPubkeyAndHeightResponse, GetAccountNextNonceOptionalParams, GetAccountNextNonceResponse, GetPendingAccountTransactionsByPubkeyOptionalParams, GetPendingAccountTransactionsByPubkeyResponse, GetAuctionEntryByNameOptionalParams, GetAuctionEntryByNameResponse, GetChannelByPubkeyOptionalParams, GetChannelByPubkeyResponse, GetContractOptionalParams, GetContractResponse, GetContractCodeOptionalParams, GetContractCodeResponse, GetContractPoIOptionalParams, GetContractPoIResponse, GetCurrencyOptionalParams, GetCurrencyResponse, DryRunInput, ProtectedDryRunTxsOptionalParams, ProtectedDryRunTxsResponse, GetCurrentGenerationOptionalParams, GetCurrentGenerationResponse, GetGenerationByHashOptionalParams, GetGenerationByHashResponse, GetGenerationByHeightOptionalParams, GetGenerationByHeightResponse, GetTopHeaderOptionalParams, GetTopHeaderResponse, GetPinningTxOptionalParams, GetPinningTxResponse, GetHyperchainContractPubkeysOptionalParams, GetHyperchainContractPubkeysResponse, GetCurrentKeyBlockOptionalParams, GetCurrentKeyBlockResponse, GetCurrentKeyBlockHashOptionalParams, GetCurrentKeyBlockHashResponse, GetCurrentKeyBlockHeightOptionalParams, GetCurrentKeyBlockHeightResponse, GetKeyBlockByHashOptionalParams, GetKeyBlockByHashResponse, GetKeyBlockByHeightOptionalParams, GetKeyBlockByHeightResponse, GetPendingKeyBlockOptionalParams, GetPendingKeyBlockResponse, GetMicroBlockHeaderByHashOptionalParams, GetMicroBlockHeaderByHashResponse, GetMicroBlockTransactionsByHashOptionalParams, GetMicroBlockTransactionsByHashResponse, GetMicroBlockTransactionsCountByHashOptionalParams, GetMicroBlockTransactionsCountByHashResponse, GetMicroBlockTransactionByHashAndIndexOptionalParams, GetMicroBlockTransactionByHashAndIndexResponse, GetNameEntryByNameOptionalParams, GetNameEntryByNameResponse, GetNameEntryByNameHashOptionalParams, GetNameEntryByNameHashResponse, GetOracleByPubkeyOptionalParams, GetOracleByPubkeyResponse, GetOracleQueriesByPubkeyOptionalParams, GetOracleQueriesByPubkeyResponse, GetOracleQueryByPubkeyAndQueryIdOptionalParams, GetOracleQueryByPubkeyAndQueryIdResponse, GetPeerPubkeyOptionalParams, GetPeerPubkeyResponse, GetRecentGasPricesOptionalParams, GetRecentGasPricesResponse, GetStatusOptionalParams, GetStatusResponse, GetChainEndsOptionalParams, GetChainEndsResponse, GetSyncStatusOptionalParams, GetSyncStatusResponse, EncodedTx, PostTransactionOptionalParams, PostTransactionResponse, GetTransactionByHashOptionalParams, GetTransactionByHashResponse, GetTransactionInfoByHashOptionalParams, GetTransactionInfoByHashResponse } from "./models/index.js"; export declare class Node extends coreClient.ServiceClient { readonly $host: string; /** * Initializes a new instance of the Node class. * @param $host server parameter * @param options The parameter options */ constructor($host: string, options?: NodeOptionalParams); /** * Get an account by public key * @param pubkey The public key of the account * @param options The options parameters. */ getAccountByPubkey(pubkey: string, options?: GetAccountByPubkeyOptionalParams): Promise; /** * Get an account by public key after the block indicated by hash. Can be either a micro block or a * keyblock hash * @param pubkey The public key of the account * @param hash The hash of the block - either a keyblock or a microblock * @param options The options parameters. */ getAccountByPubkeyAndHash(pubkey: string, hash: string, options?: GetAccountByPubkeyAndHashOptionalParams): Promise; /** * Get an account by public key after the opening key block of the generation at height * @param pubkey The public key of the account * @param height The height * @param options The options parameters. */ getAccountByPubkeyAndHeight(pubkey: string, height: number, options?: GetAccountByPubkeyAndHeightOptionalParams): Promise; /** * Get an account's next nonce; This is computed according to whatever is the current account nonce and * what transactions are currently present in the transaction pool * @param pubkey The public key of the account * @param options The options parameters. */ getAccountNextNonce(pubkey: string, options?: GetAccountNextNonceOptionalParams): Promise; /** * Get pending account transactions by public key * @param pubkey The public key of the account * @param options The options parameters. */ getPendingAccountTransactionsByPubkey(pubkey: string, options?: GetPendingAccountTransactionsByPubkeyOptionalParams): Promise; /** * Get auction entry from naming system * @param name The name key of the name entry * @param options The options parameters. */ getAuctionEntryByName(name: string, options?: GetAuctionEntryByNameOptionalParams): Promise; /** * Get channel by public key * @param pubkey The pubkey of the channel * @param options The options parameters. */ getChannelByPubkey(pubkey: string, options?: GetChannelByPubkeyOptionalParams): Promise; /** * Get a contract by pubkey * @param pubkey Contract pubkey to get proof for * @param options The options parameters. */ getContract(pubkey: string, options?: GetContractOptionalParams): Promise; /** * Get contract code by pubkey * @param pubkey Contract pubkey to get proof for * @param options The options parameters. */ getContractCode(pubkey: string, options?: GetContractCodeOptionalParams): Promise; /** * Get a proof of inclusion for a contract * @param pubkey Contract pubkey to get proof for * @param options The options parameters. */ getContractPoI(pubkey: string, options?: GetContractPoIOptionalParams): Promise; /** * Get the currency metadata of a node * @param options The options parameters. */ getCurrency(options?: GetCurrencyOptionalParams): Promise; /** * 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. * @param body transactions * @param options The options parameters. */ protectedDryRunTxs(body: DryRunInput, options?: ProtectedDryRunTxsOptionalParams): Promise; /** * Get the current generation * @param options The options parameters. */ getCurrentGeneration(options?: GetCurrentGenerationOptionalParams): Promise; /** * Get a generation by hash * @param hash The hash of the key block * @param options The options parameters. */ getGenerationByHash(hash: string, options?: GetGenerationByHashOptionalParams): Promise; /** * Get a generation by height * @param height The height * @param options The options parameters. */ getGenerationByHeight(height: number, options?: GetGenerationByHeightOptionalParams): Promise; /** * Get the top header (either key or micro block) * @param options The options parameters. */ getTopHeader(options?: GetTopHeaderOptionalParams): Promise; /** * 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. * @param options The options parameters. */ getPinningTx(options?: GetPinningTxOptionalParams): Promise; /** * Get the pubkeys for the configured hyperchain contracts for staking, election and rewards * @param options The options parameters. */ getHyperchainContractPubkeys(options?: GetHyperchainContractPubkeysOptionalParams): Promise; /** * Get the current key block * @param options The options parameters. */ getCurrentKeyBlock(options?: GetCurrentKeyBlockOptionalParams): Promise; /** * Get the hash of the current key block * @param options The options parameters. */ getCurrentKeyBlockHash(options?: GetCurrentKeyBlockHashOptionalParams): Promise; /** * Get the height of the current key block * @param options The options parameters. */ getCurrentKeyBlockHeight(options?: GetCurrentKeyBlockHeightOptionalParams): Promise; /** * Get a key block by hash * @param hash The hash of the block - either a keyblock or a microblock * @param options The options parameters. */ getKeyBlockByHash(hash: string, options?: GetKeyBlockByHashOptionalParams): Promise; /** * Get a key block by height * @param height The height * @param options The options parameters. */ getKeyBlockByHeight(height: number, options?: GetKeyBlockByHeightOptionalParams): Promise; /** * Get the pending key block * @param options The options parameters. */ getPendingKeyBlock(options?: GetPendingKeyBlockOptionalParams): Promise; /** * Get a micro block header by hash * @param hash The hash of the block - either a keyblock or a microblock * @param options The options parameters. */ getMicroBlockHeaderByHash(hash: string, options?: GetMicroBlockHeaderByHashOptionalParams): Promise; /** * Get micro block transactions by hash * @param hash The hash of the micro block * @param options The options parameters. */ getMicroBlockTransactionsByHash(hash: string, options?: GetMicroBlockTransactionsByHashOptionalParams): Promise; /** * Get micro block transaction count by hash * @param hash The hash of the micro block * @param options The options parameters. */ getMicroBlockTransactionsCountByHash(hash: string, options?: GetMicroBlockTransactionsCountByHashOptionalParams): Promise; /** * Get a micro block transaction by hash and index * @param hash The hash of the micro block * @param index The index of the transaction in a block * @param options The options parameters. */ getMicroBlockTransactionByHashAndIndex(hash: string, index: number, options?: GetMicroBlockTransactionByHashAndIndexOptionalParams): Promise; /** * Get name entry from naming system * @param name The name key of the name entry * @param options The options parameters. */ getNameEntryByName(name: string, options?: GetNameEntryByNameOptionalParams): Promise; /** * Get name entry from naming system * @param nameHash The name hash of the name entry * @param options The options parameters. */ getNameEntryByNameHash(nameHash: string, options?: GetNameEntryByNameHashOptionalParams): Promise; /** * Get an oracle by public key * @param pubkey The public key of the oracle * @param options The options parameters. */ getOracleByPubkey(pubkey: string, options?: GetOracleByPubkeyOptionalParams): Promise; /** * Get oracle queries by public key * @param pubkey The public key of the oracle * @param options The options parameters. */ getOracleQueriesByPubkey(pubkey: string, options?: GetOracleQueriesByPubkeyOptionalParams): Promise; /** * Get an oracle query by public key and query ID * @param pubkey The public key of the oracle * @param queryId The ID of the query * @param options The options parameters. */ getOracleQueryByPubkeyAndQueryId(pubkey: string, queryId: string, options?: GetOracleQueryByPubkeyAndQueryIdOptionalParams): Promise; /** * Get peer public key * @param options The options parameters. */ getPeerPubkey(options?: GetPeerPubkeyOptionalParams): Promise; /** * Get minimum gas prices in recent blocks * @param options The options parameters. */ getRecentGasPrices(options?: GetRecentGasPricesOptionalParams): Promise; /** * Get the status of a node * @param options The options parameters. */ getStatus(options?: GetStatusOptionalParams): Promise; /** * Get oldest keyblock hashes counting from genesis including orphans * @param options The options parameters. */ getChainEnds(options?: GetChainEndsOptionalParams): Promise; /** * Get the sync status of a node * @param options The options parameters. */ getSyncStatus(options?: GetSyncStatusOptionalParams): Promise; /** * Post a new transaction * @param body The new transaction * @param options The options parameters. */ postTransaction(body: EncodedTx, options?: PostTransactionOptionalParams): Promise; /** * Get a transaction by hash * @param hash The hash of the transaction * @param options The options parameters. */ getTransactionByHash(hash: string, options?: GetTransactionByHashOptionalParams): Promise; /** * @param hash The hash of the transaction * @param options The options parameters. */ getTransactionInfoByHash(hash: string, options?: GetTransactionInfoByHashOptionalParams): Promise; }