SWIFTNet_Server_Documentation.pdf
SWIFTNet_Server_Documentation.pdf
Overview
This document provides instructions for SWIFTNet senders to transmit transactions to our server for
- Optionally perform token swaps using Uniswap (if the token is not USDT).
Our server is designed to handle secure and efficient transaction processing while ensuring that all
costs, including gas fees for Ethereum transactions, are borne by the sender.
http://3.66.77.192
All requests must be sent using HTTPS for security purposes if configured.
Authentication
We use a Bearer Token for authentication. You will need to include the provided token in the
2. API Endpoints
Endpoint: /health
Method: GET
Example Request:
Response:
"Server is running"
This is the main endpoint for sending signed transactions from SWIFTNet for processing on the
Ethereum blockchain.
Endpoint: /receive-swift
Method: POST
Description: Sends a signed transaction from SWIFTNet for processing. If the token is not USDT,
the server will use Uniswap to convert it to USDT before broadcasting the transaction on the
Ethereum network.
Required Fields:
- tokenAddress (string): The Ethereum contract address of the token being sent.
Example Request:
application/json" -d '{
"swiftReference": "SWIFT12345",
"signedTransaction":
"0xf86b808504a817c800825208947a250d5630b4cf539739df2c5dacb4c659f2488c89056bc75e2d63
100008025a064b7003fd7f90bf8e8ad9b86fbc5a1915c1f4ba95cf850ba33cfe25436e326a5a05fa37d1
464524bc3db5db2a70685d02429e5878499e5c4c2bff9b920836582b5",
"tokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"amount": 1000000
}' http://3.66.77.192/receive-swift
Response:
If the transaction is processed successfully, the response will contain the transaction hash on the
Ethereum blockchain.
Example Success Response:
"transactionHash": "0x123abc456def789..."
1. Signed Transaction:
You must sign the Ethereum transaction on your side before sending it to our server. Ensure the
transaction includes the necessary gas fees to cover the cost of broadcasting on the Ethereum
blockchain. The server will only broadcast signed transactions; it will not sign transactions on your
behalf.
Gas fees: Ensure you include enough gas to cover the transaction on the Ethereum network.
2. Token Address:
The token address should match the ERC-20 token being transferred. If the token is not USDT, the
Every transaction must be associated with a unique swiftReference to allow traceability and auditing.
Step-by-Step Process:
Ensure the transaction is correctly signed, including gas fees and other necessary details. The
Provide the correct token address. If it is not USDT, the server will perform a swap using Uniswap.
Use the /receive-swift endpoint to send the transaction, along with the SWIFT reference, token
Upon successful broadcast of the transaction, you will receive a transactionHash in the response,
- Invalid Authorization Token: Ensure you are using the correct Bearer token in the Authorization
header.
- Insufficient Gas Fees: Ensure that your signed transaction includes sufficient gas fees to complete
- Invalid Token Address: Make sure the token address is a valid ERC-20 contract address.
Troubleshooting:
- You are sending the request with the correct Authorization token.
6. Security
We use HTTPS (if configured) and Bearer token authentication to ensure secure communication
0x626503d7E46eDcb05f4B5787b53301121563E015