On this page
Build with familiar tools and explicit interfaces.

Choose an interface

The canonical gateway origin is https://api-mainnet-beta.paxeer.network. Use the gateway px_ JSON-RPC methods for account, balance, asset, history and consensus reads, the EVM relay for chain transactions, and the Agent API for preparation, policy and tracking. EVM chain ID 125 identifies the EVM environment. Fetch GET /rpc/schema for the gateway's OpenRPC document (LayerX public JSON-RPC, version 0.1.0), which is the method contract for the table below.

SurfaceTransportPurpose
Gateway RPCPOST /rpcSeventeen px_ / pax_sequencerReceipt methods: accounts, balances, assets, history, registration, funding and consensus reads.
EVM relayPOST /rpceth_, net_ and web3_ methods relayed to the chain node, including eth_sendRawTransaction. See EVM JSON-RPC.
Agent APIContract major 2, minor 0Scoped identities, disclosures, approvals, budgets and event streams.

The former lx_ native RPC namespace is switched off. Every lx_* method — including lx_getNodeInfo, lx_getAccount, lx_sendActivity and the lx_subscribe / lx_unsubscribe / lx_subscription WebSocket methods — returns -32601 Method not found. There is no gateway equivalent of lx_sendActivity, lx_estimateFee, lx_getProof or lx_getCheckpoint in the current catalogue; use the Agent API write pipeline for governed submission and the EVM relay for raw transactions.

Paxeer X authentication card with a key and a verified shield

Authentication and signing

Public gateway reads do not require a gateway key. State-changing JSON-RPC uses Authorization: LayerX-Key <key-id>:<key-secret> with activity:write. Hosted identity sessions use Authorization: Bearer <session-token>. The gateway credential admits an operation; a cryptographic activity signature authorizes the exact protocol action. Use scoped identities and credentials and budget controls.

Query gateway state

POST /rpc
Content-Type: application/json

{"jsonrpc":"2.0","id":1,"method":"px_getNetwork","params":[]}

Parameters are positional, in the order listed. The router recognises exactly the following seventeen methods; any other method returns -32601. Batches may mix px_ and relayed EVM calls.

MethodParametersPurpose
px_getNetworknoneNetwork handshake and heads for the unified endpoint.
px_getAccountaccountAuthenticated account object for one account.
px_resolveAccountaccountResolve an account reference to its account record.
px_getBalancesaccountBalances held by one account, read through the bank precompile.
px_listAssetsnoneNative asset list.
px_registersigner_public_key, registration_signatureSelf-registered identity principal.
px_requestFundsdid, signer_public_keyOne bounded testnet funding request, authenticated by identity session.
pax_sequencerReceipttxHashThe node's sequencer receipt and commitment rung, relayed unchanged.
px_getCommit, px_getValidators, px_getSequenceBatchheightSigned commit, validator set and sequence batch at one block height.
px_getReceiptKeysnonePublished receipt signing keys for local receipt verification.
px_getHistory, px_getUnifiedHistoryaccount, optional cursor, limit, kindPaged account history from the indexer read API; the unified variant tags the side each record answers for.
px_listHolderRecordsaddress, kind, optional cursor, limitPaged holder records of one kind for one address.
px_getCapabilitiesnoneWhich product surfaces are currently available on this endpoint.
px_getRouteCataloguenoneAuthenticated product route catalogue and dependency readiness.

Node-side signing methods (eth_accounts, eth_coinbase, eth_sendTransaction, eth_sign, eth_signTransaction, eth_signTypedData, eth_signTypedData_v4, eth_mining) and eth_subscribe / eth_unsubscribe are refused at the gateway rather than relayed. A raw transaction addressed to a precompile surface that px_getCapabilities reports false is refused with -32003 surface_unavailable; check capabilities before submitting.

Submit through the Agent API

The gateway exposes no native activity-submission RPC. Governed writes go through the Agent API pipeline (prepare, sign, submit, track, wait) or the EVM relay as a signed raw transaction. The steps are:

  1. Verify the network with px_getNetwork and read the current account state.
  2. Prepare canonical activity bytes with an actor, authority, time bounds, fee limit, payload and stable idempotency key.
  3. Inspect the decoded disclosure and sign the exact signing preimage.
  4. Submit and retain the submission reference, transaction hash and receipt.
  5. Verify the evidence — receipt signature against px_getReceiptKeys, then commit and validator set at the landing height — before releasing goods, funds or dependent work.

Idempotency and uncertain outcomes

A timeout does not establish rejection. Reconcile the existing submission and reuse its idempotency key rather than creating a second payment. Agent mutations return the same result for the same body and key; a changed body under the same key returns IdempotencyConflict.

Follow activity

There is no gateway subscription RPC: the lx_ subscription methods answer method-not-found on WebSocket connections as well as HTTPS. Poll px_getHistory or px_getUnifiedHistory with a retained cursor for account activity, follow EVM heads and logs on the chain WebSocket endpoints, and use agent subscriptions for durable, acknowledged tenant-scoped streams.

Agent event streams

Agent subscriptions support create, list, health, acknowledge, pause, resume and delete. Their persisted cursor enables recovery. Scope evaluates tenant, capability, then filters for agents, accounts, activity types, modules, assets, counterparties and result classes. Delivery is at least once: deduplicate by deduplication_id and handle Event, Gap and Truncated variants.

Agent API pipeline

The wire envelope contains contract major and minor as big-endian u16, request ID as big-endian u64, operation as UTF-8 and a canonical-map payload. Amounts, sequences, limits and timestamps are decimal strings. Settlement domain is Paxeer.

OperationInputs and outcome
prepareActor, authority, account sequence, timestamp bound, idempotency key, fee limit, payload and payload hash produce unsigned canonical bytes, signing preimage, disclosure, preparation reference and expiry.
sign, submitPreparation reference and signature bind the signed activity and tracked submission.
trackSubmission reference returns state, evidence, rung and transitions.
waitSubmission reference, requested rung and deadline return the actual rung and whether the deadline elapsed.
Readsread.balance, read.account, read.module_state, read.history, read.batch, read.checkpoint, read.proof_bundle.
Availability and projectionavailability.fetch, export.offline, project. Projection is an estimate rather than a verified read.

Submission progresses through Prepared, Signed, Queued, Submitted, Unknown, Executed, Committed, Failed and Expired. Unknown is a first-class pending state. On the wire, progress is reported as one of three rungs — submitted, receipted and committed — and a requested rung above the achieved rung is refused rather than downgraded. Finer internal verification ranks are not part of the Agent API vocabulary.

Errors and retries

CodeMeaningAction
-32600Invalid request envelope.Correct the JSON-RPC framing.
-32601Method not found, including every switched-off lx_* method.Use the published px_ catalogue or the EVM relay.
-32003surface_unavailable: a raw transaction targets a precompile surface reported false by px_getCapabilities.Check capabilities; do not resubmit to a disabled surface.

Agent errors distinguish TransportFailure, Deadline, ProtocolIncompatibility, UnavailableCapability, CoreRejection, VerificationFailure, PolicyRefusal, CapabilityRefusal, BudgetRefusal, RateLimit, IdempotencyConflict and InternalFault. Resolve authority and verification failures before retrying.

Continue with CLI workflows, SDK integration and EVM JSON-RPC.

Paxeer X · System documentationBack to top ↑

Ask Paxeer X Docs

Answers from the documentation.

What would you like to know?

Ask a question, find a guide, or get help with your next step.

Enter to send · Shift+Enter for a new line