> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://www.openfort.io/api/mcp` to find what you need.
>
> **Have feedback?** Use `submit_feedback` on the same MCP server.

# Solana Transactions

Look up sponsored Solana transactions by id or external id.

## Get Solana transaction status

`GET /v1/solana/transactions`

Get the status of a Solana transaction by either its internal id or the
caller-supplied externalId attached when the transaction was signed.

Exactly one of `id` or `externalId` must be provided. Lookups are scoped to
the authenticated project.

### Query parameters

- `id` `string`: Internal Solana transaction ID (starts with `sol_`).
- `externalId` `string`

### Responses

#### `200`: Solana transaction found.

Body (`application/json`):

- `id` `string` _(required)_: Internal Solana transaction ID (starts with `sol_`).
- `externalId` `string | null` _(required)_: Caller-supplied externalId, if one was provided when the transaction was signed.
- `txSignature` `string | null` _(required)_: Base58-encoded Solana transaction signature (a.k.a. transaction hash). Null only for `signTransaction` transactions that were never broadcast.
- `status` `string` _(required)_: Lifecycle status of the transaction: - sent: signed by Kora, awaiting on-chain confirmation - confirmed: confirmed on-chain - expired: blockhash expired or never broadcast - failed: landed on-chain but execution failed (see errorMessage)
- `errorMessage` `string | null` _(required)_: On-chain error message when status is FAILED.

#### `400`: Exactly one of id or externalId must be provided.

#### `404`: Solana transaction not found.

### Example request

```bash
curl 'https://api.openfort.io/v1/solana/transactions?id=sol_f2b8b5f0-1f5c-4a7e-9b3a-1d2e3f4a5b6c&externalId=my-external-id'
```

```ts
fetch('https://api.openfort.io/v1/solana/transactions?id=sol_f2b8b5f0-1f5c-4a7e-9b3a-1d2e3f4a5b6c&externalId=my-external-id')
```
