Ledger Enterprise
API Documentation V1
API Documentation V1
  • GETTING STARTED
    • Welcome
    • Getting Started
    • Authentication
    • Rate Limits
    • Pagination
  • tutorials
    • Register a new API User
    • First Steps as an API User
    • Generate Reporting API Keys
    • Manage Reporting API Keys
  • REFERENCE
    • API reference
      • Accounts
        • Addresses
        • Balances
          • History
        • Currency
        • History
        • Labels
        • Nft collections
        • Nft portfolio
        • Nfts
        • Sync
        • Tokens
        • Erc20 children accounts
      • Api users
        • Register
      • Currencies
        • Tokens
      • Digests
        • History
      • Entities
        • History
        • Users
      • Groups
        • History
      • Labels
      • Messages
        • History
      • Organization
      • Pledges
      • Requests
        • Approve
        • Challenge
          • Reject
        • Governance status
        • Reject
      • Settlements
      • Transactions
        • Estimate fees
        • Fees
        • Approve
        • History
        • Labels
        • Reject
      • Users
        • History
      • Whitelists
        • History
      • Auth
        • Token
          • Refresh
      • Compliance
        • Address risk
        • Sanctions
      • Notifications
        • Configuration
    • Specification
Powered by GitBook
On this page
  1. REFERENCE
  2. API reference
  3. Transactions

Estimate fees

PreviousTransactionsNextFees

Estimate transaction fees

post

Estimate transaction fees

Authorizations
Body
any ofOptional
Responses
200
attributes of the transaction to estimate
application/json
Responseone of
or
or
or
or
or
or
or
400
Invalid transaction parameters
application/json
post
POST /transactions/estimate-fees HTTP/1.1
Host: 
X-Ledger-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 392

{
  "data": {
    "account_id": "101",
    "fees_strategy": {
      "data": {
        "fees_per_byte": "30"
      },
      "type": "CUSTOM"
    },
    "transaction_data": {
      "account_name": "ETH Wallet 1",
      "amount": "1267887898998",
      "currency": "bitcoin",
      "max_fees": "123908790",
      "recipient": "0x1234...abcd"
    },
    "transaction_type": "BITCOIN_LIKE_SEND"
  },
  "note": {
    "content": "some information about this transaction",
    "title": "a note title"
  },
  "type": "CREATE_TRANSACTION"
}
{
  "coin_fields": {
    "gas_limit": "21000",
    "gas_price": "157000000"
  },
  "max_fees": "text"
}