MegTrustDevelopers

Network fee estimates

Current low, medium and high fee estimates for one network, in the network coin and USD, for a transfer, a token transfer and a swap. Estimates for previews and for choosing a fee cap: the network sets the final fee when a transaction is broadcast. Amounts are the tier rate multiplied by the standard job sizes in data.units. Read-only; the same for every workspace.

GET/api/v1/fees

Current low, medium and high fee estimates for one network, in the network coin and USD, for a transfer, a token transfer and a swap. Estimates for previews and for choosing a fee cap: the network sets the final fee when a transaction is broadcast. Amounts are the tier rate multiplied by the standard job sizes in data.units. Read-only; the same for every workspace.

Authorization

KeyId Timestamp Signature
x-api-key-id<token>

Key ID registered by your organisation administrator.

In: header

x-api-timestamp<token>

Unix seconds within ±300 seconds of the server clock.

In: header

x-api-signature<token>

Padded base64 Ed25519 signature over timestamp, METHOD, exact path+query, lowercase SHA256(raw body), Idempotency-Key or empty string, joined with LF. Legacy HMAC uses lowercase hex HMAC-SHA256. Signing is required; entering a static value is insufficient.

In: header

Query Parameters

network*string

A network id as shown on a wallet (for example eth-mainnet).

Lengthlength <= 128

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/fees?network=string"
{  "data": {    "network": "string",    "network_name": "string",    "coin": "string",    "coin_usd": 0,    "rate_unit": "gwei",    "low": {      "rate": "string",      "transfer": {        "coin": "string",        "usd": 0      },      "token_transfer": {        "coin": "string",        "usd": 0      },      "swap": {        "coin": "string",        "usd": 0      }    },    "medium": {      "rate": "string",      "transfer": {        "coin": "string",        "usd": 0      },      "token_transfer": {        "coin": "string",        "usd": 0      },      "swap": {        "coin": "string",        "usd": 0      }    },    "high": {      "rate": "string",      "transfer": {        "coin": "string",        "usd": 0      },      "token_transfer": {        "coin": "string",        "usd": 0      },      "swap": {        "coin": "string",        "usd": 0      }    },    "units": {      "unit": "gas",      "transfer": 0,      "token_transfer": 0,      "swap": 0    },    "estimated_at": "2019-08-24T14:15:22Z"  },  "meta": {}}