Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction execution resources are missing #92

Open
fracek opened this issue May 9, 2023 · 0 comments
Open

Transaction execution resources are missing #92

fracek opened this issue May 9, 2023 · 0 comments

Comments

@fracek
Copy link

fracek commented May 9, 2023

One big difference between the Sequencer Gateway API and the JSON-RPC API is that in the latter transaction receipts don't include information about execution resources.

For example:

curl 'https://alpha-mainnet.starknet.io/feeder_gateway/get_block?blockNumber=latest' | jq '.transaction_receipts | map(.execution_resources)'

Returns

[
  {
    "n_steps": 755,
    "builtin_instance_counter": {
      "pedersen_builtin": 6,
      "range_check_builtin": 24
    },
    "n_memory_holes": 45
  },
  {
    "n_steps": 5083,
    "builtin_instance_counter": {
      "pedersen_builtin": 21,
      "range_check_builtin": 244
    },
    "n_memory_holes": 224
  },
  {
    "n_steps": 11418,
    "builtin_instance_counter": {
      "pedersen_builtin": 40,
      "range_check_builtin": 855,
      "bitwise_builtin": 3
    },
    "n_memory_holes": 277
  },
  ...
]

It would be nice if starknet_getTransactionReceipt included this information as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant