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

Support batching multiple RPC requests #443

Closed
DelevoXDG opened this issue Mar 18, 2024 · 0 comments · Fixed by #455
Closed

Support batching multiple RPC requests #443

DelevoXDG opened this issue Mar 18, 2024 · 0 comments · Fixed by #455
Assignees
Labels
enhancement New feature or request priority: low

Comments

@DelevoXDG
Copy link
Collaborator

Feature Request

Allow batching multiple RPC calls within the same request.
The nodes are accepting the array of RPC calls and they execute them all in parallel.

from tg:

Here is an example on goerli calling balanceOf (for 2 accounts) on the DAI token contract

[
 {
 "jsonrpc": "2.0",
 "id": "1",
 "method": "starknet_call",
 "params": [
  {
   "contract_address": "0x123",
   "entry_point_selector": "0x456",
   "calldata": [
    "0x1"
   ]
  },
   "pending"
  ]
 },
 {
  "jsonrpc": "2.0",
  "id": "2",
  "method": "starknet_call",
  "params": [
   {
    "contract_address": "0x123",
    "entry_point_selector": "0x456",
    "calldata": [
     "0x2"
    ]
   },
   "pending"
  ]
 }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: low
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants