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": "7e6fbb5b1f789e2e8a8d4bde277addaef2c6591fb7138d09f204a8765c9cc1c1", "receivedBody": "{\"some\":\"param\",\"another\":\"param\",\"nonce\":\"24aca6b7-a77f-4738-ade3-e6607378259b\"}" } }