---
# System prepended metadata

title: Updating Gas/Gwei Pricing

---

# Updating Gas/Gwei Pricing

[TOC]


## Overview

For Blocks
`baseFeePerGas`

For Transactions
`MaxPriorityFeePerGas`
`MaxFeePerGas`


## Go Ethereum
```go=
type   TransactionArgs   struct {

 From                   *common.Address   \`json:"from"\`
 To                     *common.Address   \`json:"to"\`
 Gas                    *hexutil.Uint64   \`json:"gas"\`
 GasPrice               *hexutil.Big      \`json:"gasPrice"\`
 MaxFeePerGas           *hexutil.Big      \`json:"maxFeePerGas"\`
 MaxPriorityFeePerGas   *hexutil.Big      \`json:"maxPriorityFeePerGas"\`
 Value                  *hexutil.Big      \`json:"value"\`
 Nonce                  *hexutil.Uint64   \`json:"nonce"\`

```




### Block

```graphql 
  export class Block {
    hash: Bytes
    parentHash: Bytes
    unclesHash: Bytes
    author: Address
    stateRoot: Bytes
    transactionsRoot: Bytes
    receiptsRoot: Bytes
    number: BigInt
    gasUsed: BigInt
    gasLimit: BigInt
    baseFeePerGas: BigInt | null
    timestamp: BigInt
    difficulty: BigInt
    totalDifficulty: BigInt
    size: BigInt | null
  }
 ```
 
 ### Transaction
 
 ```graphql
   export class Transaction {
    hash: Bytes
    index: BigInt
    from: Address
    to: Address | null
    value: BigInt
    gasLimit: BigInt
    gasPrice: BigInt
    input: Bytes
  }
 ```