You can test your signature in x-api-signature within this method.
Last updated 8 months 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": "3647f7b13167a55d461b42da8e7c8b76aa78c3fbafda1b8aba1231479785c278", "receivedBody": "{\"some\":\"param\",\"another\":\"param\",\"nonce\":\"cb872745-33e3-4eb8-a844-db30e31bf9a1\"}" } }