Skip to main content
POST
/
api
/
guest
/
purchase
/
quote
Request a partially signed purchase quote given the wallet public key and required TxLINE amount in whole units
curl --request POST \
  --url https://api.example.com/api/guest/purchase/quote \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "buyerPubkey": "5kb6gnsSu1inDF9nCVV3WcgKryyBFGFkrYS28Sp1avS8mq6Xcw6iq3yzkBTjmq8bGptgqYTXPmjyWECzKzUxYG3C",
  "txlineAmount": 50
}
'
{
  "transactionBase64": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAA...",
  "baseUsdtCost": 0.05,
  "feeUsdtAmount": 0,
  "totalUsdtCharged": 0.05
}

Documentation Index

Fetch the complete documentation index at: https://txline-docs.txodds.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User's session JWT.

Headers

Authorization
string
required

Bearer token for the guest session JWT.

Body

application/json
buyerPubkey
string
required

The public key of the buyer's Solana wallet.

txlineAmount
integer<int64>
required

The amount of whole utility TxLINE tokens to purchase. Must be strictly positive and not exceed 100000000 (100000 USDT equivalent).

Required range: 1 <= x <= 100000000

Response

The partially signed transaction payload alongside the explicit USDT fee breakdown.

transactionBase64
string
required
baseUsdtCost
number
required

The raw USDT cost for the tokens before fees (in whole USDT).

feeUsdtAmount
number
required

The premium fee applied to the transaction (currently 0 USDT).

totalUsdtCharged
number
required

The final total USDT amount the wallet will be charged.