This example assumes that the integration SDK is available in the project. It also requires a configured wallet adapter and independently supplied signing trust.

Server client

Use the gateway origin as HUB_BASE_URL. Use a subject derived from the authenticated application user.

Quote and validate

Construct request from the catalog and user inputs. Use the quote fields, including sourceAccount and integer amount strings. Display the validated terms before proceeding.

Execute

Here, evm is the application’s configured wallet adapter. updateProgress is the application’s event handler. Provide the Solana adapter and required RPC access for a Solana source. Preserve execution identifiers and transaction hashes. Handle review-required and unknown-outcome errors explicitly. See execution.