- Except for general-purpose APIs, all other APIs require signature verification to ensure that request data has not been maliciously tampered with.
- If a signature is required, it must be included in the HTTP request header using the
Signaturefield. - APIs that require signatures must include the
timestampparameter. The value should be the UNIX timestamp (in milliseconds) at the time of the request. The server will validate the timestamp, and requests sent more than10seconds prior will be considered invalid.
Steps to Sign a Request
1
Build the Payload
Arrange the parameter list into a string, separating each parameter with
&. For example:
tokenName=USDT&amount=500&chainName=Ethereum&toAddress=0x9C903Cc6233ea0E9275452C13efe967a04EBe58b×tamp=17249855759332
Sign the Payload Using HMAC SHA-256
3
Encode the Signature in Hexadecimal Format
966174f21ae551a832a4830231e3d3dacf4ad326dc437d391ec525dd4fdaab44