Appearance
Estimate transaction fees
| POST | /accounts/{id}/estimate-fees |
Path parameters
| Name | Type | Description | Required |
|---|---|---|---|
id | string | Id of the target account | ✅ |
Request body schema
{
transaction:
}|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Response schema
|
|
|
|
|
|
Examples
bash
curl \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {jwt}" \
--data '{json-data}' \
"$API_BASE_URL/accounts/{id}/estimate-fees"ts
const url = "<base-url>/accounts/{id}/estimate-fees";
const headers = {
"Content-Type": "application/json",
Authorization: "Bearer <jwt>"
};
const payload = {}; // <- fill with the expected payload
fetch(url, { headers, method: "POST", body: JSON.stringify(payload) }).then(res => {
console.log(res)
});python
import requests
url = "<base-url>/accounts/{id}/estimate-fees"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer <jwt>"
}
data = {} # <- fill with the expected payload
print(requests.post(url, headers=headers, data=data))