chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
2,198 lines • 155 kB
TypeScript
export type CurrencyDataMarket = {
vol24h: string;
rateUsd: string;
id: string;
};
export type FiatDataMarket = {
rateUsd: string;
symbol: string;
};
export type MarketsResponse = {
fiat: Array<FiatDataMarket>;
crypto: Array<CurrencyDataMarket>;
};
export type Block = {
height: number;
hash: string;
};
export type UtxoNetworkKey = 'bitcoin' | 'litecoin' | 'dogecoin' | 'bitcoincash' | 'bitcointestnet';
export type TxoMempoolResponse = {
lastPage: number;
transactions: Array<string>;
page: number;
lastUpdateTimestamp: number;
};
export type TxInput = {
scriptSig?: string;
script?: string;
n?: number;
txId?: string;
amount: string;
address?: string;
};
export type TxOutput = {
script: string;
n: number;
amount: string;
address: string;
};
export type TxoTransactionDetails = {
rawTransaction: string;
feePerKb: string;
fee: string;
sizeBytes: number;
outputs: Array<TxOutput>;
inputs: Array<TxInput>;
timestamp: number;
blockHeight: number;
};
export type TxoPossibleFees = {
low: {
confirmationTimeSecs: number;
feePerKb: string;
};
normal: {
confirmationTimeSecs: number;
feePerKb: string;
};
high: {
confirmationTimeSecs: number;
feePerKb: string;
};
maximum: {
confirmationTimeSecs: number;
feePerKb: string;
};
};
export type UtxosN = {
utxos: Array<{
script: string;
amount: string;
n: number;
txid: string;
}>;
page: number;
};
export type AddressBalanceN = {
unconfirmed: string;
confirmed: string;
};
export type TxoAddressHistoryN = {
transactions: Array<{
addressBalance: string;
amount: string;
txid: string;
height: number;
}>;
page: number;
};
export type Transfer = {
to: string;
from: string;
amount: string;
};
export type EvmTransactionDetails = {
data: string;
to: string;
from: string;
maxPriorityFeePerGas?: string;
maxFeePerGas?: string;
gasPrice?: string;
gas: string;
amount: string;
timestamp: number;
blockHeight: number;
transfers: Array<Transfer>;
};
export type Fee = {
confirmationTimeSecs: number;
gasPrice: string;
};
export type Eip1559Fee = {
confirmationTimeSecs: number;
maxPriorityFeePerGas: string;
maxFeePerGas: string;
};
export type EvmPossibleFees = {
low: Fee;
normal: Fee;
high: Fee;
maximum: Fee;
} | {
low: Eip1559Fee;
normal: Eip1559Fee;
high: Eip1559Fee;
maximum: Eip1559Fee;
};
export type Decimal = string;
export type NetworkStatus = {
predictedTips: Array<{
predictedTipGWei: string;
expectedConfirmationTimeSecs: number;
}>;
predictedBaseFeeGWei?: string;
currentBaseFeeGWei?: string;
typicalTransactionCost: string;
supportsEIP1559: boolean;
networkOccupation: number;
blockTimeMs: number;
blockTimeSecs: number;
};
export type EvmNetworkKey = 'ethereum' | 'arbitrum' | 'avalanche' | 'base' | 'bnb' | 'fantom' | 'polygon';
export type GlobalMarketsData = {
body?: never;
path?: never;
query?: never;
url: '/global/markets';
};
export type GlobalMarketsErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type GlobalMarketsResponses = {
/**
* An object containing crypto and fiat currency exchange rates with USD as base.
*/
200: MarketsResponse;
};
export type GlobalMarketsResponse = GlobalMarketsResponses[keyof GlobalMarketsResponses];
export type RpcBitcoinData = {
body: {
id: string | number | null;
params: Array<unknown>;
method: string;
jsonrpc: string;
};
path?: never;
query?: never;
url: '/rpc/bitcoin';
};
export type RpcBitcoinErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type RpcBitcoinResponses = {
/**
* Ok
*/
200: unknown;
};
export type RpcBitcointestnetData = {
body: {
id: string | number | null;
params: Array<unknown>;
method: string;
jsonrpc: string;
};
path?: never;
query?: never;
url: '/rpc/bitcoin-testnet';
};
export type RpcBitcointestnetErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type RpcBitcointestnetResponses = {
/**
* Ok
*/
200: unknown;
};
export type RpcBitcoincashData = {
body: {
id: string | number | null;
params: Array<unknown>;
method: string;
jsonrpc: string;
};
path?: never;
query?: never;
url: '/rpc/bitcoincash';
};
export type RpcBitcoincashErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type RpcBitcoincashResponses = {
/**
* Ok
*/
200: unknown;
};
export type RpcLitecoinData = {
body: {
id: string | number | null;
params: Array<unknown>;
method: string;
jsonrpc: string;
};
path?: never;
query?: never;
url: '/rpc/litecoin';
};
export type RpcLitecoinErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type RpcLitecoinResponses = {
/**
* Ok
*/
200: unknown;
};
export type RpcDogecoinData = {
body: {
id: string | number | null;
params: Array<unknown>;
method: string;
jsonrpc: string;
};
path?: never;
query?: never;
url: '/rpc/dogecoin';
};
export type RpcDogecoinErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type RpcDogecoinResponses = {
/**
* Ok
*/
200: unknown;
};
export type RpcEthereumData = {
body: {
id: string | number | null;
params: Array<unknown>;
method: string;
jsonrpc: string;
};
path?: never;
query?: never;
url: '/rpc/ethereum';
};
export type RpcEthereumErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type RpcEthereumResponses = {
/**
* Ok
*/
200: unknown;
};
export type RpcFantomData = {
body: {
id: string | number | null;
params: Array<unknown>;
method: string;
jsonrpc: string;
};
path?: never;
query?: never;
url: '/rpc/fantom';
};
export type RpcFantomErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type RpcFantomResponses = {
/**
* Ok
*/
200: unknown;
};
export type RpcPolygonData = {
body: {
id: string | number | null;
params: Array<unknown>;
method: string;
jsonrpc: string;
};
path?: never;
query?: never;
url: '/rpc/polygon';
};
export type RpcPolygonErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type RpcPolygonResponses = {
/**
* Ok
*/
200: unknown;
};
export type RpcArbitrumData = {
body: {
id: string | number | null;
params: Array<unknown>;
method: string;
jsonrpc: string;
};
path?: never;
query?: never;
url: '/rpc/arbitrum';
};
export type RpcArbitrumErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type RpcArbitrumResponses = {
/**
* Ok
*/
200: unknown;
};
export type RpcAvalancheData = {
body: {
id: string | number | null;
params: Array<unknown>;
method: string;
jsonrpc: string;
};
path?: never;
query?: never;
url: '/rpc/avalanche';
};
export type RpcAvalancheErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type RpcAvalancheResponses = {
/**
* Ok
*/
200: unknown;
};
export type RpcBnbData = {
body: {
id: string | number | null;
params: Array<unknown>;
method: string;
jsonrpc: string;
};
path?: never;
query?: never;
url: '/rpc/bnb';
};
export type RpcBnbErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type RpcBnbResponses = {
/**
* Ok
*/
200: unknown;
};
export type RpcBaseData = {
body: {
id: string | number | null;
params: Array<unknown>;
method: string;
jsonrpc: string;
};
path?: never;
query?: never;
url: '/rpc/base';
};
export type RpcBaseErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type RpcBaseResponses = {
/**
* Ok
*/
200: unknown;
};
export type UtxoLatestBlockData = {
body?: never;
path: {
/**
* - The key identifying the network (e.g., 'bitcoin').
*/
network: UtxoNetworkKey;
};
query?: never;
url: '/utxo/{network}/latestBlock';
};
export type UtxoLatestBlockErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type UtxoLatestBlockResponses = {
/**
* An object containing the height and hash of the latest block.
*/
200: Block;
};
export type UtxoLatestBlockResponse = UtxoLatestBlockResponses[keyof UtxoLatestBlockResponses];
export type UtxoMempoolData = {
body?: never;
path: {
/**
* - The key identifying the network (e.g., 'bitcoin').
*/
network: UtxoNetworkKey;
};
query?: {
/**
* - The page number for pagination (optional). Must be a non-negative integer.
*/
page?: number;
};
url: '/utxo/{network}/mempool';
};
export type UtxoMempoolErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type UtxoMempoolResponses = {
/**
* An object containing mempool transactions and pagination details.
*/
200: TxoMempoolResponse;
};
export type UtxoMempoolResponse = UtxoMempoolResponses[keyof UtxoMempoolResponses];
export type UtxoTransactionDetailsData = {
body?: never;
path: {
/**
* - The key identifying the network (e.g., 'bitcoin').
*/
network: UtxoNetworkKey;
};
query: {
/**
* - The transaction ID (hash) in hexadecimal format (64 characters).
*/
transactionId: string;
};
url: '/utxo/{network}/transactionDetails';
};
export type UtxoTransactionDetailsErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type UtxoTransactionDetailsResponses = {
/**
* An object containing detailed information about the transaction.
*/
200: TxoTransactionDetails;
};
export type UtxoTransactionDetailsResponse = UtxoTransactionDetailsResponses[keyof UtxoTransactionDetailsResponses];
export type UtxoGetBlockHeightData = {
body?: never;
path: {
/**
* - The key identifying the network (e.g., 'bitcoin').
*/
network: UtxoNetworkKey;
};
query: {
/**
* - The block hash in hexadecimal format (64 characters).
*/
blockHash: string;
};
url: '/utxo/{network}/getBlockHeight';
};
export type UtxoGetBlockHeightErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type UtxoGetBlockHeightResponses = {
/**
* The height of the block.
*/
200: number;
};
export type UtxoGetBlockHeightResponse = UtxoGetBlockHeightResponses[keyof UtxoGetBlockHeightResponses];
export type UtxoBlockTransactionsData = {
body?: never;
path: {
/**
* - The key identifying the network (e.g., 'bitcoin').
*/
network: UtxoNetworkKey;
};
query: {
/**
* - The height of the block (non-negative integer).
*/
blockHeight: number;
};
url: '/utxo/{network}/blockTransactions';
};
export type UtxoBlockTransactionsErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type UtxoBlockTransactionsResponses = {
/**
* An array of transaction IDs included in the block.
*/
200: Array<string>;
};
export type UtxoBlockTransactionsResponse = UtxoBlockTransactionsResponses[keyof UtxoBlockTransactionsResponses];
export type UtxoFeeRateData = {
body?: never;
path: {
network: UtxoNetworkKey;
};
query?: never;
url: '/utxo/{network}/feeRate';
};
export type UtxoFeeRateErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type UtxoFeeRateResponses = {
/**
* An object containing fee estimates for low, normal, high, and maximum priorities.
*/
200: TxoPossibleFees;
};
export type UtxoFeeRateResponse = UtxoFeeRateResponses[keyof UtxoFeeRateResponses];
export type UtxoBroadcastTransactionData = {
/**
* - The request body.
*/
body: {
transactionRaw: string;
};
path: {
/**
* - The key identifying the network (e.g., 'bitcoin').
*/
network: UtxoNetworkKey;
};
query?: never;
url: '/utxo/{network}/broadcastTransaction';
};
export type UtxoBroadcastTransactionErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type UtxoBroadcastTransactionResponses = {
/**
* An object containing the transaction ID of the broadcasted transaction.
*/
200: {
txId: string;
};
};
export type UtxoBroadcastTransactionResponse = UtxoBroadcastTransactionResponses[keyof UtxoBroadcastTransactionResponses];
export type UtxoLogoData = {
body?: never;
path: {
network: UtxoNetworkKey;
};
query?: never;
url: '/utxo/{network}/logo';
};
export type UtxoLogoErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type UtxoLogoResponses = {
/**
* The logo image in SVG format.
*/
200: string;
};
export type UtxoLogoResponse = UtxoLogoResponses[keyof UtxoLogoResponses];
export type UtxoEstimateTransactionSizeData = {
/**
* - The request body.
*/
body: {
to: Array<string>;
from: Array<{
pubKeys?: number;
signatures?: number;
address: string;
}>;
};
path: {
/**
* - The key identifying the network (e.g., 'bitcoin').
*/
network: UtxoNetworkKey;
};
query?: never;
url: '/utxo/{network}/estimateTransactionSize';
};
export type UtxoEstimateTransactionSizeErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type UtxoEstimateTransactionSizeResponses = {
/**
* An object containing the estimated transaction size in bytes.
*/
200: {
bytes: number;
};
};
export type UtxoEstimateTransactionSizeResponse = UtxoEstimateTransactionSizeResponses[keyof UtxoEstimateTransactionSizeResponses];
export type UtxoUtxosByAddressData = {
body?: never;
path: {
/**
* - The key identifying the network (e.g., 'bitcoin').
*/
network: UtxoNetworkKey;
};
query: {
/**
* - The network address to query.
*/
address: string;
/**
* - The page number for pagination (optional). Must be a non-negative integer.
*/
page?: number;
};
url: '/utxo/{network}/utxosByAddress';
};
export type UtxoUtxosByAddressErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type UtxoUtxosByAddressResponses = {
/**
* An array of UTXOs.
*/
200: UtxosN;
};
export type UtxoUtxosByAddressResponse = UtxoUtxosByAddressResponses[keyof UtxoUtxosByAddressResponses];
export type UtxoAddressBalanceData = {
body?: never;
path: {
/**
* - The key identifying the network (e.g., 'bitcoin').
*/
network: UtxoNetworkKey;
};
query: {
/**
* - The network address to query.
*/
address: string;
};
url: '/utxo/{network}/addressBalance';
};
export type UtxoAddressBalanceErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type UtxoAddressBalanceResponses = {
/**
* An object containing confirmed and unconfirmed balances.
*/
200: AddressBalanceN;
};
export type UtxoAddressBalanceResponse = UtxoAddressBalanceResponses[keyof UtxoAddressBalanceResponses];
export type UtxoAddressHistoryData = {
body?: never;
path: {
/**
* - The key identifying the network (e.g., 'bitcoin').
*/
network: UtxoNetworkKey;
};
query: {
/**
* - The network address to query.
*/
address: string;
/**
* - The page number for pagination (optional). Must be a non-negative integer.
*/
page?: number;
};
url: '/utxo/{network}/addressHistory';
};
export type UtxoAddressHistoryErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type UtxoAddressHistoryResponses = {
/**
* An object containing the page number and an array of transactions.
*/
200: TxoAddressHistoryN;
};
export type UtxoAddressHistoryResponse = UtxoAddressHistoryResponses[keyof UtxoAddressHistoryResponses];
export type UtxoBalanceHistoryData = {
body?: never;
path?: never;
query?: never;
url: '/utxo/{network}/balanceHistory';
};
export type UtxoBalanceHistoryErrors = {
/**
* Coming soon
*/
501: unknown;
};
export type UtxoBlockByHeightData = {
body?: never;
path: {
/**
* - The key identifying the network (e.g., 'bitcoin').
*/
network: UtxoNetworkKey;
};
query: {
/**
* - The height of the block (non-negative integer).
*/
blockHeight: number;
};
url: '/utxo/{network}/blockByHeight';
};
export type UtxoBlockByHeightErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type UtxoBlockByHeightResponses = {
/**
* An object containing detailed information about the block.
*/
200: {
txs: Array<string>;
difficulty: number;
nonce: number;
sizeBytes: number;
timestamp: number;
height: number;
parentHash: string;
hash: string;
};
};
export type UtxoBlockByHeightResponse = UtxoBlockByHeightResponses[keyof UtxoBlockByHeightResponses];
export type UtxoBlockByHashData = {
body?: never;
path: {
/**
* - The key identifying the network (e.g., 'bitcoin').
*/
network: UtxoNetworkKey;
};
query: {
/**
* - The block hash in hexadecimal format (64 characters).
*/
blockHash: string;
};
url: '/utxo/{network}/blockByHash';
};
export type UtxoBlockByHashErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type UtxoBlockByHashResponses = {
/**
* An object containing detailed information about the block.
*/
200: {
txs: Array<string>;
difficulty: number;
nonce: number;
sizeBytes: number;
timestamp: number;
height: number;
parentHash: string;
hash: string;
};
};
export type UtxoBlockByHashResponse = UtxoBlockByHashResponses[keyof UtxoBlockByHashResponses];
export type PolygonAddressBalanceData = {
body?: never;
path?: never;
query: {
/**
* - The Ethereum address to query.
*/
address: string;
};
url: '/polygon/addressBalance';
};
export type PolygonAddressBalanceErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type PolygonAddressBalanceResponses = {
/**
* An object containing confirmed and unconfirmed balances.
*/
200: {
unconfirmed: string;
confirmed: string;
};
};
export type PolygonAddressBalanceResponse = PolygonAddressBalanceResponses[keyof PolygonAddressBalanceResponses];
export type PolygonAddressTokenBalancesData = {
body?: never;
path?: never;
query?: never;
url: '/polygon/addressTokenBalances';
};
export type PolygonAddressTokenBalancesErrors = {
/**
* Coming soon
*/
501: unknown;
};
export type PolygonAddressHistoryData = {
body?: never;
path?: never;
query?: never;
url: '/polygon/addressHistory';
};
export type PolygonAddressHistoryErrors = {
/**
* Coming soon
*/
501: unknown;
};
export type PolygonLatestBlockData = {
body?: never;
path?: never;
query?: never;
url: '/polygon/latestBlock';
};
export type PolygonLatestBlockErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type PolygonLatestBlockResponses = {
/**
* An object containing the height and hash of the latest block.
*/
200: {
hash: string;
height: number;
};
};
export type PolygonLatestBlockResponse = PolygonLatestBlockResponses[keyof PolygonLatestBlockResponses];
export type PolygonTransactionDetailsData = {
body?: never;
path?: never;
query: {
/**
* - The transaction hash in hexadecimal format.
*/
transactionId: string;
};
url: '/polygon/transactionDetails';
};
export type PolygonTransactionDetailsErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type PolygonTransactionDetailsResponses = {
/**
* An object containing detailed information about the transaction.
*/
200: EvmTransactionDetails;
};
export type PolygonTransactionDetailsResponse = PolygonTransactionDetailsResponses[keyof PolygonTransactionDetailsResponses];
export type PolygonBalanceHistoryData = {
body?: never;
path?: never;
query?: never;
url: '/polygon/balanceHistory';
};
export type PolygonBalanceHistoryErrors = {
/**
* Coming soon
*/
501: unknown;
};
export type PolygonGetBlockHeightData = {
body?: never;
path?: never;
query: {
/**
* - The block hash in hexadecimal format.
*/
blockHash: string;
};
url: '/polygon/getBlockHeight';
};
export type PolygonGetBlockHeightErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type PolygonGetBlockHeightResponses = {
/**
* The height of the block.
*/
200: number;
};
export type PolygonGetBlockHeightResponse = PolygonGetBlockHeightResponses[keyof PolygonGetBlockHeightResponses];
export type PolygonBlockTransactionsData = {
body?: never;
path?: never;
query?: {
/**
* - The height of the block (non-negative integer).
*/
blockHeight?: number;
};
url: '/polygon/blockTransactions';
};
export type PolygonBlockTransactionsErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type PolygonBlockTransactionsResponses = {
/**
* An array of transaction hashes included in the block.
*/
200: Array<string>;
};
export type PolygonBlockTransactionsResponse = PolygonBlockTransactionsResponses[keyof PolygonBlockTransactionsResponses];
export type PolygonFeeRateData = {
body?: never;
path?: never;
query?: never;
url: '/polygon/feeRate';
};
export type PolygonFeeRateErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type PolygonFeeRateResponses = {
/**
* An object containing fee estimates for low, normal, and high priorities.
*/
200: EvmPossibleFees;
};
export type PolygonFeeRateResponse = PolygonFeeRateResponses[keyof PolygonFeeRateResponses];
export type PolygonBroadcastTransactionData = {
/**
* - The request body.
*/
body: {
transactionRaw: string;
};
path?: never;
query?: never;
url: '/polygon/broadcastTransaction';
};
export type PolygonBroadcastTransactionErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type PolygonBroadcastTransactionResponses = {
/**
* An object containing the transaction hash of the broadcasted transaction.
*/
200: {
txId: string;
};
};
export type PolygonBroadcastTransactionResponse = PolygonBroadcastTransactionResponses[keyof PolygonBroadcastTransactionResponses];
export type PolygonCallSmartContractFunctionData = {
/**
* - The request body.
*/
body: {
contract: string;
data: string;
};
path?: never;
query?: never;
url: '/polygon/callSmartContractFunction';
};
export type PolygonCallSmartContractFunctionErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type PolygonCallSmartContractFunctionResponses = {
/**
* The result of the smart contract function call.
*/
200: {
result: string;
};
};
export type PolygonCallSmartContractFunctionResponse = PolygonCallSmartContractFunctionResponses[keyof PolygonCallSmartContractFunctionResponses];
export type PolygonLogoData = {
body?: never;
path?: never;
query?: never;
url: '/polygon/logo';
};
export type PolygonLogoErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type PolygonLogoResponses = {
/**
* The logo image in SVG format.
*/
200: string;
};
export type PolygonLogoResponse = PolygonLogoResponses[keyof PolygonLogoResponses];
export type PolygonAddressTransactionCountData = {
body?: never;
path?: never;
query: {
/**
* - The Ethereum address to query.
*/
address: string;
};
url: '/polygon/addressTransactionCount';
};
export type PolygonAddressTransactionCountErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type PolygonAddressTransactionCountResponses = {
/**
* The number of transactions sent from the address.
*/
200: Decimal;
};
export type PolygonAddressTransactionCountResponse = PolygonAddressTransactionCountResponses[keyof PolygonAddressTransactionCountResponses];
export type PolygonEstimateGasData = {
body?: never;
path?: never;
query: {
/**
* - The sender's Ethereum address.
*/
addressFrom: string;
/**
* - The recipient's Ethereum address.
*/
addressTo: string;
/**
* - The transaction nonce.
*/
nonce: string;
/**
* - The amount of Ether to send.
*/
amount: string;
/**
* - The transaction data in hexadecimal format. Use '0x' if there's no data.
*/
data: string;
};
url: '/polygon/estimateGas';
};
export type PolygonEstimateGasErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type PolygonEstimateGasResponses = {
/**
* The estimated gas required for the transaction.
*/
200: Decimal;
};
export type PolygonEstimateGasResponse = PolygonEstimateGasResponses[keyof PolygonEstimateGasResponses];
export type PolygonNetworkStatusData = {
body?: never;
path?: never;
query?: never;
url: '/polygon/networkStatus';
};
export type PolygonNetworkStatusErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type PolygonNetworkStatusResponses = {
/**
* An object containing the network status information.
*/
200: NetworkStatus;
};
export type PolygonNetworkStatusResponse = PolygonNetworkStatusResponses[keyof PolygonNetworkStatusResponses];
export type PolygonBlockByHeightData = {
body?: never;
path?: never;
query: {
/**
* - The height (number) of the block.
*/
blockHeight: number;
};
url: '/polygon/blockByHeight';
};
export type PolygonBlockByHeightErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type PolygonBlockByHeightResponses = {
/**
* An object containing detailed information about the block.
*/
200: {
txs: Array<string>;
difficulty: number;
nonce: number;
sizeBytes: number;
timestamp: number;
height: number;
parentHash: string;
hash: string;
};
};
export type PolygonBlockByHeightResponse = PolygonBlockByHeightResponses[keyof PolygonBlockByHeightResponses];
export type PolygonBlockByHashData = {
body?: never;
path?: never;
query: {
/**
* - The block hash in hexadecimal format.
*/
blockHash: string;
};
url: '/polygon/blockByHash';
};
export type PolygonBlockByHashErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type PolygonBlockByHashResponses = {
/**
* An object containing detailed information about the block.
*/
200: {
txs: Array<string>;
difficulty: number;
nonce: number;
sizeBytes: number;
timestamp: number;
height: number;
parentHash: string;
hash: string;
};
};
export type PolygonBlockByHashResponse = PolygonBlockByHashResponses[keyof PolygonBlockByHashResponses];
export type LitecoinUtxosByAddressData = {
body?: never;
path?: never;
query: {
/**
* - The cryptocurrency address to query.
*/
address: string;
/**
* - The page number for pagination (optional). Must be a non-negative integer.
*/
page?: number;
};
url: '/litecoin/utxosByAddress';
};
export type LitecoinUtxosByAddressErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinUtxosByAddressResponses = {
/**
* An array of UTXOs.
*/
200: UtxosN;
};
export type LitecoinUtxosByAddressResponse = LitecoinUtxosByAddressResponses[keyof LitecoinUtxosByAddressResponses];
export type LitecoinAddressBalanceData = {
body?: never;
path?: never;
query: {
/**
* - The cryptocurrency address to query.
*/
address: string;
};
url: '/litecoin/addressBalance';
};
export type LitecoinAddressBalanceErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinAddressBalanceResponses = {
/**
* An object containing confirmed and unconfirmed balances.
*/
200: AddressBalanceN;
};
export type LitecoinAddressBalanceResponse = LitecoinAddressBalanceResponses[keyof LitecoinAddressBalanceResponses];
export type LitecoinAddressHistoryData = {
body?: never;
path?: never;
query: {
/**
* - The cryptocurrency address to query.
*/
address: string;
/**
* - The page number for pagination (optional). Must be a non-negative integer.
*/
page?: number;
};
url: '/litecoin/addressHistory';
};
export type LitecoinAddressHistoryErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinAddressHistoryResponses = {
/**
* An object containing the page number and an array of transactions.
*/
200: TxoAddressHistoryN;
};
export type LitecoinAddressHistoryResponse = LitecoinAddressHistoryResponses[keyof LitecoinAddressHistoryResponses];
export type LitecoinBalanceHistoryData = {
body?: never;
path?: never;
query?: never;
url: '/litecoin/balanceHistory';
};
export type LitecoinBalanceHistoryErrors = {
/**
* Coming soon
*/
501: unknown;
};
export type LitecoinLatestBlockData = {
body?: never;
path?: never;
query?: never;
url: '/litecoin/latestBlock';
};
export type LitecoinLatestBlockErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinLatestBlockResponses = {
/**
* An object containing the height and hash of the latest block.
*/
200: Block;
};
export type LitecoinLatestBlockResponse = LitecoinLatestBlockResponses[keyof LitecoinLatestBlockResponses];
export type LitecoinMempoolData = {
body?: never;
path?: never;
query?: {
/**
* - The page number for pagination (optional). Must be a non-negative integer.
*/
page?: number;
};
url: '/litecoin/mempool';
};
export type LitecoinMempoolErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinMempoolResponses = {
/**
* An object containing mempool transactions and pagination details.
*/
200: TxoMempoolResponse;
};
export type LitecoinMempoolResponse = LitecoinMempoolResponses[keyof LitecoinMempoolResponses];
export type LitecoinTransactionDetailsData = {
body?: never;
path?: never;
query: {
/**
* - The transaction ID (hash) in hexadecimal format (64 characters).
*/
transactionId: string;
};
url: '/litecoin/transactionDetails';
};
export type LitecoinTransactionDetailsErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinTransactionDetailsResponses = {
/**
* An object containing detailed information about the transaction.
*/
200: TxoTransactionDetails;
};
export type LitecoinTransactionDetailsResponse = LitecoinTransactionDetailsResponses[keyof LitecoinTransactionDetailsResponses];
export type LitecoinGetBlockHeightData = {
body?: never;
path?: never;
query: {
/**
* - The block hash in hexadecimal format (64 characters).
*/
blockHash: string;
};
url: '/litecoin/getBlockHeight';
};
export type LitecoinGetBlockHeightErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinGetBlockHeightResponses = {
/**
* The height of the block.
*/
200: number;
};
export type LitecoinGetBlockHeightResponse = LitecoinGetBlockHeightResponses[keyof LitecoinGetBlockHeightResponses];
export type LitecoinBlockTransactionsData = {
body?: never;
path?: never;
query: {
/**
* - The height of the block (non-negative integer).
*/
blockHeight: number;
};
url: '/litecoin/blockTransactions';
};
export type LitecoinBlockTransactionsErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinBlockTransactionsResponses = {
/**
* An array of transaction IDs included in the block.
*/
200: Array<string>;
};
export type LitecoinBlockTransactionsResponse = LitecoinBlockTransactionsResponses[keyof LitecoinBlockTransactionsResponses];
export type LitecoinFeeRateData = {
body?: never;
path?: never;
query?: never;
url: '/litecoin/feeRate';
};
export type LitecoinFeeRateErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinFeeRateResponses = {
/**
* An object containing fee estimates for low, normal, high, and maximum priorities.
*/
200: TxoPossibleFees;
};
export type LitecoinFeeRateResponse = LitecoinFeeRateResponses[keyof LitecoinFeeRateResponses];
export type LitecoinBroadcastTransactionData = {
/**
* - The request body.
*/
body: {
transactionRaw: string;
};
path?: never;
query?: never;
url: '/litecoin/broadcastTransaction';
};
export type LitecoinBroadcastTransactionErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinBroadcastTransactionResponses = {
/**
* An object containing the transaction ID of the broadcasted transaction.
*/
200: {
txId: string;
};
};
export type LitecoinBroadcastTransactionResponse = LitecoinBroadcastTransactionResponses[keyof LitecoinBroadcastTransactionResponses];
export type LitecoinLogoData = {
body?: never;
path?: never;
query?: never;
url: '/litecoin/logo';
};
export type LitecoinLogoErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinLogoResponses = {
/**
* The logo image in SVG format.
*/
200: string;
};
export type LitecoinLogoResponse = LitecoinLogoResponses[keyof LitecoinLogoResponses];
export type LitecoinEstimateTransactionSizeData = {
/**
* - The request body.
*/
body: {
to: Array<string>;
from: Array<{
pubKeys?: number;
signatures?: number;
address: string;
}>;
};
path?: never;
query?: never;
url: '/litecoin/estimateTransactionSize';
};
export type LitecoinEstimateTransactionSizeErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinEstimateTransactionSizeResponses = {
/**
* An object containing the estimated transaction size in bytes.
*/
200: {
bytes: number;
};
};
export type LitecoinEstimateTransactionSizeResponse = LitecoinEstimateTransactionSizeResponses[keyof LitecoinEstimateTransactionSizeResponses];
export type LitecoinBlockByHeightData = {
body?: never;
path?: never;
query: {
/**
* - The height of the block (non-negative integer).
*/
blockHeight: number;
};
url: '/litecoin/blockByHeight';
};
export type LitecoinBlockByHeightErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinBlockByHeightResponses = {
/**
* An object containing detailed information about the block.
*/
200: {
txs: Array<string>;
difficulty: number;
nonce: number;
sizeBytes: number;
timestamp: number;
height: number;
parentHash: string;
hash: string;
};
};
export type LitecoinBlockByHeightResponse = LitecoinBlockByHeightResponses[keyof LitecoinBlockByHeightResponses];
export type LitecoinBlockByHashData = {
body?: never;
path?: never;
query: {
/**
* - The block hash in hexadecimal format (64 characters).
*/
blockHash: string;
};
url: '/litecoin/blockByHash';
};
export type LitecoinBlockByHashErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type LitecoinBlockByHashResponses = {
/**
* An object containing detailed information about the block.
*/
200: {
txs: Array<string>;
difficulty: number;
nonce: number;
sizeBytes: number;
timestamp: number;
height: number;
parentHash: string;
hash: string;
};
};
export type LitecoinBlockByHashResponse = LitecoinBlockByHashResponses[keyof LitecoinBlockByHashResponses];
export type FantomAddressBalanceData = {
body?: never;
path?: never;
query: {
/**
* - The Ethereum address to query.
*/
address: string;
};
url: '/fantom/addressBalance';
};
export type FantomAddressBalanceErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type FantomAddressBalanceResponses = {
/**
* An object containing confirmed and unconfirmed balances.
*/
200: {
unconfirmed: string;
confirmed: string;
};
};
export type FantomAddressBalanceResponse = FantomAddressBalanceResponses[keyof FantomAddressBalanceResponses];
export type FantomAddressTokenBalancesData = {
body?: never;
path?: never;
query?: never;
url: '/fantom/addressTokenBalances';
};
export type FantomAddressTokenBalancesErrors = {
/**
* Coming soon
*/
501: unknown;
};
export type FantomAddressHistoryData = {
body?: never;
path?: never;
query?: never;
url: '/fantom/addressHistory';
};
export type FantomAddressHistoryErrors = {
/**
* Coming soon
*/
501: unknown;
};
export type FantomLatestBlockData = {
body?: never;
path?: never;
query?: never;
url: '/fantom/latestBlock';
};
export type FantomLatestBlockErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type FantomLatestBlockResponses = {
/**
* An object containing the height and hash of the latest block.
*/
200: {
hash: string;
height: number;
};
};
export type FantomLatestBlockResponse = FantomLatestBlockResponses[keyof FantomLatestBlockResponses];
export type FantomTransactionDetailsData = {
body?: never;
path?: never;
query: {
/**
* - The transaction hash in hexadecimal format.
*/
transactionId: string;
};
url: '/fantom/transactionDetails';
};
export type FantomTransactionDetailsErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type FantomTransactionDetailsResponses = {
/**
* An object containing detailed information about the transaction.
*/
200: EvmTransactionDetails;
};
export type FantomTransactionDetailsResponse = FantomTransactionDetailsResponses[keyof FantomTransactionDetailsResponses];
export type FantomBalanceHistoryData = {
body?: never;
path?: never;
query?: never;
url: '/fantom/balanceHistory';
};
export type FantomBalanceHistoryErrors = {
/**
* Coming soon
*/
501: unknown;
};
export type FantomGetBlockHeightData = {
body?: never;
path?: never;
query: {
/**
* - The block hash in hexadecimal format.
*/
blockHash: string;
};
url: '/fantom/getBlockHeight';
};
export type FantomGetBlockHeightErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type FantomGetBlockHeightResponses = {
/**
* The height of the block.
*/
200: number;
};
export type FantomGetBlockHeightResponse = FantomGetBlockHeightResponses[keyof FantomGetBlockHeightResponses];
export type FantomBlockTransactionsData = {
body?: never;
path?: never;
query?: {
/**
* - The height of the block (non-negative integer).
*/
blockHeight?: number;
};
url: '/fantom/blockTransactions';
};
export type FantomBlockTransactionsErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type FantomBlockTransactionsResponses = {
/**
* An array of transaction hashes included in the block.
*/
200: Array<string>;
};
export type FantomBlockTransactionsResponse = FantomBlockTransactionsResponses[keyof FantomBlockTransactionsResponses];
export type FantomFeeRateData = {
body?: never;
path?: never;
query?: never;
url: '/fantom/feeRate';
};
export type FantomFeeRateErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type FantomFeeRateResponses = {
/**
* An object containing fee estimates for low, normal, and high priorities.
*/
200: EvmPossibleFees;
};
export type FantomFeeRateResponse = FantomFeeRateResponses[keyof FantomFeeRateResponses];
export type FantomBroadcastTransactionData = {
/**
* - The request body.
*/
body: {
transactionRaw: string;
};
path?: never;
query?: never;
url: '/fantom/broadcastTransaction';
};
export type FantomBroadcastTransactionErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type FantomBroadcastTransactionResponses = {
/**
* An object containing the transaction hash of the broadcasted transaction.
*/
200: {
txId: string;
};
};
export type FantomBroadcastTransactionResponse = FantomBroadcastTransactionResponses[keyof FantomBroadcastTransactionResponses];
export type FantomCallSmartContractFunctionData = {
/**
* - The request body.
*/
body: {
contract: string;
data: string;
};
path?: never;
query?: never;
url: '/fantom/callSmartContractFunction';
};
export type FantomCallSmartContractFunctionErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type FantomCallSmartContractFunctionResponses = {
/**
* The result of the smart contract function call.
*/
200: {
result: string;
};
};
export type FantomCallSmartContractFunctionResponse = FantomCallSmartContractFunctionResponses[keyof FantomCallSmartContractFunctionResponses];
export type FantomLogoData = {
body?: never;
path?: never;
query?: never;
url: '/fantom/logo';
};
export type FantomLogoErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type FantomLogoResponses = {
/**
* The logo image in SVG format.
*/
200: string;
};
export type FantomLogoResponse = FantomLogoResponses[keyof FantomLogoResponses];
export type FantomAddressTransactionCountData = {
body?: never;
path?: never;
query: {
/**
* - The Ethereum address to query.
*/
address: string;
};
url: '/fantom/addressTransactionCount';
};
export type FantomAddressTransactionCountErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type FantomAddressTransactionCountResponses = {
/**
* The number of transactions sent from the address.
*/
200: Decimal;
};
export type FantomAddressTransactionCountResponse = FantomAddressTransactionCountResponses[keyof FantomAddressTransactionCountResponses];
export type FantomEstimateGasData = {
body?: never;
path?: never;
query: {
/**
* - The sender's Ethereum address.
*/
addressFrom: string;
/**
* - The recipient's Ethereum address.
*/
addressTo: string;
/**
* - The transaction nonce.
*/
nonce: string;
/**
* - The amount of Ether to send.
*/
amount: string;
/**
* - The transaction data in hexadecimal format. Use '0x' if there's no data.
*/
data: string;
};
url: '/fantom/estimateGas';
};
export type FantomEstimateGasErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type FantomEstimateGasResponses = {
/**
* The estimated gas required for the transaction.
*/
200: Decimal;
};
export type FantomEstimateGasResponse = FantomEstimateGasResponses[keyof FantomEstimateGasResponses];
export type FantomNetworkStatusData = {
body?: never;
path?: never;
query?: never;
url: '/fantom/networkStatus';
};
export type FantomNetworkStatusErrors = {
/**
* Internal server error
*/
500: unknown;
};
export type FantomNetworkStatusResponses = {
/**
* An object containing the network status information.
*/
200: NetworkStatus;
};
export type FantomNetworkStatusResponse = FantomNetworkStatusResponses[keyof FantomNetworkStatusResponses];
export type FantomBlockByHeightData = {
body?: never;
path?: never;
query: {
/**
* - The height (number) of the block.
*/
blockHeight: number;
};
url: '/fantom/blockByHeight';
};
export type FantomBlockByHeightErrors = {
/**
* Bad request
*/
400: unknown;
/**
* Internal server error
*/
500: unknown;
};
export type FantomBlockByHeightResponses