SwapResult class

The result of SwapApi.execute: a successfully broadcast swap.

Constructors

SwapResult({required String quoteId, required String provider, required String chain, required String hash, required String url, required SwapQuote quote})
const
SwapResult.fromJson(Map<String, dynamic> json)
factory

Properties

chain String
final
hash String
On-chain transaction signature (Solana) / transaction hash (EVM).
final
hashCode int
The hash code for this object.
no setterinherited
provider String
final
quote SwapQuote
A copy of the quote that was executed — convenient for the app to display "you swapped X for Y" without caching separately.
final
quoteId String
The quote ID that produced this result.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
Block-explorer URL for hash.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited