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.
sendTokenFeeShow the activation fee on a send or cross-chain withdraw form before signing tokenSend.
`toAddress` of the planned `tokenSend`: another user or a TxRelay peg.
Must be `sendTokenFee`.
"sendTokenFee"Sender.
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"
}'`0` on success.
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.
`false` on error, with `code` set and the text in `message` instead of `data`.
{
"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.