UNPKG

chaingate

Version:

A complete TypeScript library for connecting to and making transactions on different blockchains

2,004 lines 106 kB
// This file is auto-generated by @hey-api/openapi-ts import { client as _heyApiClient } from './client.gen'; /** * Get Market Prices * Retrieves current market data for cryptocurrencies and fiat currencies, expressed in USD. */ export const globalMarkets = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/global/markets', ...options, }); }; /** * Bitcoin */ export const rpcBitcoin = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/rpc/bitcoin', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Bitcoin Testnet */ export const rpcBitcointestnet = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/rpc/bitcoin-testnet', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Bitcoin Cash */ export const rpcBitcoincash = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/rpc/bitcoincash', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Litecoin */ export const rpcLitecoin = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/rpc/litecoin', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Dogecoin */ export const rpcDogecoin = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/rpc/dogecoin', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Ethereum */ export const rpcEthereum = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/rpc/ethereum', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Fantom Opera */ export const rpcFantom = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/rpc/fantom', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Polygon */ export const rpcPolygon = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/rpc/polygon', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Arbitrum */ export const rpcArbitrum = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/rpc/arbitrum', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Avalanche C-Chain */ export const rpcAvalanche = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/rpc/avalanche', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Binance Smart Chain */ export const rpcBnb = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/rpc/bnb', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Base */ export const rpcBase = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/rpc/base', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Get Latest Block * Retrieves information about the latest block in the network. */ export const utxoLatestBlock = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/latestBlock', ...options, }); }; /** * Get Mempool Transactions * Returns a paginated list of transactions currently in the mempool. */ export const utxoMempool = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/mempool', ...options, }); }; /** * Get Transaction Details * Retrieves detailed information about a specific transaction. */ export const utxoTransactionDetails = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/transactionDetails', ...options, }); }; /** * Get Block Height by Hash * Retrieves the block height for a given block hash. * @deprecated */ export const utxoGetBlockHeight = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/getBlockHeight', ...options, }); }; /** * Get Transactions in a Block * Retrieves the list of transactions included in a block at a given height. * @deprecated */ export const utxoBlockTransactions = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/blockTransactions', ...options, }); }; /** * Get Fee Rates * Retrieves the estimated fee per KB for different confirmation targets. */ export const utxoFeeRate = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/feeRate', ...options, }); }; /** * Broadcast Transaction * Broadcasts a raw transaction to the network. */ export const utxoBroadcastTransaction = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/broadcastTransaction', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Get Cryptonetwork Logo * Retrieves the network logo as an SVG image. */ export const utxoLogo = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/logo', ...options, }); }; /** * Estimate Transaction Size * Estimates the size of a transaction in bytes based on the provided inputs and outputs. */ export const utxoEstimateTransactionSize = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/estimateTransactionSize', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Get UTXOs by Address * Retrieves unspent transaction outputs (UTXOs) for a given address. */ export const utxoUtxosByAddress = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/utxosByAddress', ...options, }); }; /** * Get Address Balance * Retrieves the balance of a given address. */ export const utxoAddressBalance = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/addressBalance', ...options, }); }; /** * Get Address Transaction History * Retrieves the transaction history for a given address. */ export const utxoAddressHistory = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/addressHistory', ...options, }); }; /** * Get Balance History * Retrieves the historical balance of an address over time. */ export const utxoBalanceHistory = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/balanceHistory', ...options, }); }; /** * Get Block by Height * Retrieves block details using a given block height. */ export const utxoBlockByHeight = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/blockByHeight', ...options, }); }; /** * Get Block by Hash * Retrieves block details using a given block hash. */ export const utxoBlockByHash = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/utxo/{network}/blockByHash', ...options, }); }; /** * Get Address Balance * Retrieves the balance of a given Ethereum address. */ export const polygonAddressBalance = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/addressBalance', ...options, }); }; /** * Get Address Token Balances * Retrieves the token balances of a given Ethereum address. */ export const polygonAddressTokenBalances = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/addressTokenBalances', ...options, }); }; /** * Get Address Transaction History * Retrieves the transaction history of a given Ethereum address. */ export const polygonAddressHistory = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/addressHistory', ...options, }); }; /** * Get Latest Block * Retrieves information about the latest block in the blockchain. */ export const polygonLatestBlock = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/latestBlock', ...options, }); }; /** * Get Transaction Details * Retrieves detailed information about a specific transaction. */ export const polygonTransactionDetails = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/transactionDetails', ...options, }); }; /** * Get Balance History * Retrieves the historical balance of an Ethereum address. */ export const polygonBalanceHistory = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/balanceHistory', ...options, }); }; /** * Get Block Height by Hash * Retrieves the block height for a given block hash. */ export const polygonGetBlockHeight = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/getBlockHeight', ...options, }); }; /** * Get Transactions in a Block * Retrieves the list of transactions included in a block at a given height. */ export const polygonBlockTransactions = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/blockTransactions', ...options, }); }; /** * Get Fee Rate * Retrieves the estimated gas prices for different transaction priorities. */ export const polygonFeeRate = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/feeRate', ...options, }); }; /** * Broadcast Transaction * Broadcasts a raw transaction to the Ethereum network. */ export const polygonBroadcastTransaction = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/broadcastTransaction', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Call Smart Contract Function * Executes a smart contract function call without sending a transaction. */ export const polygonCallSmartContractFunction = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/callSmartContractFunction', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Get Cryptocurrency Logo * Retrieves the cryptocurrency logo as an SVG image. */ export const polygonLogo = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/logo', ...options, }); }; /** * Get Address Transaction Count * Retrieves the number of transactions sent from a given Ethereum address. */ export const polygonAddressTransactionCount = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/addressTransactionCount', ...options, }); }; /** * Estimate Gas for Transaction * Estimates the gas required for a transaction without executing it. */ export const polygonEstimateGas = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/estimateGas', ...options, }); }; /** * Get Network Status * Retrieves the current network status, including block time, base fees, network occupation, and predicted tips for transaction confirmation. */ export const polygonNetworkStatus = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/networkStatus', ...options, }); }; /** * Get Block by Height * Retrieves block details using a given block height */ export const polygonBlockByHeight = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/blockByHeight', ...options, }); }; /** * Get Block by Hash * Retrieves block details using a given block hash */ export const polygonBlockByHash = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/polygon/blockByHash', ...options, }); }; /** * Get UTXOs by Address * Retrieves unspent transaction outputs (UTXOs) for a given address. */ export const litecoinUtxosByAddress = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/utxosByAddress', ...options, }); }; /** * Get Address Balance * Retrieves the balance of a given address. */ export const litecoinAddressBalance = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/addressBalance', ...options, }); }; /** * Get Address Transaction History * Retrieves the transaction history for a given address. */ export const litecoinAddressHistory = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/addressHistory', ...options, }); }; /** * Get Balance History * Retrieves the historical balance of an address over time. */ export const litecoinBalanceHistory = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/balanceHistory', ...options, }); }; /** * Get Latest Block * Retrieves information about the latest block in the blockchain. */ export const litecoinLatestBlock = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/latestBlock', ...options, }); }; /** * Get Mempool Transactions * Returns a paginated list of transactions currently in the mempool. */ export const litecoinMempool = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/mempool', ...options, }); }; /** * Get Transaction Details * Retrieves detailed information about a specific transaction. */ export const litecoinTransactionDetails = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/transactionDetails', ...options, }); }; /** * Get Block Height by Hash * Retrieves the block height for a given block hash. */ export const litecoinGetBlockHeight = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/getBlockHeight', ...options, }); }; /** * Get Transactions in a Block * Retrieves the list of transactions included in a block at a given height. */ export const litecoinBlockTransactions = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/blockTransactions', ...options, }); }; /** * Get Fee Rates * Retrieves the estimated fee per KB for different confirmation targets. */ export const litecoinFeeRate = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/feeRate', ...options, }); }; /** * Broadcast Transaction * Broadcasts a raw transaction to the network. */ export const litecoinBroadcastTransaction = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/broadcastTransaction', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Get Cryptocurrency Logo * Retrieves the cryptocurrency logo as an SVG image. */ export const litecoinLogo = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/logo', ...options, }); }; /** * Estimate Transaction Size * Estimates the size of a transaction in bytes based on the provided inputs and outputs. */ export const litecoinEstimateTransactionSize = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/estimateTransactionSize', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Get Block by Height * Retrieves block details using a given block height. */ export const litecoinBlockByHeight = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/blockByHeight', ...options, }); }; /** * Get Block by Hash * Retrieves block details using a given block hash. */ export const litecoinBlockByHash = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/litecoin/blockByHash', ...options, }); }; /** * Get Address Balance * Retrieves the balance of a given Ethereum address. */ export const fantomAddressBalance = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/addressBalance', ...options, }); }; /** * Get Address Token Balances * Retrieves the token balances of a given Ethereum address. */ export const fantomAddressTokenBalances = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/addressTokenBalances', ...options, }); }; /** * Get Address Transaction History * Retrieves the transaction history of a given Ethereum address. */ export const fantomAddressHistory = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/addressHistory', ...options, }); }; /** * Get Latest Block * Retrieves information about the latest block in the blockchain. */ export const fantomLatestBlock = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/latestBlock', ...options, }); }; /** * Get Transaction Details * Retrieves detailed information about a specific transaction. */ export const fantomTransactionDetails = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/transactionDetails', ...options, }); }; /** * Get Balance History * Retrieves the historical balance of an Ethereum address. */ export const fantomBalanceHistory = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/balanceHistory', ...options, }); }; /** * Get Block Height by Hash * Retrieves the block height for a given block hash. */ export const fantomGetBlockHeight = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/getBlockHeight', ...options, }); }; /** * Get Transactions in a Block * Retrieves the list of transactions included in a block at a given height. */ export const fantomBlockTransactions = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/blockTransactions', ...options, }); }; /** * Get Fee Rate * Retrieves the estimated gas prices for different transaction priorities. */ export const fantomFeeRate = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/feeRate', ...options, }); }; /** * Broadcast Transaction * Broadcasts a raw transaction to the Ethereum network. */ export const fantomBroadcastTransaction = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/broadcastTransaction', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Call Smart Contract Function * Executes a smart contract function call without sending a transaction. */ export const fantomCallSmartContractFunction = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/callSmartContractFunction', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Get Cryptocurrency Logo * Retrieves the cryptocurrency logo as an SVG image. */ export const fantomLogo = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/logo', ...options, }); }; /** * Get Address Transaction Count * Retrieves the number of transactions sent from a given Ethereum address. */ export const fantomAddressTransactionCount = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/addressTransactionCount', ...options, }); }; /** * Estimate Gas for Transaction * Estimates the gas required for a transaction without executing it. */ export const fantomEstimateGas = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/estimateGas', ...options, }); }; /** * Get Network Status * Retrieves the current network status, including block time, base fees, network occupation, and predicted tips for transaction confirmation. */ export const fantomNetworkStatus = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/networkStatus', ...options, }); }; /** * Get Block by Height * Retrieves block details using a given block height */ export const fantomBlockByHeight = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/blockByHeight', ...options, }); }; /** * Get Block by Hash * Retrieves block details using a given block hash */ export const fantomBlockByHash = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/fantom/blockByHash', ...options, }); }; /** * Get Address Balance * Retrieves the balance of a given Ethereum address. */ export const evmAddressBalance = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/addressBalance', ...options, }); }; /** * Get Address Token Balances * Retrieves the token balances of a given Ethereum address. */ export const evmAddressTokenBalances = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/addressTokenBalances', ...options, }); }; /** * Get Address Transaction History * Retrieves the transaction history of a given Ethereum address. */ export const evmAddressHistory = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/addressHistory', ...options, }); }; /** * Get Latest Block * Retrieves information about the latest block in the network. */ export const evmLatestBlock = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/latestBlock', ...options, }); }; /** * Get Transaction Details * Retrieves detailed information about a specific transaction. */ export const evmTransactionDetails = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/transactionDetails', ...options, }); }; /** * Get Balance History * Retrieves the historical balance of an Ethereum address. */ export const evmBalanceHistory = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/balanceHistory', ...options, }); }; /** * Get Block Height by Hash * Retrieves the block height for a given block hash. * @deprecated */ export const evmGetBlockHeight = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/getBlockHeight', ...options, }); }; /** * Get Transactions in a Block * Retrieves the list of transactions included in a block at a given height. * @deprecated */ export const evmBlockTransactions = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/blockTransactions', ...options, }); }; /** * Get Fee Rate * Retrieves the estimated gas prices for different transaction priorities. */ export const evmFeeRate = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/feeRate', ...options, }); }; /** * Broadcast Transaction * Broadcasts a raw transaction to the Ethereum network. */ export const evmBroadcastTransaction = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/broadcastTransaction', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Call Smart Contract Function * Executes a smart contract function call without sending a transaction. */ export const evmCallSmartContractFunction = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/callSmartContractFunction', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Get Network Logo * Retrieves the network logo as an SVG image. */ export const evmLogo = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/logo', ...options, }); }; /** * Get Address Transaction Count * Retrieves the number of transactions sent from a given Ethereum address. */ export const evmAddressTransactionCount = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/addressTransactionCount', ...options, }); }; /** * Estimate Gas for Transaction * Estimates the gas required for a transaction without executing it. */ export const evmEstimateGas = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/estimateGas', ...options, }); }; /** * Get Network Status * Retrieves the current network status, including block time, base fees, network occupation, and predicted tips for transaction confirmation. */ export const evmNetworkStatus = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/networkStatus', ...options, }); }; /** * Get Block by Height * Retrieves block details using a given block height */ export const evmBlockByHeight = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/blockByHeight', ...options, }); }; /** * Get Block by Hash * Retrieves block details using a given block hash */ export const evmBlockByHash = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/evm/{network}/blockByHash', ...options, }); }; /** * Get Address Balance * Retrieves the balance of a given Ethereum address. */ export const ethereumAddressBalance = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/addressBalance', ...options, }); }; /** * Get Address Token Balances * Retrieves the token balances of a given Ethereum address. */ export const ethereumAddressTokenBalances = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/addressTokenBalances', ...options, }); }; /** * Get Address Transaction History * Retrieves the transaction history of a given Ethereum address. */ export const ethereumAddressHistory = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/addressHistory', ...options, }); }; /** * Get Latest Block * Retrieves information about the latest block in the blockchain. */ export const ethereumLatestBlock = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/latestBlock', ...options, }); }; /** * Get Transaction Details * Retrieves detailed information about a specific transaction. */ export const ethereumTransactionDetails = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/transactionDetails', ...options, }); }; /** * Get Balance History * Retrieves the historical balance of an Ethereum address. */ export const ethereumBalanceHistory = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/balanceHistory', ...options, }); }; /** * Get Block Height by Hash * Retrieves the block height for a given block hash. */ export const ethereumGetBlockHeight = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/getBlockHeight', ...options, }); }; /** * Get Transactions in a Block * Retrieves the list of transactions included in a block at a given height. */ export const ethereumBlockTransactions = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/blockTransactions', ...options, }); }; /** * Get Fee Rate * Retrieves the estimated gas prices for different transaction priorities. */ export const ethereumFeeRate = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/feeRate', ...options, }); }; /** * Broadcast Transaction * Broadcasts a raw transaction to the Ethereum network. */ export const ethereumBroadcastTransaction = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/broadcastTransaction', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Call Smart Contract Function * Executes a smart contract function call without sending a transaction. */ export const ethereumCallSmartContractFunction = (options) => { return (options.client ?? _heyApiClient).post({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/callSmartContractFunction', ...options, headers: { 'Content-Type': 'application/json', ...options.headers, }, }); }; /** * Get Cryptocurrency Logo * Retrieves the cryptocurrency logo as an SVG image. */ export const ethereumLogo = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/logo', ...options, }); }; /** * Get Address Transaction Count * Retrieves the number of transactions sent from a given Ethereum address. */ export const ethereumAddressTransactionCount = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/addressTransactionCount', ...options, }); }; /** * Estimate Gas for Transaction * Estimates the gas required for a transaction without executing it. */ export const ethereumEstimateGas = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/estimateGas', ...options, }); }; /** * Get Network Status * Retrieves the current network status, including block time, base fees, network occupation, and predicted tips for transaction confirmation. */ export const ethereumNetworkStatus = (options) => { return (options?.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/networkStatus', ...options, }); }; /** * Get Block by Height * Retrieves block details using a given block height */ export const ethereumBlockByHeight = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/blockByHeight', ...options, }); }; /** * Get Block by Hash * Retrieves block details using a given block hash */ export const ethereumBlockByHash = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/ethereum/blockByHash', ...options, }); }; /** * Get UTXOs by Address * Retrieves unspent transaction outputs (UTXOs) for a given address. */ export const dogecoinUtxosByAddress = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey', type: 'apiKey', }, ], url: '/dogecoin/utxosByAddress', ...options, }); }; /** * Get Address Balance * Retrieves the balance of a given address. */ export const dogecoinAddressBalance = (options) => { return (options.client ?? _heyApiClient).get({ security: [ { in: 'query', name: 'apiKey