v1

latestOpenAPI 3.0.32026-07-1320201.0 MB
Solana Transactions

Create SPL Token Transaction

post/api/v2/solana/transactions/SPL

Headers

X-Network'testnet' | 'mainnet'

Specify "testnet" for test network or leave empty for main network. Defaults to "mainnet" if not provided.

Authorizationstring required

Bearer token for authorization. Required for authenticated endpoints.

Content-Type'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data' required

The MIME type of the request body.

Request body

fromstring required

The sender address of the transaction. Must match the regex /^[1-9A-HJ-NP-Za-km-z]{32,44}$/.

tostring required

The receiver address of the transaction. Must match the regex /^[1-9A-HJ-NP-Za-km-z]{32,44}$/.

contractaddressstring required

The mint address of the token. Must match the regex /^[1-9A-HJ-NP-Za-km-z]{32,44}$/.

amountnumber required

The amount to send in SOL.

privatekeystring required

The private key to sign the transaction.

Example request

{
  "from": "9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
  "to": "9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
  "contractaddress": "9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
  "amount": 100,
  "privatekey": "9f8f72aa9304c8b593d555f12ef6589cc3a579a2"
}