Wrap SOL logo

Catalog action Solana Onchain wallet Gas swap

Wrap native SOL into canonical WSOL in the workflow wallet's Associated Token Account. Creates the ATA when absent, transfers the exact requested lamports, and runs SyncNative. Use before Solana protocols that require WSOL; this is not a Jupiter swap.

This action can require a wallet connector, gas, token movement, or an external side effect. Test with simulation or a controlled amount before using it in a live workflow.

At a Glance

FieldValue
Action IDwrap-sol
CategorySolana Onchain
Connectorwallet
Requires gasYes
Funds movementswap
Tagsblockchain, solana, sol, wrap, token, write

Payload Schema

FieldTypeRequiredDescription
chainIdnumberYesSolana Mainnet chain ID.
amountstringYesExact positive amount of native SOL to wrap, in human-readable SOL units (for example, "0.1"). Supports up to 9 decimal places.

Result Schema

FieldTypeRequiredDescription
statusstringYes-
signaturestringYesSolana transaction signature.
transactionHashstringYesSolana transaction signature for workflow audit trails.
txStatusstringNo-
chainIdnumberYes-
ownerstringYes-
wsolAtastringYes-
wsolMintstringYes-
rawSolSpentstringYesNative SOL lamports transferred into the canonical WSOL ATA.
formattedSolSpentstringYes-
rawWsolReceivedstringYesRaw WSOL credited from the requested SOL transfer.
formattedWsolReceivedstringYes-
rawRequestedWsolReceivedstringNoRaw WSOL credited from the user's exact transfer, excluding pre-existing lamports SyncNative may also credit.
formattedRequestedWsolReceivedstringNo-
rawAdditionalWsolSyncedstringNoPreflight-projected extra WSOL from observed unsynced native-token lamports or above-rent prefunded ATA lamports.
formattedAdditionalWsolSyncedstringNo-
decimalsnumberNo-
ataCreatedbooleanYes-
ataRentLamportsstringNoRent deposited when the canonical WSOL ATA was created in this transaction.
formattedAtaRentLamportsstringNo-
prefundedAtaLamportsstringNoObserved lamports already present in a zero-data System-owned canonical ATA before creation.
formattedPrefundedAtaLamportsstringNo-
prefundedAdditionalWsolLamportsstringNoPreflight-projected portion of prefunded ATA lamports above rent that SyncNative will credit as WSOL.
formattedPrefundedAdditionalWsolstringNo-
modeledFeeLamportsstringNoModeled network fee bound used before wallet signing.
formattedModeledFeestringNo-
projectedSolDeltaLamportsstringNo-
projectedWsolDeltaLamportsstringNo-
actualSolDeltaLamportsstringNo-
actualWsolDeltaLamportsstringNo-
preSolLamportsstringNoObserved native SOL balance before signing.
postSolLamportsstringNoObserved native SOL balance after confirmation.
preWsolRawstringNoObserved canonical WSOL ATA token balance before signing.
preWsolUnsyncedLamportsstringNoPre-existing lamports in the canonical WSOL ATA not yet reflected in its SPL Token amount.
postWsolRawstringNoObserved canonical WSOL ATA token balance after confirmation.
computeUnitLimitnumberNo-
unitsConsumednumberNo-
priorityFeeMicroLamportsnumberNo-
slotnumberNo-
confirmationSlotnumberNo-
simulationStatestringYes-
simulationLogsarrayNo-
simulatedbooleanYes-
observationStatusstringNo-
observationErrorstringNo-

Examples

json
{ "type": "wrap-sol", "payload": { "chainId": 7565164, "amount": "0.1" }, "children": [], "connector": { "type": "wallet", "id": "conn_wallet" }}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.