Paxeer-X-Network / rpc
AGENTS.md575 starsChanged 3 months agoApache-2.0View on GitHub
EVM RPCs prefixed by eth_ and debug_ on Pax generally follows Ethereum's spec. However, there are some notable distinctions. The pax2 namespace exposes the same block JSON-RPC shape as pax blocks, with bank transfers included in block payloads (HTTP only). There are seven pax2_* methods (block + block receipts + tx counts + *ExcludeTraceFail variants); there is no pax2 transaction or filter API. Legacy pax_* and pax2_* JSON-RPC (EVM HTTP only) are gated by the same [evm].enabled_legacy_pax_apis list in app.toml…
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- benchmark/AGENTS.mdAGENTS.md
- consensus/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/spec-workflow.mdcCursor rule
- codify-workflowSkill
The file
Files
EVM RPC SPECS
EVM RPCs live under rpc/ folder.
EVM RPCs prefixed by eth_ and debug_ on Pax generally follows Ethereum's spec. However, there are some notable distinctions.
- Pending - Pax has instant finality and thus has no concept of
pendingblocks. However, the RPCs still acceptpendingfor applicable parameters, and will treat it equivalent tofinal/safe/latest. - No Uncle - Pax does not have the concept of uncle blocks, so any endpoint relevant to uncle is not supported.
- No Trie - Pax does not store states in a trie, so any endpoint relevant to the trie data structure is not supported.
- No PoW - Pax has never used proof-of-work, so endpoints like
eth_miningandeth_hashrateare not supported. - No Blobs - Pax does not support EIP-4844 blob transactions.
eth_blobBaseFeereturns JSON-RPC error code-32000with messageblobs not supported on this chain. - Explicitly unsupported RPCs (same
-32000pattern) — Methods are registered so clients get a clear error instead of-32601method not found:debug_getRawBlock,debug_getRawHeader,debug_getRawReceipts,debug_getRawTransactioneth_newPendingTransactionFiltereth_syncing
pax_ and pax2_ prefixed endpoints
Several eth_ prefixed endpoints have a pax_ prefixed counterpart. eth_ endpoints only have visibility into EVM transactions, whereas pax_ endpoints have visibility into EVM transactions plus Cosmos transactions that have synthetic EVM receipts.
The pax2 namespace exposes the same block JSON-RPC shape as pax blocks, with bank transfers included in block payloads (HTTP only). There are seven pax2_* methods (block + block receipts + tx counts + *ExcludeTraceFail variants); there is no pax2 transaction or filter API.
Legacy pax_* and pax2_* JSON-RPC (EVM HTTP only) are gated by the same [evm].enabled_legacy_pax_apis list in app.toml (after deny_list). Enforcement is centralized in wrapPaxLegacyHTTP (see pax_legacy_http.go): it inspects the JSON-RPC method field only. Wired from HTTPServer.EnableRPC via HTTPConfig.PaxLegacyAllowlist — handlers do not duplicate gate logic. Both surfaces are deprecated and scheduled for removal; only methods named in that array are allowed. paxd init / DefaultConfig pre-fill the three pax_* address/Cosmos helpers; other gated methods (including pax2_*) appear commented in the generated template. Docker localnet (docker/localnode/config/app.toml) enables all gated methods except pax_sign. HTTP 200 for all responses. Disabled methods return JSON-RPC error code -32601, message explains not enabled + deprecated, data "legacy_pax_deprecated". Allowed single-object bodies pass through unchanged; JSON batches may be subset-forwarded with responses merged by id (for requests that include id). Per JSON-RPC 2.0, notifications (no id in the request) do not produce entries in the batch response array, so the merged array is not 1:1 with the request batch when notifications are present; if nothing would be returned, the gateway sends an empty HTTP body (not []). Optional deprecation signal: HTTP header Pax-Legacy-RPC-Deprecation (PaxLegacyDeprecationHTTPHeader in pax_legacy.go). Coverage: rpc/pax_legacy_test.go and integration_test/evm_module/rpc_io_test/testdata/pax_legacy_deprecation/*.iox.
debug_ prefixed endpoints
debug_trace* endpoints should faithfully replay historical execution. If a transaction encountered an error during its actual execution, a debug_trace* call for it should reflect so. If a transction consumed X amount of gas during its actual execution, a debug_trace* call should show that exact amount as well.
Consistency
RPC responses for historical heights should never change as the blockchain progresses, or as the blockchain code gets upgraded.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

