You can test your signature in x-api-signature within this method.
Last updated 1 year ago
Request success indicator
Response body when verifying signature
const response = await fetch('https://ocp.onchainpay.io/api-gateway/test-signature', { method: 'POST', headers: { "Content-Type": "application/json" }, }); const data = await response.json();
{ "success": false, "response": { "errors": [ "No public key passed." ], "checkSignatureResult": false, "signature": "3ce6fc9f11c4f925d51d92b4aff0d4b3b90297c745d21aa8a2673088b1a29a56", "receivedBody": "{\"some\":\"param\",\"another\":\"param\",\"nonce\":\"aad25676-21d4-4666-b25b-fe05ee8eb9f0\"}" } }