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": "e86f22fca0ee12d29730d87a2354bde56d7e3e0137fb28ef4b24467e24b7ca66", "receivedBody": "{\"some\":\"param\",\"another\":\"param\",\"nonce\":\"a22052e9-ce9b-4c22-98b0-73f4a7b86cfc\"}" } }