perform_api_request()¶
- async Client.perform_api_request()¶
Execute a request against the Toncenter API endpoint.
Usable by Users Bots- Parameters:
endpoint (
str) – The Toncenter endpoint to call.query (
str, optional) – Query string parameters.payload (
str, optional) – Request payload data.post (
bool, optional) – Whether to issue a POST request instead of GET.
- Returns:
ApiResponse– The response returned by the Toncenter API.
Example
response = await app.perform_api_request(endpoint="getAddressInformation", query="address=EQ...")