PulseChain API Documentation
The PulseChain API provides a set of subclients that allow interaction with various blockchain resources. This documentation covers the available subclients, response models, and usage examples.
Response Models
This section documents the BaseResponse and PaginatedResponse models, which are used to structure responses from the PulseChain API.
Subclients Overview
The PulseChain API consists of several subclients, each responsible for interacting with different parts of the PulseChain network.
Addresses Subclient: Handles operations related to addresses.
Blocks Subclient: Retrieves information about blocks.
Search Subclient: Allows searching within the blockchain.
Smart Contracts Subclient: Interacts with smart contracts.
Stats Subclient: Provides network statistics.
Tokens Subclient: Deals with tokens on the blockchain.
Transactions Subclient: Retrieves information about transactions.
Subclients:
Addresses Subclient
This subclient allows interactions with blockchain addresses, such as retrieving balances, transactions, etc.
Blocks Subclient
This subclient retrieves information related to blocks in the blockchain.
Search Subclient
The Search Subclient allows users to perform searches within the PulseChain blockchain.
Smart Contracts Subclient
The Smart Contracts Subclient allows for interactions with smart contracts, including retrieving details, counters, and methods available.
Example:
from pulsechain.subclients.smart_contracts import SmartContractsClient
from pulsechain.req_handler import APIRequestHandler
request_handler = APIRequestHandler(api_key="your_api_key")
client = SmartContractsClient(request_handler)
# Retrieve information about a specific contract
contract_info = client.get_info("0x1234...abcd")
Stats Subclient
The Stats Subclient provides various statistics about the PulseChain network.
Tokens Subclient
This subclient allows interactions related to tokens on the PulseChain network.
Transactions Subclient
The Transactions Subclient allows users to retrieve information about transactions.