GET /sdk/v1/status/:intent_id
Status
Get the current status of a transfer.
Request
intent_id string Required
The intent ID from the transfer response
Response
intent_id string
Transfer intent ID
status string
Current status: pending, detected, attested, minted, complete, failed
source_chain string
Source chain code
destination_chain string
Destination chain code
source_tx string
Source chain transaction hash
destination_tx string
Destination chain transaction hash (when complete)
amount string
Transfer amount
created_at string
ISO 8601 timestamp
completed_at string
ISO 8601 timestamp (when complete)
Status Flow
mermaid
stateDiagram-v2
[*] --> pending
pending --> detected: Burn confirmed
detected --> attested: Attestation received
attested --> minted: Mint executed
minted --> complete: Funds delivered
pending --> failed: Error
detected --> failed: Error
stateDiagram-v2
[*] --> pending
pending --> detected: Burn confirmed
detected --> attested: Attestation received
attested --> minted: Mint executed
minted --> complete: Funds delivered
pending --> failed: Error
detected --> failed: Error
Example
bash · curl
curl https://api.sw4p.io/sdk/v1/status/int_abc123 \
-H "X-API-Key: sk_..."
json · Response
{
"intent_id": "int_abc123",
"status": "complete",
"source_chain": "BASE",
"destination_chain": "SOLANA",
"source_tx": "0x...",
"destination_tx": "5a...",
"amount": "100.00",
"created_at": "2024-01-01T00:00:00Z",
"completed_at": "2024-01-01T00:01:05Z"
}