Skip to content

Commit 23b254f

Browse files
stolabwackerow
andauthored
Update public/content/developers/docs/transactions/index.md
Co-authored-by: Paul Wackerow <[email protected]>
1 parent 671688d commit 23b254f

File tree

1 file changed

+1
-1
lines changed
  • public/content/developers/docs/transactions

1 file changed

+1
-1
lines changed

public/content/developers/docs/transactions/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Any gas not used in a transaction is refunded to the user account.
170170

171171
Gas is required for any transaction that involves a smart contract.
172172

173-
Therefore, calling a [`view`](https://docs.soliditylang.org/en/latest/contracts.html#view-functions) or [`pure`](https://docs.soliditylang.org/en/latest/contracts.html#pure-functions) function from an EOA will not require any gas. The underlying RPC call for this scenario is [`eth_call`](/developers/docs/apis/json-rpc#eth_call)
173+
Smart contracts can also contain functions known as [`view`](https://docs.soliditylang.org/en/latest/contracts.html#view-functions) or [`pure`](https://docs.soliditylang.org/en/latest/contracts.html#pure-functions) functions, which do not alter the state of the contract. As such, calling these functions from an EOA will not require any gas. The underlying RPC call for this scenario is [`eth_call`](/developers/docs/apis/json-rpc#eth_call)
174174

175175
However calling a `view` or `pure` function internally (ie: from the contract itself or from another contract) will cost gas.
176176

0 commit comments

Comments
 (0)