chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
1,633 lines • 126 kB
JavaScript
"use strict";
// This file is auto-generated by @hey-api/openapi-ts
Object.defineProperty(exports, "__esModule", { value: true });
exports.litecoinLatestBlock = exports.litecoinBalanceHistory = exports.litecoinAddressHistory = exports.litecoinAddressBalance = exports.litecoinUtxosByAddress = exports.polygonBlockByHash = exports.polygonBlockByHeight = exports.polygonNetworkStatus = exports.polygonEstimateGas = exports.polygonAddressTransactionCount = exports.polygonLogo = exports.polygonCallSmartContractFunction = exports.polygonBroadcastTransaction = exports.polygonFeeRate = exports.polygonBlockTransactions = exports.polygonGetBlockHeight = exports.polygonBalanceHistory = exports.polygonTransactionDetails = exports.polygonLatestBlock = exports.polygonAddressHistory = exports.polygonAddressTokenBalances = exports.polygonAddressBalance = exports.utxoBlockByHash = exports.utxoBlockByHeight = exports.utxoBalanceHistory = exports.utxoAddressHistory = exports.utxoAddressBalance = exports.utxoUtxosByAddress = exports.utxoEstimateTransactionSize = exports.utxoLogo = exports.utxoBroadcastTransaction = exports.utxoFeeRate = exports.utxoBlockTransactions = exports.utxoGetBlockHeight = exports.utxoTransactionDetails = exports.utxoMempool = exports.utxoLatestBlock = exports.rpcBase = exports.rpcBnb = exports.rpcAvalanche = exports.rpcArbitrum = exports.rpcPolygon = exports.rpcFantom = exports.rpcEthereum = exports.rpcDogecoin = exports.rpcLitecoin = exports.rpcBitcoincash = exports.rpcBitcointestnet = exports.rpcBitcoin = exports.globalMarkets = void 0;
exports.ethereumBalanceHistory = exports.ethereumTransactionDetails = exports.ethereumLatestBlock = exports.ethereumAddressHistory = exports.ethereumAddressTokenBalances = exports.ethereumAddressBalance = exports.evmBlockByHash = exports.evmBlockByHeight = exports.evmNetworkStatus = exports.evmEstimateGas = exports.evmAddressTransactionCount = exports.evmLogo = exports.evmCallSmartContractFunction = exports.evmBroadcastTransaction = exports.evmFeeRate = exports.evmBlockTransactions = exports.evmGetBlockHeight = exports.evmBalanceHistory = exports.evmTransactionDetails = exports.evmLatestBlock = exports.evmAddressHistory = exports.evmAddressTokenBalances = exports.evmAddressBalance = exports.fantomBlockByHash = exports.fantomBlockByHeight = exports.fantomNetworkStatus = exports.fantomEstimateGas = exports.fantomAddressTransactionCount = exports.fantomLogo = exports.fantomCallSmartContractFunction = exports.fantomBroadcastTransaction = exports.fantomFeeRate = exports.fantomBlockTransactions = exports.fantomGetBlockHeight = exports.fantomBalanceHistory = exports.fantomTransactionDetails = exports.fantomLatestBlock = exports.fantomAddressHistory = exports.fantomAddressTokenBalances = exports.fantomAddressBalance = exports.litecoinBlockByHash = exports.litecoinBlockByHeight = exports.litecoinEstimateTransactionSize = exports.litecoinLogo = exports.litecoinBroadcastTransaction = exports.litecoinFeeRate = exports.litecoinBlockTransactions = exports.litecoinGetBlockHeight = exports.litecoinTransactionDetails = exports.litecoinMempool = void 0;
exports.bitcoinTestnet3TransactionDetails = exports.bitcoinTestnet3Mempool = exports.bitcoinTestnet3LatestBlock = exports.bitcoinTestnet3BalanceHistory = exports.bitcoinTestnet3AddressHistory = exports.bitcoinTestnet3AddressBalance = exports.bitcoinTestnet3UtxosByAddress = exports.bnbBlockByHash = exports.bnbBlockByHeight = exports.bnbNetworkStatus = exports.bnbEstimateGas = exports.bnbAddressTransactionCount = exports.bnbLogo = exports.bnbCallSmartContractFunction = exports.bnbBroadcastTransaction = exports.bnbFeeRate = exports.bnbBlockTransactions = exports.bnbGetBlockHeight = exports.bnbBalanceHistory = exports.bnbTransactionDetails = exports.bnbLatestBlock = exports.bnbAddressHistory = exports.bnbAddressTokenBalances = exports.bnbAddressBalance = exports.dogecoinBlockByHash = exports.dogecoinBlockByHeight = exports.dogecoinEstimateTransactionSize = exports.dogecoinLogo = exports.dogecoinBroadcastTransaction = exports.dogecoinFeeRate = exports.dogecoinBlockTransactions = exports.dogecoinGetBlockHeight = exports.dogecoinTransactionDetails = exports.dogecoinMempool = exports.dogecoinLatestBlock = exports.dogecoinBalanceHistory = exports.dogecoinAddressHistory = exports.dogecoinAddressBalance = exports.dogecoinUtxosByAddress = exports.ethereumBlockByHash = exports.ethereumBlockByHeight = exports.ethereumNetworkStatus = exports.ethereumEstimateGas = exports.ethereumAddressTransactionCount = exports.ethereumLogo = exports.ethereumCallSmartContractFunction = exports.ethereumBroadcastTransaction = exports.ethereumFeeRate = exports.ethereumBlockTransactions = exports.ethereumGetBlockHeight = void 0;
exports.baseLogo = exports.baseCallSmartContractFunction = exports.baseBroadcastTransaction = exports.baseFeeRate = exports.baseBlockTransactions = exports.baseGetBlockHeight = exports.baseBalanceHistory = exports.baseTransactionDetails = exports.baseLatestBlock = exports.baseAddressHistory = exports.baseAddressTokenBalances = exports.baseAddressBalance = exports.bitcoinBlockByHash = exports.bitcoinBlockByHeight = exports.bitcoinEstimateTransactionSize = exports.bitcoinLogo = exports.bitcoinBroadcastTransaction = exports.bitcoinFeeRate = exports.bitcoinBlockTransactions = exports.bitcoinGetBlockHeight = exports.bitcoinTransactionDetails = exports.bitcoinMempool = exports.bitcoinLatestBlock = exports.bitcoinBalanceHistory = exports.bitcoinAddressHistory = exports.bitcoinAddressBalance = exports.bitcoinUtxosByAddress = exports.bitcoincashBlockByHash = exports.bitcoincashBlockByHeight = exports.bitcoincashEstimateTransactionSize = exports.bitcoincashLogo = exports.bitcoincashBroadcastTransaction = exports.bitcoincashFeeRate = exports.bitcoincashBlockTransactions = exports.bitcoincashGetBlockHeight = exports.bitcoincashTransactionDetails = exports.bitcoincashMempool = exports.bitcoincashLatestBlock = exports.bitcoincashBalanceHistory = exports.bitcoincashAddressHistory = exports.bitcoincashAddressBalance = exports.bitcoincashUtxosByAddress = exports.bitcoinTestnet3BlockByHash = exports.bitcoinTestnet3BlockByHeight = exports.bitcoinTestnet3EstimateTransactionSize = exports.bitcoinTestnet3Logo = exports.bitcoinTestnet3BroadcastTransaction = exports.bitcoinTestnet3FeeRate = exports.bitcoinTestnet3BlockTransactions = exports.bitcoinTestnet3GetBlockHeight = void 0;
exports.arbitrumBlockByHash = exports.arbitrumBlockByHeight = exports.arbitrumNetworkStatus = exports.arbitrumEstimateGas = exports.arbitrumAddressTransactionCount = exports.arbitrumLogo = exports.arbitrumCallSmartContractFunction = exports.arbitrumBroadcastTransaction = exports.arbitrumFeeRate = exports.arbitrumBlockTransactions = exports.arbitrumGetBlockHeight = exports.arbitrumBalanceHistory = exports.arbitrumTransactionDetails = exports.arbitrumLatestBlock = exports.arbitrumAddressHistory = exports.arbitrumAddressTokenBalances = exports.arbitrumAddressBalance = exports.avalancheBlockByHash = exports.avalancheBlockByHeight = exports.avalancheNetworkStatus = exports.avalancheEstimateGas = exports.avalancheAddressTransactionCount = exports.avalancheLogo = exports.avalancheCallSmartContractFunction = exports.avalancheBroadcastTransaction = exports.avalancheFeeRate = exports.avalancheBlockTransactions = exports.avalancheGetBlockHeight = exports.avalancheBalanceHistory = exports.avalancheTransactionDetails = exports.avalancheLatestBlock = exports.avalancheAddressHistory = exports.avalancheAddressTokenBalances = exports.avalancheAddressBalance = exports.baseBlockByHash = exports.baseBlockByHeight = exports.baseNetworkStatus = exports.baseEstimateGas = exports.baseAddressTransactionCount = void 0;
const client_gen_1 = require("./client.gen");
/**
* Get Market Prices
* Retrieves current market data for cryptocurrencies and fiat currencies, expressed in USD.
*/
const globalMarkets = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/global/markets',
...options,
});
};
exports.globalMarkets = globalMarkets;
/**
* Bitcoin
*/
const rpcBitcoin = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/rpc/bitcoin',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.rpcBitcoin = rpcBitcoin;
/**
* Bitcoin Testnet
*/
const rpcBitcointestnet = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/rpc/bitcoin-testnet',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.rpcBitcointestnet = rpcBitcointestnet;
/**
* Bitcoin Cash
*/
const rpcBitcoincash = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/rpc/bitcoincash',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.rpcBitcoincash = rpcBitcoincash;
/**
* Litecoin
*/
const rpcLitecoin = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/rpc/litecoin',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.rpcLitecoin = rpcLitecoin;
/**
* Dogecoin
*/
const rpcDogecoin = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/rpc/dogecoin',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.rpcDogecoin = rpcDogecoin;
/**
* Ethereum
*/
const rpcEthereum = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/rpc/ethereum',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.rpcEthereum = rpcEthereum;
/**
* Fantom Opera
*/
const rpcFantom = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/rpc/fantom',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.rpcFantom = rpcFantom;
/**
* Polygon
*/
const rpcPolygon = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/rpc/polygon',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.rpcPolygon = rpcPolygon;
/**
* Arbitrum
*/
const rpcArbitrum = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/rpc/arbitrum',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.rpcArbitrum = rpcArbitrum;
/**
* Avalanche C-Chain
*/
const rpcAvalanche = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/rpc/avalanche',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.rpcAvalanche = rpcAvalanche;
/**
* Binance Smart Chain
*/
const rpcBnb = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/rpc/bnb',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.rpcBnb = rpcBnb;
/**
* Base
*/
const rpcBase = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/rpc/base',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.rpcBase = rpcBase;
/**
* Get Latest Block
* Retrieves information about the latest block in the network.
*/
const utxoLatestBlock = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/latestBlock',
...options,
});
};
exports.utxoLatestBlock = utxoLatestBlock;
/**
* Get Mempool Transactions
* Returns a paginated list of transactions currently in the mempool.
*/
const utxoMempool = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/mempool',
...options,
});
};
exports.utxoMempool = utxoMempool;
/**
* Get Transaction Details
* Retrieves detailed information about a specific transaction.
*/
const utxoTransactionDetails = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/transactionDetails',
...options,
});
};
exports.utxoTransactionDetails = utxoTransactionDetails;
/**
* Get Block Height by Hash
* Retrieves the block height for a given block hash.
* @deprecated
*/
const utxoGetBlockHeight = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/getBlockHeight',
...options,
});
};
exports.utxoGetBlockHeight = utxoGetBlockHeight;
/**
* Get Transactions in a Block
* Retrieves the list of transactions included in a block at a given height.
* @deprecated
*/
const utxoBlockTransactions = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/blockTransactions',
...options,
});
};
exports.utxoBlockTransactions = utxoBlockTransactions;
/**
* Get Fee Rates
* Retrieves the estimated fee per KB for different confirmation targets.
*/
const utxoFeeRate = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/feeRate',
...options,
});
};
exports.utxoFeeRate = utxoFeeRate;
/**
* Broadcast Transaction
* Broadcasts a raw transaction to the network.
*/
const utxoBroadcastTransaction = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/broadcastTransaction',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.utxoBroadcastTransaction = utxoBroadcastTransaction;
/**
* Get Cryptonetwork Logo
* Retrieves the network logo as an SVG image.
*/
const utxoLogo = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/logo',
...options,
});
};
exports.utxoLogo = utxoLogo;
/**
* Estimate Transaction Size
* Estimates the size of a transaction in bytes based on the provided inputs and outputs.
*/
const utxoEstimateTransactionSize = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/estimateTransactionSize',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.utxoEstimateTransactionSize = utxoEstimateTransactionSize;
/**
* Get UTXOs by Address
* Retrieves unspent transaction outputs (UTXOs) for a given address.
*/
const utxoUtxosByAddress = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/utxosByAddress',
...options,
});
};
exports.utxoUtxosByAddress = utxoUtxosByAddress;
/**
* Get Address Balance
* Retrieves the balance of a given address.
*/
const utxoAddressBalance = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/addressBalance',
...options,
});
};
exports.utxoAddressBalance = utxoAddressBalance;
/**
* Get Address Transaction History
* Retrieves the transaction history for a given address.
*/
const utxoAddressHistory = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/addressHistory',
...options,
});
};
exports.utxoAddressHistory = utxoAddressHistory;
/**
* Get Balance History
* Retrieves the historical balance of an address over time.
*/
const utxoBalanceHistory = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/balanceHistory',
...options,
});
};
exports.utxoBalanceHistory = utxoBalanceHistory;
/**
* Get Block by Height
* Retrieves block details using a given block height.
*/
const utxoBlockByHeight = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/blockByHeight',
...options,
});
};
exports.utxoBlockByHeight = utxoBlockByHeight;
/**
* Get Block by Hash
* Retrieves block details using a given block hash.
*/
const utxoBlockByHash = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/utxo/{network}/blockByHash',
...options,
});
};
exports.utxoBlockByHash = utxoBlockByHash;
/**
* Get Address Balance
* Retrieves the balance of a given Ethereum address.
*/
const polygonAddressBalance = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/addressBalance',
...options,
});
};
exports.polygonAddressBalance = polygonAddressBalance;
/**
* Get Address Token Balances
* Retrieves the token balances of a given Ethereum address.
*/
const polygonAddressTokenBalances = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/addressTokenBalances',
...options,
});
};
exports.polygonAddressTokenBalances = polygonAddressTokenBalances;
/**
* Get Address Transaction History
* Retrieves the transaction history of a given Ethereum address.
*/
const polygonAddressHistory = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/addressHistory',
...options,
});
};
exports.polygonAddressHistory = polygonAddressHistory;
/**
* Get Latest Block
* Retrieves information about the latest block in the blockchain.
*/
const polygonLatestBlock = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/latestBlock',
...options,
});
};
exports.polygonLatestBlock = polygonLatestBlock;
/**
* Get Transaction Details
* Retrieves detailed information about a specific transaction.
*/
const polygonTransactionDetails = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/transactionDetails',
...options,
});
};
exports.polygonTransactionDetails = polygonTransactionDetails;
/**
* Get Balance History
* Retrieves the historical balance of an Ethereum address.
*/
const polygonBalanceHistory = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/balanceHistory',
...options,
});
};
exports.polygonBalanceHistory = polygonBalanceHistory;
/**
* Get Block Height by Hash
* Retrieves the block height for a given block hash.
*/
const polygonGetBlockHeight = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/getBlockHeight',
...options,
});
};
exports.polygonGetBlockHeight = polygonGetBlockHeight;
/**
* Get Transactions in a Block
* Retrieves the list of transactions included in a block at a given height.
*/
const polygonBlockTransactions = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/blockTransactions',
...options,
});
};
exports.polygonBlockTransactions = polygonBlockTransactions;
/**
* Get Fee Rate
* Retrieves the estimated gas prices for different transaction priorities.
*/
const polygonFeeRate = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/feeRate',
...options,
});
};
exports.polygonFeeRate = polygonFeeRate;
/**
* Broadcast Transaction
* Broadcasts a raw transaction to the Ethereum network.
*/
const polygonBroadcastTransaction = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/broadcastTransaction',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.polygonBroadcastTransaction = polygonBroadcastTransaction;
/**
* Call Smart Contract Function
* Executes a smart contract function call without sending a transaction.
*/
const polygonCallSmartContractFunction = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/callSmartContractFunction',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.polygonCallSmartContractFunction = polygonCallSmartContractFunction;
/**
* Get Cryptocurrency Logo
* Retrieves the cryptocurrency logo as an SVG image.
*/
const polygonLogo = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/logo',
...options,
});
};
exports.polygonLogo = polygonLogo;
/**
* Get Address Transaction Count
* Retrieves the number of transactions sent from a given Ethereum address.
*/
const polygonAddressTransactionCount = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/addressTransactionCount',
...options,
});
};
exports.polygonAddressTransactionCount = polygonAddressTransactionCount;
/**
* Estimate Gas for Transaction
* Estimates the gas required for a transaction without executing it.
*/
const polygonEstimateGas = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/estimateGas',
...options,
});
};
exports.polygonEstimateGas = polygonEstimateGas;
/**
* Get Network Status
* Retrieves the current network status, including block time, base fees, network occupation, and predicted tips for transaction confirmation.
*/
const polygonNetworkStatus = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/networkStatus',
...options,
});
};
exports.polygonNetworkStatus = polygonNetworkStatus;
/**
* Get Block by Height
* Retrieves block details using a given block height
*/
const polygonBlockByHeight = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/blockByHeight',
...options,
});
};
exports.polygonBlockByHeight = polygonBlockByHeight;
/**
* Get Block by Hash
* Retrieves block details using a given block hash
*/
const polygonBlockByHash = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/polygon/blockByHash',
...options,
});
};
exports.polygonBlockByHash = polygonBlockByHash;
/**
* Get UTXOs by Address
* Retrieves unspent transaction outputs (UTXOs) for a given address.
*/
const litecoinUtxosByAddress = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/utxosByAddress',
...options,
});
};
exports.litecoinUtxosByAddress = litecoinUtxosByAddress;
/**
* Get Address Balance
* Retrieves the balance of a given address.
*/
const litecoinAddressBalance = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/addressBalance',
...options,
});
};
exports.litecoinAddressBalance = litecoinAddressBalance;
/**
* Get Address Transaction History
* Retrieves the transaction history for a given address.
*/
const litecoinAddressHistory = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/addressHistory',
...options,
});
};
exports.litecoinAddressHistory = litecoinAddressHistory;
/**
* Get Balance History
* Retrieves the historical balance of an address over time.
*/
const litecoinBalanceHistory = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/balanceHistory',
...options,
});
};
exports.litecoinBalanceHistory = litecoinBalanceHistory;
/**
* Get Latest Block
* Retrieves information about the latest block in the blockchain.
*/
const litecoinLatestBlock = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/latestBlock',
...options,
});
};
exports.litecoinLatestBlock = litecoinLatestBlock;
/**
* Get Mempool Transactions
* Returns a paginated list of transactions currently in the mempool.
*/
const litecoinMempool = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/mempool',
...options,
});
};
exports.litecoinMempool = litecoinMempool;
/**
* Get Transaction Details
* Retrieves detailed information about a specific transaction.
*/
const litecoinTransactionDetails = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/transactionDetails',
...options,
});
};
exports.litecoinTransactionDetails = litecoinTransactionDetails;
/**
* Get Block Height by Hash
* Retrieves the block height for a given block hash.
*/
const litecoinGetBlockHeight = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/getBlockHeight',
...options,
});
};
exports.litecoinGetBlockHeight = litecoinGetBlockHeight;
/**
* Get Transactions in a Block
* Retrieves the list of transactions included in a block at a given height.
*/
const litecoinBlockTransactions = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/blockTransactions',
...options,
});
};
exports.litecoinBlockTransactions = litecoinBlockTransactions;
/**
* Get Fee Rates
* Retrieves the estimated fee per KB for different confirmation targets.
*/
const litecoinFeeRate = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/feeRate',
...options,
});
};
exports.litecoinFeeRate = litecoinFeeRate;
/**
* Broadcast Transaction
* Broadcasts a raw transaction to the network.
*/
const litecoinBroadcastTransaction = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/broadcastTransaction',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.litecoinBroadcastTransaction = litecoinBroadcastTransaction;
/**
* Get Cryptocurrency Logo
* Retrieves the cryptocurrency logo as an SVG image.
*/
const litecoinLogo = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/logo',
...options,
});
};
exports.litecoinLogo = litecoinLogo;
/**
* Estimate Transaction Size
* Estimates the size of a transaction in bytes based on the provided inputs and outputs.
*/
const litecoinEstimateTransactionSize = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/estimateTransactionSize',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.litecoinEstimateTransactionSize = litecoinEstimateTransactionSize;
/**
* Get Block by Height
* Retrieves block details using a given block height.
*/
const litecoinBlockByHeight = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/blockByHeight',
...options,
});
};
exports.litecoinBlockByHeight = litecoinBlockByHeight;
/**
* Get Block by Hash
* Retrieves block details using a given block hash.
*/
const litecoinBlockByHash = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/litecoin/blockByHash',
...options,
});
};
exports.litecoinBlockByHash = litecoinBlockByHash;
/**
* Get Address Balance
* Retrieves the balance of a given Ethereum address.
*/
const fantomAddressBalance = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/addressBalance',
...options,
});
};
exports.fantomAddressBalance = fantomAddressBalance;
/**
* Get Address Token Balances
* Retrieves the token balances of a given Ethereum address.
*/
const fantomAddressTokenBalances = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/addressTokenBalances',
...options,
});
};
exports.fantomAddressTokenBalances = fantomAddressTokenBalances;
/**
* Get Address Transaction History
* Retrieves the transaction history of a given Ethereum address.
*/
const fantomAddressHistory = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/addressHistory',
...options,
});
};
exports.fantomAddressHistory = fantomAddressHistory;
/**
* Get Latest Block
* Retrieves information about the latest block in the blockchain.
*/
const fantomLatestBlock = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/latestBlock',
...options,
});
};
exports.fantomLatestBlock = fantomLatestBlock;
/**
* Get Transaction Details
* Retrieves detailed information about a specific transaction.
*/
const fantomTransactionDetails = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/transactionDetails',
...options,
});
};
exports.fantomTransactionDetails = fantomTransactionDetails;
/**
* Get Balance History
* Retrieves the historical balance of an Ethereum address.
*/
const fantomBalanceHistory = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/balanceHistory',
...options,
});
};
exports.fantomBalanceHistory = fantomBalanceHistory;
/**
* Get Block Height by Hash
* Retrieves the block height for a given block hash.
*/
const fantomGetBlockHeight = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/getBlockHeight',
...options,
});
};
exports.fantomGetBlockHeight = fantomGetBlockHeight;
/**
* Get Transactions in a Block
* Retrieves the list of transactions included in a block at a given height.
*/
const fantomBlockTransactions = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/blockTransactions',
...options,
});
};
exports.fantomBlockTransactions = fantomBlockTransactions;
/**
* Get Fee Rate
* Retrieves the estimated gas prices for different transaction priorities.
*/
const fantomFeeRate = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/feeRate',
...options,
});
};
exports.fantomFeeRate = fantomFeeRate;
/**
* Broadcast Transaction
* Broadcasts a raw transaction to the Ethereum network.
*/
const fantomBroadcastTransaction = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/broadcastTransaction',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.fantomBroadcastTransaction = fantomBroadcastTransaction;
/**
* Call Smart Contract Function
* Executes a smart contract function call without sending a transaction.
*/
const fantomCallSmartContractFunction = (options) => {
return (options.client ?? client_gen_1.client).post({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/callSmartContractFunction',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers,
},
});
};
exports.fantomCallSmartContractFunction = fantomCallSmartContractFunction;
/**
* Get Cryptocurrency Logo
* Retrieves the cryptocurrency logo as an SVG image.
*/
const fantomLogo = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/logo',
...options,
});
};
exports.fantomLogo = fantomLogo;
/**
* Get Address Transaction Count
* Retrieves the number of transactions sent from a given Ethereum address.
*/
const fantomAddressTransactionCount = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/addressTransactionCount',
...options,
});
};
exports.fantomAddressTransactionCount = fantomAddressTransactionCount;
/**
* Estimate Gas for Transaction
* Estimates the gas required for a transaction without executing it.
*/
const fantomEstimateGas = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/estimateGas',
...options,
});
};
exports.fantomEstimateGas = fantomEstimateGas;
/**
* Get Network Status
* Retrieves the current network status, including block time, base fees, network occupation, and predicted tips for transaction confirmation.
*/
const fantomNetworkStatus = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/networkStatus',
...options,
});
};
exports.fantomNetworkStatus = fantomNetworkStatus;
/**
* Get Block by Height
* Retrieves block details using a given block height
*/
const fantomBlockByHeight = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/blockByHeight',
...options,
});
};
exports.fantomBlockByHeight = fantomBlockByHeight;
/**
* Get Block by Hash
* Retrieves block details using a given block hash
*/
const fantomBlockByHash = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/fantom/blockByHash',
...options,
});
};
exports.fantomBlockByHash = fantomBlockByHash;
/**
* Get Address Balance
* Retrieves the balance of a given Ethereum address.
*/
const evmAddressBalance = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/evm/{network}/addressBalance',
...options,
});
};
exports.evmAddressBalance = evmAddressBalance;
/**
* Get Address Token Balances
* Retrieves the token balances of a given Ethereum address.
*/
const evmAddressTokenBalances = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/evm/{network}/addressTokenBalances',
...options,
});
};
exports.evmAddressTokenBalances = evmAddressTokenBalances;
/**
* Get Address Transaction History
* Retrieves the transaction history of a given Ethereum address.
*/
const evmAddressHistory = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/evm/{network}/addressHistory',
...options,
});
};
exports.evmAddressHistory = evmAddressHistory;
/**
* Get Latest Block
* Retrieves information about the latest block in the network.
*/
const evmLatestBlock = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/evm/{network}/latestBlock',
...options,
});
};
exports.evmLatestBlock = evmLatestBlock;
/**
* Get Transaction Details
* Retrieves detailed information about a specific transaction.
*/
const evmTransactionDetails = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/evm/{network}/transactionDetails',
...options,
});
};
exports.evmTransactionDetails = evmTransactionDetails;
/**
* Get Balance History
* Retrieves the historical balance of an Ethereum address.
*/
const evmBalanceHistory = (options) => {
return (options?.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/evm/{network}/balanceHistory',
...options,
});
};
exports.evmBalanceHistory = evmBalanceHistory;
/**
* Get Block Height by Hash
* Retrieves the block height for a given block hash.
* @deprecated
*/
const evmGetBlockHeight = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/evm/{network}/getBlockHeight',
...options,
});
};
exports.evmGetBlockHeight = evmGetBlockHeight;
/**
* Get Transactions in a Block
* Retrieves the list of transactions included in a block at a given height.
* @deprecated
*/
const evmBlockTransactions = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/evm/{network}/blockTransactions',
...options,
});
};
exports.evmBlockTransactions = evmBlockTransactions;
/**
* Get Fee Rate
* Retrieves the estimated gas prices for different transaction priorities.
*/
const evmFeeRate = (options) => {
return (options.client ?? client_gen_1.client).get({
security: [
{
in: 'query',
name: 'apiKey',
type: 'apiKey',
},
],
url: '/evm/{network}/feeRate',
...options,
});
};
exports.evmFeeRate = evmFeeRate;
/**
* Broadcast Transaction
* Broadcasts a raw transaction to the Ethereum network.
*/