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": "0d41e10f7be96f092522eb8d5eb8076c09021c185200dc82bef9a4e158c53ae9", "receivedBody": "{\"some\":\"param\",\"another\":\"param\",\"nonce\":\"4701d079-b50c-4098-ad96-b2dfc5cd1fa6\"}" } }