Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

sendTokenFee

Returns the one-time activation fee a tokenSend from user to destination will charge. Call it while the user fills a send form, or before a cross-chain withdraw with destination set to the TxRelay peg address, and show the fee next to the amount.

POST/infotype sendTokenFee

Show the activation fee on a send or cross-chain withdraw form before signing tokenSend.

Request body
destinationstring · addressrequired

`toAddress` of the planned `tokenSend`: another user or a TxRelay peg.

typestringrequired

Must be `sendTokenFee`.

"sendTokenFee"
userstring · addressrequired

Sender.

Request example
curl -X POST https://rpc.txflow-testnet.xyz/info \
  -H "Content-Type: application/json" \
  -H "x-api-version: 2026-08-16" \
  -d '{
  "type": "sendTokenFee",
  "user": "0x95761f4d19B906B3B09da3EeE0BF30B337f4dB88",
  "destination": "0x2e4d75df2ee2653ea7a113cc1fa36d45e923061f"
}'
Try it
POST https://rpc.txflow-testnet.xyz/info
Response 200
codeinteger

`0` on success.

dataobject
feestring

One-time activation fee in USDC. `"1"` for the first send to a new destination; `"0"` once the destination is activated or when it is `user` itself.

successboolean

`false` on error, with `code` set and the text in `message` instead of `data`.

Response example
{
  "success": true,
  "code": 0,
  "data": {
    "fee": "1"
  }
}

fee is a decimal USDC string. It is "1" for the first send to a destination that has not been activated, and "0" afterwards or when destination is user.

Next steps

Send the tokens with tokenSend.