Skip to main content

Crate metaflux

Crate metaflux 

Source
Expand description

metaflux — a short alias for the metaflux-client SDK.

This crate re-exports the entire public API of metaflux-client. Depend on metaflux and use it exactly as you would metaflux_client:

use metaflux::types::MarketId;
assert_eq!(MarketId(1).0, 1);

See the metaflux-client crate for full documentation.

Modules§

error
Crate-wide error type.
faucet
Devnet / testnet faucet helper.
mip3
MIP-3 builder kit — typed deploy params, gas-auction helpers, presets.
rest
REST client — /info, /exchange, /explorer MTF-native endpoints.
types
Domain types shared by all transports.
wallet
Wallet — secp256k1 keypair management + EIP-712 signing.
ws
WebSocket client — MTF-native subscriptions with reconnect-with-backoff.

Structs§

Client
Top-level convenience bundle.
FaucetResponse
Successful faucet response (200).
MarketId
Market identifier.
OrderId
Server-assigned order identifier.
RestClient
REST client. Cheap to clone (uses an Arc internally via reqwest::Client).
VaultId
User-vault identifier.
Wallet
An owning secp256k1 wallet.

Enums§

ClientError
The single error type returned by every fallible operation in this SDK.

Functions§

request_faucet
Request test USDC from a devnet / testnet faucet.