Skip to content

v3 transactions & RPC 0.10: old fee-based scripts fail (Missing gas_price / gas_consumed) #1693

@newtgh

Description

@newtgh

What happened

After Starknet upgrades (v3 transactions, RPC 0.9/0.10),
pre-v3 starknet-py scripts can no longer create transactions.

Transaction creation fails with:
"Missing data for required field: gas_price, gas_consumed"

The same script worked before the Starknet 0.13 / 0.14 upgrades.

Stack trace

Missing data for required field: gas_price, gas_consumed

Steps to reproduce

Context:

  • Script was written for pre-v3 StarkNet
  • Uses starknet-py to build and send account transactions
  • RPC 0.6/0.7 behavior is no longer available
  • Ask StarkNet confirmed that fee handling and tx format changed

Questions:

  1. Is this expected behavior for pre-v3 scripts?
  2. What is the correct current way to estimate fees and build tx v3 in starknet-py?
  3. Is there a minimal reference example for sending ETH with RPC 0.10?

I can provide a redacted minimal example if needed.

Thanks.

SDK Version

starknet-py 0.24.2, starknet-py==0.19.0, also tested 0.29.0

Python version

Python 3.10.11 (Windows)

What operating system are you using?

Windows

Is there an existing issue for this?

  • I have searched the existing issues and verified no issue exits for this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions