---
title: "Create Fee Transaction"
method: POST
path: "/defi/v1/chain/createfeetransaction"
tags: ["chain"]
---

# Create Fee Transaction

`POST /defi/v1/chain/createfeetransaction`

## Request

- Base URL: `https://svc.blockdaemon.com`
- URL: `https://svc.blockdaemon.com/defi/v1/chain/createfeetransaction`
- Auth: API key in header `X-API-Key`

Initiates a fee-collection transaction on the blockchain, deducting a default or customizable basis-point fee from the sender. The response returns chain ID, addresses, gas limits, and nonce, ensuring proper verification of fee deductions and transfers.

> 💡 
**Compute Unit Value:** `5` (Fixed)

## Request body

- ChainCreatefeetransactionRequest: The request body for a /defi/v1/chain/createfeetransaction
  - `chainId` '1' | '11155111' | '25' | '56' | '97' | '43114' | '338' | '43113' | '421614' | '17000' | '42161' | '10' | '11155420' | '4002' | '324' | '300' | '137' | '80002' | '250' | '8453' | '84532': The unique ID to direct queries or transactions to the correct blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains).
  - `chainSymbol` string: The abbreviated chain name for queries or transactions.
  - `from` string, required: Public blockchain address of the sender initiating the transaction. Format depends on the chain (e.g., 0xABCDEF... for EVM, G... for Stellar).
  - `to` string, required: Public blockchain address of the recipient. Format depends on the chain (e.g., 0xABCDEF... for EVM, G... for Stellar).
  - `gas` string: Maximum number of gas units to allocate for the transaction, as an integer string (e.g., '200000'). If omitted, gas is estimated automatically. Note: this is gas units, not wei or gwei.
  - `value` string, required: Amount of native currency to send with the transaction, specified in wei (integer string). Example: '1000000000000000000' = 1 ETH.
  - `data` string: Encoded function call data for the transaction.
  - `gasPrice` string: Price per unit of gas in wei, for legacy (pre-EIP-1559) transactions (integer string). Example: '20000000000' = 20 gwei.
  - `referenceId` string, required: A unique identifier generated for each POST request to enable tracking and referencing of the associated transaction.
  - `simulate` boolean: When true, dry-runs the transaction batch via eth_simulateV1 and returns a simulate field with status and error on each transaction.

## Response `200`

Successful response

- object
  - `status` number
  - `msg` string
  - `data` object
    - `chainId` string, required
    - `from` string, required
    - `to` string, required
    - `value` string, required
    - `gas` string
    - `gasPrice` string, required

---

[API](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/revisions/ec053b7c8041?raw)
