<p>If you can identify the size of the tx (bytes) you could utilise the fee calculation formula given the protocol parameters at the time of submission. (This might be tricky, but it is possible if you were inclined enough to find out a fairly accurate ball-park fee)</p>
<blockquote>
<p>Cardano's fee structure is quite simple. Fees are constructed around two constants (a and b). The formula for calculating minimal fees for a transaction (tx) is a * size(tx) + b, where: a/b are protocol parameters.</p>
</blockquote>
<p><a href="https://docs.cardano.org/explore-cardano/fee-structure" rel="nofollow noreferrer">https://docs.cardano.org/explore-cardano/fee-structure</a></p>

CC BY-SA 4.0
2022-05-30T21:08:07.957Z
2022-05-30T21:08:07.957Z
Rust_Dev
<p>Blockchains do not have an inherent notion of price; one cannot know the price of any asset, including ADA itself, simply by looking at on-chain data (until of-course we develop a <a href="https://github.com/Emurgo/Emurgo-Research/blob/master/oracles/Oracle-Pools.md" rel="nofollow noreferrer">robust oracle system</a>). Currently, the price of cardano-assets like ADA, NFTs, e.t.c. is mostly dictated by off-chain markets (mostly centralized exchanges).</p>
<p>Until we have price/liquidity data being posted on chain, there will not be a way to derive asset prices purely from on-chain data. That being said, analyzing the inputs and outputs of transactions on chain may give you insight into the nature of a transaction that you can use to infer what kind of value transfer is going on.</p>

CC BY-SA 4.0
2021-12-26T19:10:57.417Z
2021-12-26T19:10:57.417Z
zhekson
<p>Given a transaction where an NFT reached its final destination after a sale, how can I derive the cost of the NFT? For example, if I search for an asset on <a href="https://cardanoscan.io/" rel="nofollow noreferrer">cardanoscan.io</a>, the assets involved confuse me: RAVE and ROCKET.</p>
<p>Is there a calculation I can do on the inputs and outputs to derive the exact cost of the transaction? Not just the transaction fee but the cost of the token? Or do I have it conceptually wrong?</p>
<p>Thanks in advance for any insight!</p>
<p><a href="https://i.sstatic.net/nQ3vq.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/nQ3vq.png" alt="enter image description here" /></a></p>

<nft><transaction><cost>
How to derive cost from transaction?
# How to derive cost from transaction?

(Asked by: username_0 on 2021-12-26)

Given a transaction where an NFT reached its final destination after a sale, how can I derive the cost of the NFT? For example, if I search for an asset on [cardanoscan.io](https://cardanoscan.io/), the assets involved confuse me: RAVE and ROCKET.

Is there a calculation I can do on the inputs and outputs to derive the exact cost of the transaction? Not just the transaction fee but the cost of the token? Or do I have it conceptually wrong?

Thanks in advance for any insight!

[![enter image description here](https://i.sstatic.net/nQ3vq.png)](https://i.sstatic.net/nQ3vq.png)

**Tags:** nft, transaction, cost

---

## 2 answers

### Answer by username_1 on 2022-05-30. Score: 2

If you can identify the size of the tx (bytes) you could utilise the fee calculation formula given the protocol parameters at the time of submission. (This might be tricky, but it is possible if you were inclined enough to find out a fairly accurate ball-park fee)

> Cardano's fee structure is quite simple. Fees are constructed around two constants (a and b). The formula for calculating minimal fees for a transaction (tx) is a \* size(tx) + b, where: a/b are protocol parameters.

<https://docs.cardano.org/explore-cardano/fee-structure>


---

### Answer by username_2 on 2021-12-26. Score: 0

Blockchains do not have an inherent notion of price; one cannot know the price of any asset, including ADA itself, simply by looking at on-chain data (until of-course we develop a [robust oracle system](https://github.com/Emurgo/Emurgo-Research/blob/master/oracles/Oracle-Pools.md)). Currently, the price of cardano-assets like ADA, NFTs, e.t.c. is mostly dictated by off-chain markets (mostly centralized exchanges).

Until we have price/liquidity data being posted on chain, there will not be a way to derive asset prices purely from on-chain data. That being said, analyzing the inputs and outputs of transactions on chain may give you insight into the nature of a transaction that you can use to infer what kind of value transfer is going on.


---

