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": "e2a5536cbfaca8fbb32a9e417a7c0eab9adac9c609977f248c7e104967e85213", "receivedBody": "{\"some\":\"param\",\"another\":\"param\",\"nonce\":\"632d1446-5a4a-4176-a2fa-658a743a4019\"}" } }