---
title: "Create Solana Tx"
method: POST
path: "/api/v1/wallet/create-solana-tx"
tags: ["Wallet Payments"]
---

# Create Solana Tx

`POST /api/v1/wallet/create-solana-tx`

## Request

- Base URL: `https://cryptodataapi.com`
- URL: `https://cryptodataapi.com/api/v1/wallet/create-solana-tx`
- Auth: API key in header `X-API-Key`

Build a Solana SPL USDC transfer transaction and return base64 bytes.

Creates a payment intent binding the sender to the caller's API key.
The frontend passes these bytes to Phantom which deserializes, simulates,
and signs using its own @solana/web3.js — avoiding cross-module issues.

## Request body

- SolanaTxRequest
  - `sender` string, required
  - `plan` string, required
  - `discount_code` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/cryptodataapi/apis/crypto-data-api.md) · [All operations](https://skmtc.dev/cryptodataapi/apis/crypto-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cryptodataapi/apis/crypto-data-api/revisions/8628b754ca81?raw)
