Creates a new instance of the Mintlayer API client
The base URL of the Mintlayer API server
Fetches information about a specific address
The address to query
Promise resolving to the address information
Fetches delegation information for a specific address
The address to query
Promise resolving to an array of delegation information
Fetches token authority information for a specific address
The address to query
Promise resolving to an array of token authority IDs
Fetches spendable UTXOs for a specific address
The address to query
Promise resolving to an array of spendable UTXO information
Fetches all UTXOs for a specific address
The address to query
Promise resolving to an array of UTXO information
Fetches detailed information about a specific block
The block ID to query
Promise resolving to the block information
Fetches the header information for a specific block
The block ID to query
Promise resolving to the block header information
Fetches the reward information for a specific block
The block ID to query
Promise resolving to the block reward transaction outputs
Fetches the list of transaction IDs in a specific block
The block ID to query
Promise resolving to an array of transaction IDs
Fetches the block ID at a specific height
The block height to query
Promise resolving to the block ID at the specified height
Fetches the genesis block information
Promise resolving to the genesis block data including block ID, message, timestamp, and UTXOs
Fetches the current chain tip information
Promise resolving to the current block height and block ID
Fetches coin statistics including supply information
Promise resolving to coin statistics including circulating supply, preminted, burned, and staked amounts
Fetches information about a specific delegation
The delegation ID to query
Promise resolving to the delegation information
Fetches the current fee rate
Optional
params: { in_top_x_mb?: number }Optional parameters including in_top_x_mb for fee rate calculation
Promise resolving to the current fee rate
Fetches information about a specific NFT
The NFT ID to query
Promise resolving to the NFT information
Fetches information about a specific order
The order ID to query
Promise resolving to the order information
Fetches orders for a specific trading pair
The trading pair to query
Optional
params: PaginationParamsOptional pagination parameters
Promise resolving to an array of order information for the specified pair
Fetches a list of orders with optional pagination
Optional
params: PaginationParamsOptional pagination parameters
Promise resolving to an array of order information
Fetches information about a specific pool
The pool ID to query
Promise resolving to the pool information
Fetches block statistics for a specific pool
The pool ID to query
Time filter parameters for the statistics
Promise resolving to the pool's block statistics
Fetches delegation information for a specific pool
The pool ID to query
Promise resolving to an array of delegation information
Fetches a list of pools with optional pagination and sorting
Optional
params: PaginationParams & { sort?: "by_height" | "by_pledge" }Optional parameters including pagination and sort options
Promise resolving to an array of pool information
Fetches information about a specific token
The token ID to query
Promise resolving to the token information
Fetches a list of token IDs with optional pagination
Optional
params: PaginationParamsOptional pagination parameters
Promise resolving to an array of token IDs
Fetches token IDs by their ticker symbol
The ticker symbol to search for
Optional
params: PaginationParamsOptional pagination parameters
Promise resolving to an array of token IDs matching the ticker
Fetches statistics for a specific token
The token ID to query
Promise resolving to token statistics including circulating supply, preminted, burned, and staked amounts
Fetches detailed information about a specific transaction
The transaction ID to query
Promise resolving to the transaction information
Fetches the Merkle path for a specific transaction
The transaction ID to query
Promise resolving to the transaction's Merkle path information
Fetches a list of transactions with optional pagination
Optional
params: PaginationParamsOptional pagination parameters
Promise resolving to an array of transactions
Submits a new transaction to the network
The transaction data to submit
Promise resolving to the transaction ID
Client for interacting with the Mintlayer API Provides methods to interact with various endpoints of the Mintlayer blockchain including chain, block, transaction, address, pool, delegation, token, and order operations