Перейти к содержанию

Fee Info XLM service

Server address: https://cloud.spatium.net/fee-info-xlm/v1

Swagger

For this server address, the XLM blockchain (chain) fee information is available:

Transaction fee

Information about the fee size for sending transactions or smart contract execution on the blockchain network. The service provides the following fee values:

  • lastLedgerBaseFee: last ledger base fee value;
  • feeCharged: minimum and maximum fees from last ledger transactions.

Fee info caching

The end user (client) receives a transaction fee from the service in the form of static JSON files.

Historical

Swagger XLM Fee Info History

Request structure

/static/fee-info-history-{period}-{chain}-{network}.json

Response structure

[
  {
    "date": number,
    "feeInfo": {
      "feeCharged": {
        "min": string,
        "max": string,
      },
      "lastLedgerBaseFee": string
    }
  }
]

Request example

https://cloud.spatium.net/fee-info-eth-like/v1/static/fee-info-history-day-xlm-livenet.json

Response example

fee-info-history-day-xlm-livenet.json
[
    {
        "date": 1689773402,
        "feeInfo": {
            "feeCharged": {
                "min": "100",
                "max": "100"
            },
            "lastLedgerBaseFee": "100"
        }
    },
    {
        "date": 1689773431,
        "feeInfo": {
            "feeCharged": {
                "min": "100",
                "max": "100"
            },
            "lastLedgerBaseFee": "100"
        }
    },
    {
        "date": 1689775202,
        "feeInfo": {
            "feeCharged": {
                "min": "100",
                "max": "1119"
            },
            "lastLedgerBaseFee": "100"
        }
    },
    {
        "date": 1689775231,
        "feeInfo": {
            "feeCharged": {
                "min": "100",
                "max": "1119"
            },
            "lastLedgerBaseFee": "100"
        }
    }
]

Latest

Swagger XLM Fee Info Latest

Request structure

/static/fee-info-{network}.json

Response structure

{
  "xlm": {
    "date": number,
    "feeInfo": {
      "feeCharged": {
        "min": string,
        "max": string
      },
      "lastLedgerBaseFee": string
    }
  }
}

Request example

https://cloud.spatium.net/fee-info-xlm/v1/static/fee-info-livenet.json

Response example

fee-info-livenet.json
1
2
3
4
5
6
7
8
9
{
  "xlm": {
    "lastLedgerBaseFee": "100",
    "feeCharged": {
      "min": "100",
      "max": "5000"
    }
  }
}