PredictClient class
The one object an app constructs. Wraps the config, a client for reads,
and a derived-account model so callers pass owner addresses, decimal
amounts, and human market coordinates — the facade converts to raw units,
resolves markets (cached), and delegates to the internal tx primitives /
reads. Each tx.* builder returns a finished Transaction; callers
composing their own PTBs use the trade primitives and generated move-call
bindings this subpath exports.
Constructors
- PredictClient({required String network, required GrpcCoreClient client, PredictConfig? config})
-
networkis'testnet'or'mainnet';configoverrides the recorded deployment (for a custom deployment).
Properties
- cfg → PredictConfig
-
final
- decode ↔ PredictDecoders
-
Namespaced execution-result decoders (
client.decode.mint(result)).latefinal - hashCode → int
-
The hash code for this object.
no setterinherited
- read ↔ PredictReads
-
Namespaced reads (
client.read.markets()).latefinal - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tx ↔ PredictTxBuilders
-
Namespaced tx builders (
client.tx.mint(...)), mirroring the officialclient.predict.tx.*facade.latefinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → Side -
A string representation of this object.
inherited
-
wrapperIdFor(
String owner) → String - The deterministic id of an owner's canonical account wrapper — no chain read.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited