Result types define the return values from SDK operations, providing transaction details, explorer URLs, and operation metadata.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/availproject/nexus-sdk/llms.txt
Use this file to discover all available pages before exploring further.
Bridge results
BridgeResult
Returned bybridge() operations.
Explorer URL for the destination chain transaction
Array of source chain transactions
Detailed intent information. See ReadableIntent
TransferResult
Returned bybridgeAndTransfer() operations.
Transaction hash on destination chain
Block explorer URL for the transaction
BridgeMaxResult
Returned bycalculateMaxForBridge().
Maximum bridgeable amount in atomic units
Maximum bridgeable amount (human-readable)
Token symbol
Chain IDs with available balance
Execute results
ExecuteResult
Returned byexecute() and related operations.
Transaction hash of the executed contract call
Block explorer URL for the transaction
Chain ID where the transaction was executed
Transaction receipt (only if
waitForReceipt was true)Number of block confirmations received
Actual gas used by the transaction
Effective gas price paid
Transaction hash of token approval (if approval was needed)
BridgeAndExecuteResult
Returned bybridgeAndExecute() operations.
Transaction hash of the contract execution
Block explorer URL for the execute transaction
Destination chain ID
Indicates if bridge was skipped due to sufficient funds on destination chain
Token approval transaction hash (if approval was needed)
Bridge transaction explorer URL.
undefined if bridgeSkipped is trueBridge intent details. Only present if bridge was executed
Swap results
SwapResult
Returned byswapWithExactIn() and swapWithExactOut() operations.
Indicates if the swap was successful
Swap result details when
success is trueChainSwap
Represents a swap executed on a specific chain.Chain ID where swap was executed
Transaction hash
Array of individual swap operations in the transaction
Simulation results
SimulationResult
Returned bysimulateBridge() and related simulation methods.
Simulated intent with fee breakdown and routing. See ReadableIntent
Token information
ExecuteSimulation
Returned bysimulateExecute().
Estimated gas units to be used
Gas price in wei
Total estimated gas fee (
gasUsed * gasPrice)BridgeAndExecuteSimulationResult
Returned bysimulateBridgeAndExecute().
Bridge simulation details, or
null if bridge is not neededExecute simulation details