Expand description
Async Rust client for ERPC JSON-RPC, subscriptions, price, account, usage, and Cloud APIs.
Re-exports§
pub use dex_catalog::DEX_ALIASES;pub use dex_catalog::DEX_CATALOG_AS_OF_DATE;pub use dex_catalog::DEX_CATALOG_CONTENT_DIGEST;pub use dex_catalog::DEX_CATALOG_VERSION;pub use dex_catalog::DEX_CHAIN_IDS;pub use dex_catalog::DEX_DEPLOYMENTS;pub use dex_catalog::DexAlias;pub use dex_catalog::DexChainId;pub use dex_catalog::DexDeployment;pub use dex_catalog::ListPoolDefinitionsOptions;pub use dex_catalog::NATIVE_WRAP_DEFINITIONS;pub use dex_catalog::NativeWrapDefinition;pub use dex_catalog::POOL_DEFINITIONS;pub use dex_catalog::PoolAdapter;pub use dex_catalog::PoolDefinition;pub use dex_catalog::dexes;pub use dex_catalog::find_pool_definition_by_address;pub use dex_catalog::find_pool_definitions_by_pair;pub use dex_catalog::get_dex_deployment;pub use dex_catalog::get_native_wrap_definition;pub use dex_catalog::get_pool_definition;pub use dex_catalog::list_pool_definitions;pub use dex_catalog::pools;pub use token_catalog::TOKEN_ALIASES;pub use token_catalog::TOKEN_ASSETS;pub use token_catalog::TOKEN_CATALOG_AS_OF_DATE;pub use token_catalog::TOKEN_CATALOG_CONTENT_DIGEST;pub use token_catalog::TOKEN_CATALOG_VERSION;pub use token_catalog::TOKEN_CHAIN_IDS;pub use token_catalog::TOKEN_DEPLOYMENTS;pub use token_catalog::TokenAlias;pub use token_catalog::TokenAsset;pub use token_catalog::TokenChainId;pub use token_catalog::TokenDeployment;pub use token_catalog::TokenRepresentationKind;pub use token_catalog::TokenStandard;pub use token_catalog::TokenStatus;pub use token_catalog::find_token_deployment_by_address;pub use token_catalog::find_token_deployments_by_symbol;pub use token_catalog::get_native_token_deployment;pub use token_catalog::get_token_asset;pub use token_catalog::get_token_deployment;pub use token_catalog::list_token_deployments;pub use token_catalog::token_chain_ids;pub use token_catalog::tokens;pub use token_rankings::TOKEN_RANKINGS;pub use token_rankings::TOKEN_RANKINGS_AS_OF;pub use token_rankings::TOKEN_RANKINGS_CONTENT_DIGEST;pub use token_rankings::TOKEN_RANKINGS_COVERAGE;pub use token_rankings::TOKEN_RANKINGS_METADATA;pub use token_rankings::TOKEN_RANKINGS_METRIC;pub use token_rankings::TOKEN_RANKINGS_SCHEMA_VERSION;pub use token_rankings::TOKEN_RANKINGS_SOURCE_IDS;pub use token_rankings::TOKEN_RANKINGS_STATUS;pub use token_rankings::TokenRanking;pub use token_rankings::TokenRankingCoverage;pub use token_rankings::TokenRankingMetadata;pub use token_rankings::list_token_rankings;
Modules§
- dex_
catalog - Offline DEX deployment, pool, alias, and native-wrap lookups.
- token_
catalog - Offline token and deployment catalog lookups.
- token_
rankings - Offline token ranking snapshot lookups.
Structs§
- Account
Client - Account and token-balance API.
- Address
Transaction - One indexed address transaction.
- Address
Transaction Page - Paginated indexed address transactions.
- Address
Transactions Options - Options for indexed address transactions.
- Address
Transfer - One indexed address transfer.
- Address
Transfer Filters - Numeric filters for indexed transfers.
- Address
Transfer Page - Paginated indexed address transfers.
- Address
Transfers Options - Options for indexed address transfers.
- Arbitrum
Client - Arbitrum One read-only service client.
- Arbitrum
RpcClient - Arbitrum One read-only JSON-RPC namespace.
- ArcClient
- Arc read-only service client.
- ArcRpc
Client - Arc read-only JSON-RPC namespace.
- Asset
Batch Request - Named request for a batch of indexed assets or proofs.
- Asset
List Request - Shared indexed-asset pagination request.
- Asset
Request - Named request for one indexed asset or proof.
- Avalanche
Avax Client - AvalancheAvaxClient JSON-RPC namespace.
- Avalanche
Client - Avalanche C-Chain and native-chain RPC namespaces.
- Avalanche
Index Client - Explicit chain/container routes exposed by the Avalanche Index API.
- Avalanche
Index RpcClient - AvalancheIndexRpcClient JSON-RPC namespace.
- Avalanche
Info Client - AvalancheInfoClient JSON-RPC namespace.
- AvalancheP
Chain Client - AvalanchePChainClient JSON-RPC namespace.
- Avalanche
Proposer VmClient - AvalancheProposerVmClient JSON-RPC namespace.
- AvalancheX
Chain Client - AvalancheXChainClient JSON-RPC namespace.
- Base
Client - Base read-only service client.
- Base
RpcClient - Base read-only JSON-RPC namespace.
- Binary
Update - Binary price update payload.
- Bitcoin
Client - Bitcoin service client.
- Bitcoin
RpcClient - Bitcoin Core JSON-RPC namespace.
- Bridge
Error - Secret-free error returned by the standalone bridge client.
- BscClient
- BNB Smart Chain read-only service client.
- BscRpc
Client - BNB Smart Chain read-only JSON-RPC namespace.
- Cancellation
Token - A token which can be used to signal a cancellation request to one or more tasks.
- Cloud
Catalog Client - Public Cloud catalog API.
- Cloud
Credit - Point-in-time Cloud credit and burn-rate quote.
- Cloud
Credit Client - Cloud credit API.
- Cloud
Offering - One available Cloud offering.
- Cloud
Offering Billing - Hourly catalog billing quote.
- Cloud
Offering Compute - Compute section of an offering.
- Cloud
Offering Solana - Solana section of an offering.
- Cloud
Resource - Credential-free Cloud resource projection.
- Cloud
Resource Status - Cloud resource status response.
- Cloud
Resource Status Billing - Billing state attached to a resource status response.
- Cloud
Resources Client - Cloud resource inventory and status API.
- Epoch
Summary - Epoch analytics summary.
- Erpc
Client - A configured ERPC client containing all public service clients.
- Erpc
Client Config - Configuration used to create an
crate::ErpcClient. - Erpc
Cloud Client - Authenticated Cloud catalog, credit, resources, and usage APIs.
- Erpc
Cloud Client Config - Configuration for an authenticated ERPC Cloud client.
- Ethereum
Client - Standard Ethereum JSON-RPC and subscriptions.
- Ethereum
RpcClient - Standard Ethereum JSON-RPC namespace.
- Ethereum
Subscriptions - Ethereum subscription client.
- EvmBlock
Snapshot - EVM block snapshot included in an exact-input quote.
- EvmUnsigned
Transaction - Chain-bound unsigned EVM transaction envelope.
- Exact
Input Quote Request - Exact-input quote request with the six contract fields.
- Exact
Input Quote Result - Exact-input quote result.
- Exact
Input Swap Preparation - Unsigned ERC20-to-ERC20 router preparation.
- Exact
Input Swap Simulation - Result of a simulated prepared swap.
- Http
Json RpcTransport - Credential-safe HTTP JSON-RPC transport.
- Http
Transport Config - Configuration for the HTTP JSON-RPC transport.
- Hyperliquid
Client - Hyperliquid
HyperEVMmainnet read-only JSON-RPC service client. - Hyperliquid
RpcClient - Hyperliquid
HyperEVMmainnet read-only JSON-RPC namespace. - Indexed
Asset List - Paginated indexed-asset list.
- Json
RpcError Object - Wire representation of a JSON-RPC error object.
- Kaia
Client - Kaia Mainnet read-only service client.
- Kaia
RpcClient - Kaia Mainnet read-only JSON-RPC namespace.
- Leader
Slot - Scheduled leader and public network metadata.
- Leader
Slots Result - Leader slot response envelope.
- Mayan
EvmUnsigned Transaction - Unsigned EVM transaction returned by Mayan’s builder.
- Mayan
Solana Unsigned Transaction - Unsigned Solana v0 transaction returned by Mayan’s builder.
- Mayan
Swift V2Allowance - ERC20 allowance requirement for an Ethereum-source build.
- Mayan
Swift V2Bridge Client - Standalone optional Mayan Swift v2 bridge client.
- Mayan
Swift V2Bridge Config - Configuration for
MayanSwiftV2BridgeClient. - Mayan
Swift V2Build - Unsigned provider build result.
- Mayan
Swift V2Build Request - Build request containing a previously returned quote.
- Mayan
Swift V2Build Validation - Structural validation disclosure for a provider build.
- Mayan
Swift V2Local Build - Locally constructed unsigned build.
- Mayan
Swift V2Local Build Config - Configuration for local Mayan source-swap preparation and unsigned builds.
- Mayan
Swift V2Local Build Request - Local build request containing a previously prepared plan.
- Mayan
Swift V2Local Build Validation - Local build validation disclosure.
- Mayan
Swift V2Local Construction - Local construction metadata.
- Mayan
Swift V2Local Context - Local source-swap preparation context.
- Mayan
Swift V2Local EvmRpc Evidence - EVM source RPC evidence.
- Mayan
Swift V2Local Solana RpcEvidence - Solana source RPC evidence.
- Mayan
Swift V2Local Solana RpcLookup Table Evidence - Solana lookup-table evidence.
- Mayan
Swift V2Local Source Swap Instruction - A validated source-swap instruction.
- Mayan
Swift V2Local Source Swap Instruction Account - Account metadata in a source-swap instruction.
- Mayan
Swift V2Quote - Normalized provider-signed Mayan Swift v2 quote.
- Mayan
Swift V2Quote Request - Exact native EURC or USDC bridge quote request.
- Mayan
Swift V2Source Swap - Provider-selected intermediate source swap.
- Mayan
Swift V2Source Swap Plan - Prepared local source-swap plan.
- Mayan
Swift V2Status - Read-only indexed explorer status.
- Mayan
Swift V2Status Request - Explorer status request.
- Monad
Client - Monad mainnet read-only service client.
- Monad
RpcClient - Monad mainnet read-only JSON-RPC namespace.
- Monthly
ApiKey Chain Usage - Monthly usage aggregated by chain.
- Monthly
ApiKey Method Usage - Usage for one method within a chain.
- Monthly
ApiKey Usage - Monthly API key usage response.
- Monthly
ApiKey Usage Entry - Credential-safe usage for one API key.
- Monthly
ApiKey Usage Params - Parameters for monthly usage retrieval.
- Near
Account View - Typed account state returned by the fixed NEAR
view_accountquery. - Near
Block Header - Stable fields from a NEAR block header.
- Near
Block View - A typed NEAR block response with a guarded chunk collection.
- Near
Client - NEAR service client.
- Near
Node Version - NEAR node software version.
- Near
RpcClient - Read-only NEAR JSON-RPC namespace.
- Near
Status - NEAR node status.
- Near
Sync Info - NEAR node synchronization information.
- Numeric
Filter - Numeric range filter for indexed history.
- Optimism
Client - OP Mainnet read-only service client.
- Optimism
RpcClient - OP Mainnet read-only JSON-RPC namespace.
- Parsed
Price Metadata - Optional timing and slot metadata.
- Parsed
Price Update - Parsed update for one feed.
- Parsed
Publisher Stake Caps - Parsed publisher stake cap envelope.
- Pending
RpcBatch Request - An inert batch request that preserves one caller batch on the wire.
- Pending
RpcRequest - An inert typed request. Network I/O begins only when
sendis awaited. - Pending
SuiGrpc WebRequest - An inert, typed Sui gRPC-Web request.
- Ping
Measurement - One network measurement to a scheduled leader.
- Polygon
Client - Polygon
PoSmainnet read-only service client. - Polygon
RpcClient - Polygon
PoSmainnet read-only JSON-RPC namespace. - Prepare
Exact Input Swap Request - Request for unsigned ERC20-to-ERC20 preparation or RPC simulation.
- Price
Client - Price metadata, updates, publisher caps, and streaming API.
- Price
Feed Metadata - Price feed identifier and optional attributes.
- Price
Point - One published price point.
- Price
Stream Event - Parsed server-sent event from the price stream.
- Price
Stream Options - Options for the server-sent-events price stream.
- Price
Update Options - Options shared by latest, historical, and streaming price updates.
- Price
Update Response - Latest or historical price updates.
- Priority
FeeEstimate - Priority fee estimate with forward-compatible additional fields.
- Program
Stats Bucket - One program statistics time bucket.
- Program
Stats Options - Program statistics options.
- Publisher
Stake Cap - One publisher and its stake cap.
- Publisher
Stake Caps Response - Latest publisher stake caps.
- Quote
Fee - Fee fraction included in an exact-input quote.
- Request
Options - Per-request cancellation options.
- Robinhood
Client - Robinhood Chain Public Mainnet read-only JSON-RPC service client.
- Robinhood
RpcClient - Robinhood Chain Public Mainnet read-only JSON-RPC namespace.
- RpcBatch
Call - One call in an unsplit JSON-RPC batch.
- RpcEndpoint
Config - Configuration for one caller-owned JSON-RPC endpoint.
- RpcNamespace
- Typed request builder over one JSON-RPC endpoint and parameter mode.
- RpcNotification
- One JSON-RPC notification received over WebSocket.
- RpcSubscription
- Active subscription with typed notification retrieval and idempotent unsubscribe.
- Slot
Stats Row - One slot statistics row.
- Solana
Analytics Client - SolanaAnalyticsClient JSON-RPC namespace.
- Solana
Client - Standard and extended Solana APIs.
- Solana
Context - Standard Solana response context.
- Solana
Context Result - Value wrapped with a Solana response context.
- Solana
DasClient - SolanaDasClient JSON-RPC namespace.
- Solana
History Client - SolanaHistoryClient JSON-RPC namespace.
- Solana
Leader Client - SolanaLeaderClient JSON-RPC namespace.
- Solana
RpcClient - Standard Solana JSON-RPC namespace.
- Solana
Subscriptions - Solana WebSocket subscription client.
- Soneium
Client - Soneium mainnet read-only service client.
- Soneium
RpcClient - Soneium mainnet read-only JSON-RPC namespace.
- SuiBalance
- Sui balance projection returned by
GetBalance. - SuiClient
- Public Sui namespace containing only the binary gRPC-Web client.
- SuiGrpc
WebClient - Read-only Sui gRPC-Web client.
- SuiGrpc
WebEndpoint Config - Configuration for one caller-owned binary Sui gRPC-Web endpoint.
- SuiObject
Summary - Sui object identity projection returned by
GetObject. - SuiService
Info - Sui service identity returned by
GetServiceInfo. - Swap
Allowance - Allowance requirement attached to a prepared swap.
- Swap
Client - Configured RPC-backed swap client.
- Swap
Freshness - Freshness limits for an exact-input quote. Omitted fields use SDK defaults.
- Swap
Path Entry - One ERC20 deployment and address in an execution path.
- Token
Balance - Current account token balance.
- TopProgram
Row - One top-program analytics row.
- TopPrograms
Options - Top-program analytics options.
- TpsBucket
- One TPS time bucket.
- TpsTimeseries
Options - TPS time-series options.
- Tron
Client - TRON Mainnet read-only JSON-RPC service client.
- Tron
RpcClient - TRON Mainnet read-only JSON-RPC namespace.
- Usage
Client - Monthly usage API.
- Validator
Information - Validator information and public network metadata.
- Validators
Information Options - Validator information query.
- Validators
Information Result - Validator information response envelope.
Enums§
- Address
Transfer Direction - Direction for an indexed transfer query.
- Address
Transfer Type - Indexed transfer operation.
- Analytics
Time Bound - Number or timestamp string accepted by analytics time bounds.
- Bridge
Error Code - Stable error codes for the optional bridge client.
- Cloud
Credit Alert Level - Credit alert level.
- Cloud
Offering Compute Tenancy - Compute metadata for an offering.
- Cloud
Offering Solana Transport - Solana transport offered by a catalog item.
- Cloud
Resource Billing Status - Resource billing state.
- Cloud
Resource Kind - Cloud resource kind.
- Cloud
Resource Mode - Cloud resource delivery mode.
- Erpc
Error - All errors produced by the SDK.
- Erpc
Error Code - Stable category for an SDK error.
- Erpc
Plan - ERPC account plan returned by the token balance API.
- Json
RpcId - JSON-RPC request or response identifier.
- Mayan
Swift V2Local Source RpcEvidence - Source RPC evidence for either source chain.
- Mayan
Swift V2Local Source Swap Plan - Direct source-swap plan variant.
- Mayan
Swift V2Unsigned Transaction - Unsigned provider transaction for either reviewed source chain.
- Near
Block Id - A height or opaque hash identifying a NEAR block.
- Near
Block Reference - One mutually exclusive selector for a NEAR block or account read.
- Near
Finality - A named NEAR block finality selector.
- Price
Asset Type - Asset category used to filter feed metadata.
- Price
Encoding - Binary encoding requested from the price API.
- Slot
Stats Options - Slot statistics query by one slot or inclusive range.
- Solana
Commitment - Solana commitment level.
- Solana
Encoding - Solana account or transaction encoding.
- Subscription
Id - JSON-RPC subscription identifier.
- Swap
Execution Error - Errors produced by unsigned EVM swap preparation and simulation.
- Swap
Execution Error Code - Fixed domain error codes for unsigned EVM swap preparation and simulation.
- Swap
Quote Error - Domain errors produced by quote validation, with upstream errors preserved.
- Swap
Quote Error Code - Fixed domain error codes for exact-input quote validation.
Constants§
- ARBITRUM_
RPC_ METHODS - Arbitrum One read-only JSON-RPC methods represented by this release.
- ARC_
RPC_ METHODS - Arc read-only JSON-RPC methods represented by this release.
- AVALANCHE_
AVAX_ METHODS - C-Chain AVAX API methods represented by this release.
- AVALANCHE_
INDEX_ METHODS - Index API methods represented by this release.
- AVALANCHE_
INFO_ METHODS - Node information API methods represented by this release.
- AVALANCHE_
PROPOSER_ VM_ METHODS - P-Chain proposer VM API methods represented by this release.
- AVALANCHE_
P_ CHAIN_ METHODS - P-Chain API methods represented by this release.
- AVALANCHE_
X_ CHAIN_ METHODS - X-Chain API methods represented by this release.
- BASE_
RPC_ METHODS - Base read-only JSON-RPC methods represented by this release.
- BITCOIN_
RPC_ METHODS - Bitcoin Core JSON-RPC methods represented by this release.
- BSC_
RPC_ METHODS - BNB Smart Chain read-only JSON-RPC methods represented by this release.
- DEFAULT_
ACCOUNT_ ENDPOINT - Default account endpoint.
- DEFAULT_
ARBITRUM_ ENDPOINT - Default Arbitrum One JSON-RPC endpoint.
- DEFAULT_
ARC_ ENDPOINT - Default Arc mainnet JSON-RPC endpoint.
- DEFAULT_
AVALANCHE_ ENDPOINT - Default Avalanche JSON-RPC endpoint.
- DEFAULT_
BASE_ ENDPOINT - Default Base JSON-RPC endpoint.
- DEFAULT_
BSC_ ENDPOINT - Default BNB Smart Chain mainnet JSON-RPC endpoint.
- DEFAULT_
ENDPOINT - Default JSON-RPC and price endpoint.
- DEFAULT_
HYPERLIQUID_ ENDPOINT - Default Hyperliquid
HyperEVMmainnet JSON-RPC endpoint. - DEFAULT_
KAIA_ ENDPOINT - Default Kaia mainnet JSON-RPC endpoint.
- DEFAULT_
MONAD_ ENDPOINT - Default Monad mainnet JSON-RPC endpoint.
- DEFAULT_
NEAR_ ENDPOINT - Default NEAR mainnet JSON-RPC endpoint.
- DEFAULT_
OPTIMISM_ ENDPOINT - Default OP Mainnet JSON-RPC endpoint.
- DEFAULT_
POLYGON_ ENDPOINT - Default Polygon
PoSmainnet JSON-RPC endpoint. - DEFAULT_
ROBINHOOD_ ENDPOINT - Default Robinhood Chain Public Mainnet JSON-RPC endpoint.
- DEFAULT_
SONEIUM_ ENDPOINT - Default Soneium mainnet JSON-RPC endpoint.
- DEFAULT_
SUI_ ENDPOINT - Default Sui mainnet binary gRPC-Web endpoint.
- DEFAULT_
TIMEOUT - Default request and connection-establishment timeout.
- DEFAULT_
TRON_ ENDPOINT - Default TRON mainnet JSON-RPC endpoint.
- DEFAULT_
USER_ ENDPOINT - Default user and Cloud endpoint.
- ETHEREUM_
RPC_ METHODS - Ethereum JSON-RPC methods represented by this release.
- ETHEREUM_
SUBSCRIPTION_ METHODS - Ethereum WebSocket subscription methods represented by this release.
- HYPERLIQUID_
RPC_ METHODS - Hyperliquid
HyperEVMmainnet read-only JSON-RPC methods represented by this release. - KAIA_
RPC_ METHODS - Kaia Mainnet read-only JSON-RPC methods represented by this release.
- MONAD_
RPC_ METHODS - Monad mainnet read-only JSON-RPC methods represented by this release.
- NEAR_
RPC_ METHODS - NEAR JSON-RPC methods represented by this release.
- OPTIMISM_
RPC_ METHODS - OP Mainnet read-only JSON-RPC methods represented by this release.
- POLYGON_
RPC_ METHODS - Polygon
PoSmainnet read-only JSON-RPC methods represented by this release. - ROBINHOOD_
RPC_ METHODS - Robinhood Chain Public Mainnet read-only JSON-RPC methods represented by this release.
- SOLANA_
ANALYTICS_ METHODS - Analytics RPC methods represented by this release.
- SOLANA_
DAS_ METHODS - Indexed asset RPC methods represented by this release.
- SOLANA_
ENHANCED_ SUBSCRIPTION_ METHODS - Solana enhanced WebSocket subscription methods.
- SOLANA_
HISTORY_ METHODS - Indexed address history RPC methods represented by this release.
- SOLANA_
LEADER_ METHODS - Leader information RPC methods represented by this release.
- SOLANA_
RPC_ METHODS - Standard Solana JSON-RPC methods represented by this release.
- SONEIUM_
RPC_ METHODS - Soneium mainnet read-only JSON-RPC methods represented by this release.
- SUI_
GRPC_ WEB_ CONTENT_ TYPE - Binary gRPC-Web content type required by the Sui endpoint.
- SUI_
GRPC_ WEB_ METHODS - Exact case-sensitive Sui unary method paths supported by this SDK.
- TRON_
RPC_ METHODS - TRON Mainnet read-only JSON-RPC methods represented by this release.
Functions§
- create_
mayan_ swift_ v2_ bridge_ client - Creates a standalone Mayan Swift v2 bridge client.
Type Aliases§
- Bridge
Client - Alias for the standalone bridge client.
- Bridge
Result - Result type used by the standalone Mayan bridge client.
- Exact
Input Swap Path Entry - Alias matching the full exact-input path entry name.
- Exact
Input Swap Request - Alias for callers that prefer a shorter execution request name.
- Indexed
Asset - Forward-compatible indexed asset object.
- Indexed
Asset Proof - Forward-compatible indexed asset proof object.
- Mayan
Swift V2Build Result - Alias for callers that use a result suffix.
- Mayan
Swift V2Build Unsigned Request - Alias for callers that include
unsignedin the method name. - Mayan
Swift V2Quote Result - Alias for callers that use a result suffix.
- Mayan
Swift V2Status Result - Alias for callers that use a result suffix.
- Prepare
Exact Input Swap Result - Alias for the preparation result.
- Price
Stream - Boxed asynchronous stream returned by
PriceClient::stream_price_updates. - Result
- Result type returned by this crate.
- Simulate
Exact Input Swap Result - Alias for the simulation result.
- Swap
Execution Result - Result type for unsigned swap preparation and simulation.
- Swap
Preparation - Alias for callers that use the generic preparation name.
- Swap
Quote Request - Alias for callers that prefer the swap-specific request name.
- Swap
Result - Result type for the public swap quote client.
- Swap
Simulation - Alias for callers that use the generic simulation name.