gas Consumption Figures - Second-Earth/setchain GitHub Wiki

GAS consumption

The amount of gas consumed to execute ordinary transactions or contract transactions.

| gas name | gas | usage scenarios | | ------------------------- | -------- | -------------- --------------------------------------- | | ActionGas | 100000 | Basic transaction gas | | ActionGasCallContract | 200000 | Call contract base gas | | ActionGasCreation | 500000 | Create account and create contract Basic transaction gas | | ActionGasIssueAsset | 10000000 | Issuing assets, trading basis gas | | TxDataNonZeroGas | 68 | Transaction payload/remark non-zero byte gas | | TxDataZeroGas | 4 | Every byte gas where transaction payload/remark is 0 | | SignGas | 50000 | If there are more than one transaction signatures, each additional signature will cost gas | | | | | | gt.SetOwner | 200 | gas used to execute setowner | | gt.WithdrawFee | 700 | gas used to execute WithdrawFee | | gt.GetAccountTime | 200 | gas used to execute GetAccountTime | | gt.GetSnapshotTime | 200 | gas used to execute GetSnapshotTime | | gt.GetAssetInfo | 200 | gas used to execute GetAssetInfo | | gt.SnapBalance | 200 | gas used to execute SnapBalance | | gt.IssueAsset | 10000000 | gas used to execute IssueAsset | | gt.DestroyAsset | 200 | gas used to execute DestroyAsset | | gt.AddAsset | 200 | gas used to execute AddAsset | | gt.GetAccountID | 200 | gas used to execute GetAccountID | | gt.GetAssetID | 200 | gas used to execute GetAssetID | | gt.CryptoCalc | 20000 | gas used to execute CryptoCalc | | gt.CryptoByte | 1000 | gas used to execute CryptoByte | | gt.DeductGas | 200 | gas used to execute DeductGas | | gt.GetEpoch | 200 | gas used to execute GetEpoch | | gt.GetCandidateNum | 200 | gas used to execute GetCandidateNum | | gt.Candidate | 200 | gas used to execute Candidate | | gt.VoterStake | 200 | gas used to execute VoterStake | | | | | | gt.ExtcodeSize | 700 | gas used to execute ExtCodeSize | | gt.ExtcodeCopy | 700 | gas used to execute ExtCodeCopy | | gt.Balance | 400 | gas used to execute balance and balanceex | | gt.SLoad | 200 | gas used to execute SLoad | | gt.Calls | 700 | gas used to execute Calls | | gt.ExpByte | 50 | gas used to execute ExpByte | | gt.CallValueTransferGas | 9000 | gas used to execute Calls with Transfer | | gt.SstoreSetGas | 20000 | gas for the first storage of the execution of Sstore | | gt.SstoreResetGas | 5000 | gas for executing Sstore to restore storage | | gt.JumpdestGas | 1 | gas used to execute JumpDest | | gt.CreateDataGas | 200 | create data gas per byte |gt.CopyGas| 3 |gas/word consumed by copy | | gt.LogGas| 375 | Log basicgas| |gt.LogTopicGas| 375 | Log Topic each consumedgas| |gt.LogDataGas| 8 | Log datagasper byte | |gt.CreateGas| 32000 |gasused to executeCreate| |gt.MemoryGas| 3 |gas/word consumed by memory | | gt.Sha3Gas| 30 | ExecuteSha3basicgas| |gt.Sha3WordGas| 6 |gas/word used to execute Sha3` | | | | |

⚠️ **GitHub.com Fallback** ⚠️