Now, let's build a couple signatures for your requests. For demonstrational purposes, we'll be using constant values for private-key
and timeframe
.
Whole body of the request should also be included in the MESSAGE as payload.
Request: POST/merchants/addresses
Body: {"blockchain":"BITCOIN", "meta":"your-info"}
Message: POST/merchants/addresses{"blockchain":"BITCOIN", "meta":"your-info"}1677486443
Signature: d1aeccfe32e4adf499be5777f38cd643a2a2c06a929f1f328d9809b9f8f8509e
Whole body of the request should also be included in the MESSAGE as payload.
Request: POST/merchants/rotating-addresses
Body: POST/merchants/rotating-addresses{"blockchain":"BITCOIN", "meta":"your-info", "duration":"123145513"}
Message: POST/merchants/rotating-addresses{"blockchain":"BITCOIN", "meta":"your-info", "duration":"123145513"}1677486443
Signature: 2b3cb49ec7e03f7b53df43aea92977ef22d2ed5e8fff4ecd0696bf3906c070ea
Whole body of the request should also be included in the MESSAGE as payload.
Request: POST/merchants/withdrawals/crypto
Body: {"ticker":"USDT", "blockchain":"TRON", "to":"THPvaUhoh2Qn2y9THCZML3H815hhFhn5YCw", "amount":"12.000", "meta":"your-info"}
Message: POST/merchants/withdrawals/crypto{"ticker":"USDT", "blockchain":"TRON", "to":"THPvaUhoh2Qn2y9THCZML3H815hhFhn5YCw", "amount":"12.000", "meta":"your-info"}1677486443
Signature: 47e1044d1116fae66dafa5af595170b7b2a63d5c169e8c030a0787b6b8095a23
Since this request sends parameters via query, they have to be included in the final MESSAGE.
Request: GET/withdrawals/crypto/fee
Query: ?ticker=USDT&amount=12.00&blockchain=TRON
Message: GET/merchants/withdrawals/crypto/fee?ticker=USDT&amount=12.00&blockchain=TRON1677486443
Signature: 80024504f409906c1bc9359bb943847eed0c9f8f5bfe83b9b5f5c8155e44e404