Skip to content

Estimate transaction fees

POST/accounts/{id}/estimate-fees

Path parameters

NameTypeDescriptionRequired
id
string
Id of the target account

Request body schema

{
transaction:
|
Bitcoin-like send data
|
Canton-like send data
|
Cardano-like send data
|
Cardano-like staking delegate
|
Cardano-like staking deregister data
|
Cardano-like staking register data
|
Cardano-like staking withdraw data
|
Ethereum-like deploy contract data
|
Ethereum-like execute contract data
|
Ethereum-like send data
|
Generic transaction data
|
Polkadot-like add proxy data
|
Polkadot-like anonymous proxy data
|
Polkadot-like bond data
|
Polkadot-like bond extra data
|
Polkadot-like chill data
|
Polkadot-like kill anonymous data
|
Polkadot-like rebond data
|
Polkadot-like remove proxy data
|
Polkadot-like send data
|
Polkadot-like set payee data
|
Polkadot-like unbond data
|
Polkadot-like withdraw unbonded data
|
Ripple-like send data
|
Solana-like create delegate stake data
|
Solana-like deactivate stake data
|
Solana-like delegate stake data
|
Solana-like merge stake data
|
Solana-like send data
|
Solana-like split deactivate stake data
|
Solana-like split stake data
|
Solana-like withdraw stake data
|
Solana-like send token data
|
Solana-like fund token account and send token data
|
Solana-like create token account
|
Stellar-like send data
|
Sui-like send data
|
Sui-like transfer token data
|
Sui-like stake data
|
Sui-like unstake data
|
Tezos-like send data
|
Tezos-like delegate data
|
Tezos-like undelegate data
|
Tron-like send data
|
Tron-like send token data
}

Response schema

|
Ethereum-like fees
|
Ripple-like fees
|
Stellar-like fees
|
Sui-like fees
|
Tezos-like fees
|
Tron-like fees

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))