-
Home
-
Docs
-
Nexi Docs
-
API configuration
- API access
Key Functions of NexiScan API
1. Block Information
- Get Block Details
- Endpoint:
/api?module=block&action=getBlockByNumber
- Description: Retrieves details of a block by its number.
- Parameters:
blockNumber
(block number)
- Get Latest Block
- Endpoint:
/api?module=block&action=getLatestBlock
- Description: Provides details about the latest block.
- Parameters: None
2. Transaction Information
- Get Transaction Details
- Endpoint:
/api?module=transaction&action=getTransactionByHash
- Description: Retrieves details of a transaction by its hash.
- Parameters:
txhash
(transaction hash)
- Get Transactions by Block
- Endpoint:
/api?module=block&action=getBlockTransactions
- Description: Lists all transactions in a specific block.
- Parameters:
blockNumber
(block number)
3. Account Information
- Get Account Details
- Endpoint:
/api?module=account&action=getAccount
- Description: Provides information about an account, including balance.
- Parameters:
address
(account address)
- Get Account Transactions
- Endpoint:
/api?module=account&action=getAccountTransactions
- Description: Lists all transactions for a specific account.
- Parameters:
address
(account address)
4. Token Information
- Get Token Details
- Endpoint:
/api?module=token&action=getToken
- Description: Retrieves details about a token contract.
- Parameters:
address
(token contract address)
- Get Token Transfers
- Endpoint:
/api?module=token&action=getTokenTransfers
- Description: Lists all token transfers for a specific token contract.
- Parameters:
address
(token contract address)
5. Network Information
- Get Network Stats
- Endpoint:
/api?module=network&action=getStats
- Description: Provides network statistics, such as total blocks and transactions.
- Parameters: None
- Get Network Status
- Endpoint:
/api?module=network&action=getStatus
- Description: Shows the current status of the network.
- Parameters: None
6. Miscellaneous
- Search Functionality
- Endpoint:
/api?module=search&action=search
- Description: Allows searching for blocks, transactions, or accounts.
- Parameters:
query
(search term)
- Get Gas Price
- Endpoint:
/api?module=gas&action=getGasPrice
- Description: Provides the current gas price in the network.
- Parameters: None