Skip to main content
POST
/
account
/
transactions
/
trade
/
{token_address}
cURL
curl --request POST \
  --url https://core-api-dev.vanish.trade/account/transactions/trade/{token_address} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "timestamp": "<string>",
  "user_address": "<string>",
  "signature": "<string>"
}'
[
  {
    "signature": "<string>",
    "one_time_address": "<string>",
    "token_amount": "<string>",
    "total_sol": "<string>",
    "total_usd": 123,
    "fee_sol": "<string>",
    "token_decimals": 123,
    "created_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

x-api-key
string
header
required

Path Parameters

token_address
string
required

The token mint address for which to retrieve trade transactions.

Body

application/json

Request payload for querying trade transactions.

timestamp
required

The current timestamp in milliseconds used for signature verification. Can be provided as a string or a number.

user_address
string
required

The Solana wallet address of the user.

signature
string
required

Signature of the 'read:{timestamp}' string signed using the user's wallet.

Response

A successful response containing the user's trade transactions for the specified token.

signature
string
required

The transaction signature on Solana blockchain.

token_amount
string<int64>
required

The amount of tokens traded (in smallest units).

total_sol
string<int64>
required

Total amount of SOL involved in the trade (in lamports).

total_usd
number
required

USD equivalent of the trade based on SOL price at the time of the transaction.

fee_sol
string<int64>
required

Total transaction fee paid in SOL (in lamports).

token_decimals
integer
required

Number of decimal places used by the traded token.

created_at
string<date-time>
required

Timestamp when the trade was completed (ISO 8601 format).

one_time_address
string | null

The one-time wallet address associated with the trade, if applicable.

I