SW4P Documentation
Browse documentation
Submit Solana Transaction

POST /sdk/v1/solana/submit

Submit Solana Transaction

Submit a signed Solana transaction to complete a Solana → EVM transfer.

Request

intent_id string Required

Intent ID from /sdk/v1/solana/build-tx

signed_transaction string Required

Base64-encoded signed transaction

Response

intent_id string

Transfer intent ID

status string

Initial status: pending

tx_signature string

Solana transaction signature

fee object

Fee breakdown

Example

bash · curl
curl -X POST https://api.sw4p.io/sdk/v1/solana/submit \
  -H "Content-Type: application/json" \
  -H "X-API-Key: sk_..." \
  -d '{
    "intent_id": "int_xyz789",
    "signed_transaction": "AQAAAA..."
  }'
json · Response
{
  "intent_id": "int_xyz789",
  "status": "pending",
  "tx_signature": "5abc123...",
  "fee": {
    "total": "2.50",
    "platform": "1.00",
    "gas": "1.50"
  }
}

Next Step

After submitting, poll the status endpoint:

typescript
const response = await fetch(`https://api.sw4p.io/sdk/v1/status/${result.intent_id}`, {
  headers: { 'X-API-Key': apiKey },
})
if (!response.ok) throw new Error(`Status request failed: ${response.status}`)
const status = await response.json()
// A submitted source transaction is not proof of destination/vendor payment.