Docs

evmRawTx payload - EVM Transactions

Decode Hyperliquid `evmRawTx` payloads for EVM transactions, returned through Dwellir's read-only L1 gRPC API.

Read-only action reference

Dwellir's Hyperliquid gRPC API returns this decoded action payload through StreamBlocks and GetBlock. It does not submit or execute this action. Submit supported user write actions through Hyperliquid's native POST /exchange endpoint.

The decoded evmRawTx payload records a raw HyperEVM transaction included in Hyperliquid block data.

Sample Data

JSON
{
  "signature": {
    "r": "0xd32b8218ae5299c1421560f39d56e25ffa12ffbfa8faa38768a01850787a4ad3",
    "s": "0x4a6ec5bb2ab212e0851a800f6e9eff5de75fb5802662ffe59ff98c789c4c4de4",
    "v": 28
  },
  "action": {
    "type": "evmRawTx",
    "data": "0x02f8b58203e78304083a8482aef4ce8482aef4ce83032523948549fd7ffc092f8366e416e129a622ec060104ea80b844a1d6012700001b00000000000000000bf8172fda000000000046cf76b73b80500001000000000000000000000000000000000000000026f9d2b528a25fd5f2a6568f47a1c001a02a409cb47713ca174e802b23a762d9d7fec900f63443d66aba5b26ef942d016aa04e426c68c1664757c974f059c91877d4703f0447fa8e5830071e406eac8882c6"
  },
  "nonce": 1768146670768
}

View this transaction on Hypurrscan

Field Reference

Action Fields

FieldTypeDescription
typestringAlways "evmRawTx"
rawTxstringRLP-encoded raw EVM transaction

HyperEVM Overview

HyperEVM is Hyperliquid's EVM-compatible execution layer that allows:

  • Smart contract deployment and execution
  • ERC-20 token operations
  • DeFi protocol interactions
  • Bridge operations between L1 and EVM

Transaction Decoding

The rawTx field contains an RLP-encoded Ethereum transaction. Decoding it reveals:

  • to: Destination contract or address
  • value: ETH/native token amount
  • data: Contract call data (function selector + parameters)
  • gasLimit, gasPrice: Gas parameters
Python
from eth_account._utils.legacy_transactions import decode_transaction

def decode_evm_tx(raw_tx_hex):
    tx_bytes = bytes.fromhex(raw_tx_hex[2:])  # Remove 0x prefix
    decoded = decode_transaction(tx_bytes)
    return decoded

Use Cases

DeFi Activity Monitoring

Track smart contract interactions on HyperEVM:

Python
def process_evmRawTx_action(action):
    raw_tx = action.get('rawTx')
    # Decode and analyze the transaction
    print(f"EVM transaction: {raw_tx[:50]}...")

Bridge Transaction Tracking

Monitor cross-layer bridge operations between Hyperliquid L1 and HyperEVM.

Smart Contract Analytics

Analyze popular contract interactions and protocol usage patterns.