> For the complete documentation index, see [llms.txt](https://docs.nfprompt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nfprompt.io/getting-started/payment-composition.md).

# Payment Composition

Transaction Payment = ***Gas fee*** + ***Price***\
\
**Gas Fee:** Gas refers to the fee required to conduct transactions or execute contracts on the BNB network. It is compensation for validators that provide computing power used to process these interactions. The gas fee is the fee you need to pay for any on-chain transaction. A gas fee is a blockchain transaction fee paid to network validators for their services to blockchain. Without the fees, there would be no incentive for anyone to stake their money and help secure the network.\
\
**Price:** The amount of money you pay on a platform in order to get something done.\
\
Example 1: NFP has launched a lottery with a scenario that every payment of 1BNB can get a chance to win a jackpot prize. Because it is an on-chain lottery draw, the action of the agreeing to pay 1BNB is an on-chain transaction. You need to pay a certain gas fee denoted in BNB (usually 3 gwei or 3x10^-9 of a BNB), and at the same time pay 1 BNB (price for a lottery ticket) to conduct a lottery draw.\
\
Example 2: Alice wants to sell a painting on chain for 10 BNB (***Price***), Bob likes to buy it. Bob needs to pay a certain gas fee (3 gwei) plus 10 BNB to buy the painting.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.nfprompt.io/getting-started/payment-composition.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
