---
title: "returns the transaction's cost"
method: POST
path: "/transaction/cost"
tags: ["transaction"]
---

# returns the transaction's cost

`POST /transaction/cost`

## Request body

- Transaction
  - `nonce` integer
  - `value` string
  - `receiver` string
  - `sender` string
  - `senderusername` integer[]
  - `receiverusername` integer[]
  - `gasprice` integer
  - `gaslimit` integer
  - `data` integer[]
  - `signature` string
  - `chainid` string
  - `version` integer
  - `options` integer

## Response `200`

successful operation

- GenericResponse
  - `data` object
  - `error` string
  - `code` string

## Other responses

- `400` — validation error

---

[API](https://skmtc.net/multiversx/apis/multiversx-gateway-api.md) · [All operations](https://skmtc.net/multiversx/apis/multiversx-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/multiversx/multiversx-gateway-api/versions/44c49bc12621/schema)
