Skip to main content

Transaction Gas Fees

Quick Start (TL;DR)

pocketd [...] --gas=auto --fees=1upokt

This auto-estimates gas and uses a simple fixed fee that should work for most common transactions.


Table of Contents


⚙️ Network Configuration

Pocket Network Suggested Validator Configuration (app.toml)

  • Minimum gas price: 0.000001upokt
  • Mempool max transactions: 100,000
  • RPC timeout: 60 seconds

📊 Examples

All examples use the send transaction with different fee configurations:

pocketd tx bank send [from] [to] 1000000upokt \
--gas=auto \
--fees=1upokt \
--network=main --grpc-insecure=false

Conservative Send (Higher Fee)

pocketd tx bank send [from] [to] 1000000upokt \
--gas=auto \
--fees=2upokt \
--network=main --grpc-insecure=false

Gas Price Method Send

pocketd tx bank send [from] [to] 1000000upokt \
--gas=auto \
--gas-prices=0.000001upokt \
--gas-adjustment=1.2 \
--network=main --grpc-insecure=false

Manual Gas Send

pocketd tx bank send [from] [to] 1000000upokt \
--gas=500000 \
--fees=1upokt \
--network=main --grpc-insecure=false

Cosmos SDK Introduction

POKT Network inherits all transaction fee mechanics from the Cosmos SDK. Learn more in their official docs.

Quick Cosmos SDK Introduction
  • Gas and fee calculation works exactly like other Cosmos chains
  • All standard Cosmos SDK CLI flags are supported
  • Fee estimation and validation follows Cosmos standards
  • Transaction structure and error handling is identical

The main difference is POKT's specific network configuration (minimum gas prices, mempool settings, etc.).

Transaction Fee Calculation

Formula: Total Fee = Gas Limit × Gas Price Network minimum gas price: 0.000001upokt (from app.toml)

ComponentDescriptionExample
Gas LimitMaximum gas units the transaction can use500000
Gas PriceCost per gas unit0.000001upokt
Total FeeFinal amount charged500000 × 0.000001 = 0.5upokt
ScenarioConfigurationUse Case
Standard (Recommended)--gas=auto --fees=1upoktMost transactions
Conservative--gas=auto --fees=2upoktCritical transactions
Gas Price Method--gas=auto --gas-prices=0.000001upokt --gas-adjustment=1.2When you want price-based fees
Failed Transaction Types

Common failure categories to monitor:

  • Insufficient gas: Gas limit too low
  • Insufficient fees: Below minimum gas price
  • Invalid sequence: Nonce/sequence number issues
  • Account errors: Insufficient balance, invalid account

CLI Flag Reference

pocketd CLI Installation

You can install the pocketd CLI tool from here.

Gas & Fee Flags

FlagPurposeExampleNotes
--gasSet gas limit or auto-estimate--gas=auto or --gas=500000Use auto for estimation
--gas-pricesPrice per gas unit--gas-prices=0.000001upoktMinimum: 0.000001upokt
--feesTotal fee amount (overrides gas-prices)--fees=1upoktDon't use with --gas-prices
--gas-adjustmentMultiplier for auto gas estimation--gas-adjustment=1.2Only with --gas=auto

Valid Combinations

Use ONE of these patterns:

  1. Auto gas + fixed fee (recommended):

    --gas=auto --fees=1upokt
  2. Auto gas + gas prices:

    --gas=auto --gas-prices=0.000001upokt --gas-adjustment=1.2
  3. Manual gas + gas prices:

    --gas=500000 --gas-prices=0.000001upokt
  4. Manual gas + fixed fee:

    --gas=500000 --fees=1upokt

Don't mix these:

--fees=1upokt --gas-prices=0.000001upokt  # Conflicting flags