Parex Network
Block ExplorerCommunityParex NetworkDAO
  • 🦝Parex Network Docs
  • Welcome
    • 🚩Quick Start
      • Parex Network in a nutshell
      • Connect to Mainnet and Testnet
      • Deploy and verify a contract
        • Deploy with Remix IDE
          • ERC-20 smart contract
        • Deploy with thirdweb
        • Verify with Parex Block Explorer
      • Run a Parex Chain Node
      • Become a Validator
        • Run a Validator node
        • Authorization of Other Validators
        • nametag for Validator
        • Validator slashing
        • Validator Locked
      • Parex Halving
  • How we Work
    • 📖Learn
      • About Parex Network
        • Tokenomics
        • Parex Networks Labs
      • Parex Bridge
        • How to bridge PRX PEP20 to BEP20
        • How to bridge PRX BEP20 to PEP20
      • Staking on Parex Chain
        • Locked Stake your PRX on dAPP
        • Unlocked Stake your PRX on dAPP
        • Staking Rewards
        • Staking PRX from your Ledger
      • Become a Validator
        • Run a Validator node
        • Authorization of Other Validators
        • nametag for Validator
        • Validator slashing
        • Validator Locked
      • Glossary
        • Blockchain
        • Consensus mechanisms
        • Governance
        • Validator
        • Staking
        • Wallet
        • PEP-20
        • Wrapped PRX (wPRX)
        • Dead Contract Wallet
      • Parex Halving
  • For Developers
    • 💻Develop
      • Basics
        • Use MetaMask
          • Install MetaMask
          • Link Parex Testnet to MetaMask
          • Link Parex Chain to MetaMask
        • Connect to Parex Chain
          • Connect using RPC
          • Run a Parex Chain Node
          • Use a hardware wallet
        • Block Explorer
        • Parex Testnet Faucets
          • Obtain testnet tokens
          • Obtain TPRX with Parex Testnet Faucet
        • Obtain wPRX or PRX
          • PRX to wPRX
          • wPRX to PRX
        • Deploy and verify a contract
          • Deploy with Remix IDE
            • ERC-20 smart contract
          • Deploy with thirdweb
          • Verify with Parex Block Explorer
        • Tips & Tricks
  • For Community
    • 🫂Community
  • information
    • 🗺️Roadmap
    • ♻️Doc updates
Powered by GitBook
On this page
  • How to get the current gas price
  • How to check why a transaction failed

Was this helpful?

  1. For Developers
  2. Develop
  3. Basics

Tips & Tricks

PreviousVerify with Parex Block ExplorerNextCommunity

Last updated 1 year ago

Was this helpful?

How to get the current gas price

To get the gas price on Parex Chain, you can use .

You can request the gas price like so:

curl --location 'https://mainnet-rpc.parex.network' 
--header 'Content-Type: application/json' 
--data '{ 
    "method": "eth_gasPrice", 
    "params": [], 
    "id": 1, 
    "jsonrpc": "2.0"
}'

How to check why a transaction failed

A transaction might fail, and you don't always know why, especially since the block explorer doesn't display the error.

To check why your transaction failed, run the following script in the terminal with the correct transaction ID:

curl --location 'https://mainnet-rpc.parex.network' \
--header 'Content-Type: application/json' \
--data '{
    "method": "debug_traceTransaction",
    "params": [
        "[Transaction ID]",
        {
            "tracer": "callTracer"
        }
    ],
    "id": 1,
    "jsonrpc": "2.0"
}'
💻
one of the public RPC nodes