nimiq-rpc-client-ts
Version:
A Nimiq RPC client for TypeScript
147 lines (142 loc) • 8.12 kB
JavaScript
;
const client = require('./client.cjs');
const http = require('./http.cjs');
const ws = require('./ws.cjs');
const types = require('./types.cjs');
require('isomorphic-ws');
exports.__getAuth = client.__getAuth;
exports.__getBaseUrl = client.__getBaseUrl;
exports.inBrowser = client.inBrowser;
exports.initRpcClient = client.initRpcClient;
exports.addVotingKey = http.addVotingKey;
exports.createAccount = http.createAccount;
exports.createDeactivateValidatorTransaction = http.createDeactivateValidatorTransaction;
exports.createDeleteValidatorTransaction = http.createDeleteValidatorTransaction;
exports.createNewHtlcTransaction = http.createNewHtlcTransaction;
exports.createNewStakerTransaction = http.createNewStakerTransaction;
exports.createNewValidatorTransaction = http.createNewValidatorTransaction;
exports.createNewVestingTransaction = http.createNewVestingTransaction;
exports.createReactivateValidatorTransaction = http.createReactivateValidatorTransaction;
exports.createRedeemEarlyHtlcTransaction = http.createRedeemEarlyHtlcTransaction;
exports.createRedeemRegularHtlcTransaction = http.createRedeemRegularHtlcTransaction;
exports.createRedeemTimeoutHtlcTransaction = http.createRedeemTimeoutHtlcTransaction;
exports.createRedeemVestingTransaction = http.createRedeemVestingTransaction;
exports.createRemoveStakeTransaction = http.createRemoveStakeTransaction;
exports.createRetireStakeTransaction = http.createRetireStakeTransaction;
exports.createRetireValidatorTransaction = http.createRetireValidatorTransaction;
exports.createSetActiveStakeTransaction = http.createSetActiveStakeTransaction;
exports.createStakeTransaction = http.createStakeTransaction;
exports.createTransaction = http.createTransaction;
exports.createUpdateStakerTransaction = http.createUpdateStakerTransaction;
exports.createUpdateValidatorTransaction = http.createUpdateValidatorTransaction;
exports.getAccountByAddress = http.getAccountByAddress;
exports.getAccounts = http.getAccounts;
exports.getActiveValidators = http.getActiveValidators;
exports.getAddress = http.getAddress;
exports.getBatchAt = http.getBatchAt;
exports.getBatchIndexAt = http.getBatchIndexAt;
exports.getBatchNumber = http.getBatchNumber;
exports.getBlockAfterJail = http.getBlockAfterJail;
exports.getBlockAfterReportingWindow = http.getBlockAfterReportingWindow;
exports.getBlockByHash = http.getBlockByHash;
exports.getBlockByNumber = http.getBlockByNumber;
exports.getBlockNumber = http.getBlockNumber;
exports.getBlockchainState = http.getBlockchainState;
exports.getCurrentPenalizedSlots = http.getCurrentPenalizedSlots;
exports.getElectionBlockAfter = http.getElectionBlockAfter;
exports.getElectionBlockBefore = http.getElectionBlockBefore;
exports.getElectionBlockOf = http.getElectionBlockOf;
exports.getElectionBlockOfEpoch = http.getElectionBlockOfEpoch;
exports.getEpochAt = http.getEpochAt;
exports.getEpochIndexAt = http.getEpochIndexAt;
exports.getEpochNumber = http.getEpochNumber;
exports.getFirstBatchOfEpoch = http.getFirstBatchOfEpoch;
exports.getFirstBlockOf = http.getFirstBlockOf;
exports.getFirstBlockOfBatch = http.getFirstBlockOfBatch;
exports.getFirstBlockOfEpoch = http.getFirstBlockOfEpoch;
exports.getInherentsByBatchNumber = http.getInherentsByBatchNumber;
exports.getInherentsByBlockNumber = http.getInherentsByBlockNumber;
exports.getLastElectionBlock = http.getLastElectionBlock;
exports.getLastMacroBlock = http.getLastMacroBlock;
exports.getLatestBlock = http.getLatestBlock;
exports.getMacroBlockAfter = http.getMacroBlockAfter;
exports.getMacroBlockBefore = http.getMacroBlockBefore;
exports.getMacroBlockOf = http.getMacroBlockOf;
exports.getMacroBlockOfBatch = http.getMacroBlockOfBatch;
exports.getMinFeePerByte = http.getMinFeePerByte;
exports.getPeerCount = http.getPeerCount;
exports.getPeerId = http.getPeerId;
exports.getPeerList = http.getPeerList;
exports.getPolicyConstants = http.getPolicyConstants;
exports.getPreviousPenalizedSlots = http.getPreviousPenalizedSlots;
exports.getRawTransactionInfo = http.getRawTransactionInfo;
exports.getSigningKey = http.getSigningKey;
exports.getSlotAt = http.getSlotAt;
exports.getStakerByAddress = http.getStakerByAddress;
exports.getStakersByValidatorAddress = http.getStakersByValidatorAddress;
exports.getSupplyAt = http.getSupplyAt;
exports.getTransactionByHash = http.getTransactionByHash;
exports.getTransactionFromMempool = http.getTransactionFromMempool;
exports.getTransactionHashesByAddress = http.getTransactionHashesByAddress;
exports.getTransactionsByAddress = http.getTransactionsByAddress;
exports.getTransactionsByBatchNumber = http.getTransactionsByBatchNumber;
exports.getTransactionsByBlockNumber = http.getTransactionsByBlockNumber;
exports.getValidatorByAddress = http.getValidatorByAddress;
exports.getValidators = http.getValidators;
exports.getVotingKey = http.getVotingKey;
exports.getVotingKeys = http.getVotingKeys;
exports.getZkpState = http.getZkpState;
exports.importRawKey = http.importRawKey;
exports.isAccountImported = http.isAccountImported;
exports.isAccountUnlocked = http.isAccountUnlocked;
exports.isConsensusEstablished = http.isConsensusEstablished;
exports.isElectionBlockAt = http.isElectionBlockAt;
exports.isMacroBlockAt = http.isMacroBlockAt;
exports.isMicroBlockAt = http.isMicroBlockAt;
exports.isValidatorElected = http.isValidatorElected;
exports.isValidatorSynced = http.isValidatorSynced;
exports.listAccounts = http.listAccounts;
exports.lockAccount = http.lockAccount;
exports.mempool = http.mempool;
exports.mempoolContent = http.mempoolContent;
exports.pushHighPriorityTransaction = http.pushHighPriorityTransaction;
exports.pushTransaction = http.pushTransaction;
exports.removeAccount = http.removeAccount;
exports.rpcCall = http.rpcCall;
exports.sendDeactivateValidatorTransaction = http.sendDeactivateValidatorTransaction;
exports.sendDeleteValidatorTransaction = http.sendDeleteValidatorTransaction;
exports.sendNewHtlcTransaction = http.sendNewHtlcTransaction;
exports.sendNewStakerTransaction = http.sendNewStakerTransaction;
exports.sendNewValidatorTransaction = http.sendNewValidatorTransaction;
exports.sendNewVestingTransaction = http.sendNewVestingTransaction;
exports.sendRawTransaction = http.sendRawTransaction;
exports.sendReactivateValidatorTransaction = http.sendReactivateValidatorTransaction;
exports.sendRedeemEarlyHtlcTransaction = http.sendRedeemEarlyHtlcTransaction;
exports.sendRedeemRegularHtlcTransaction = http.sendRedeemRegularHtlcTransaction;
exports.sendRedeemTimeoutHtlcTransaction = http.sendRedeemTimeoutHtlcTransaction;
exports.sendRedeemVestingTransaction = http.sendRedeemVestingTransaction;
exports.sendRemoveStakeTransaction = http.sendRemoveStakeTransaction;
exports.sendRetireStakeTransaction = http.sendRetireStakeTransaction;
exports.sendRetireValidatorTransaction = http.sendRetireValidatorTransaction;
exports.sendSetActiveStakeTransaction = http.sendSetActiveStakeTransaction;
exports.sendStakeTransaction = http.sendStakeTransaction;
exports.sendTransaction = http.sendTransaction;
exports.sendUpdateStakerTransaction = http.sendUpdateStakerTransaction;
exports.sendUpdateValidatorTransaction = http.sendUpdateValidatorTransaction;
exports.setAutomaticReactivation = http.setAutomaticReactivation;
exports.sign = http.sign;
exports.signRedeemEarlyHtlcTransaction = http.signRedeemEarlyHtlcTransaction;
exports.unlockAccount = http.unlockAccount;
exports.verifySignature = http.verifySignature;
exports.rpcSubscribe = ws.rpcSubscribe;
exports.subscribeForHeadBlock = ws.subscribeForHeadBlock;
exports.subscribeForHeadBlockHash = ws.subscribeForHeadBlockHash;
exports.subscribeForLogsByAddressesAndTypes = ws.subscribeForLogsByAddressesAndTypes;
exports.subscribeForValidatorElectionByAddress = ws.subscribeForValidatorElectionByAddress;
exports.AccountType = types.AccountType;
exports.BlockSubscriptionType = types.BlockSubscriptionType;
exports.BlockType = types.BlockType;
exports.HashAlgorithm = types.HashAlgorithm;
exports.InherentType = types.InherentType;
exports.LogType = types.LogType;
exports.RetrieveType = types.RetrieveType;