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

feat: Add zks_getBatchPubdata endpoint #79

Open
wants to merge 11 commits into
base: feat_validium_pubdata_abstraction
Choose a base branch
from

Conversation

ilitteri
Copy link
Collaborator

@ilitteri ilitteri commented Jan 29, 2024

Resolves #72

Description

This PR adds an endpoint to the RPC that'll let a user like Validium's DA Manager get some batch's pubdata to store in some DA Layer.

How to test

  1. Run the hole stack (zk && zk clean --all && zk init)
  2. Run the following curl
curl http://localhost:3050  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"zks_getBatchPubdata","params":[1],"id":1,"jsonrpc":"2.0"}'

@ilitteri ilitteri self-assigned this Jan 29, 2024
@ilitteri ilitteri linked an issue Jan 29, 2024 that may be closed by this pull request
@ilitteri ilitteri changed the title feat: Add zks_getL1BatchPubdata endpoint feat: Add zks_getBatchPubdata endpoint Jan 30, 2024
@ilitteri ilitteri changed the base branch from validium_mode_new_fee_model_final to feat_validium_pubdata_abstraction January 30, 2024 19:19
Copy link

@jordibonet-lambdaclass jordibonet-lambdaclass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

…class/zksync-era into feat_get_batch_pubdata_endpoint
…class/zksync-era into feat_get_batch_pubdata_endpoint
…class/zksync-era into feat_get_batch_pubdata_endpoint
Oppen pushed a commit that referenced this pull request Feb 9, 2024
…class/zksync-era into feat_get_batch_pubdata_endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment