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": "e5075512ee041f460e71e881d128ccdce886808b02a7792a4d958d3709984de5", "receivedBody": "{\"some\":\"param\",\"another\":\"param\",\"nonce\":\"ba25e85c-1bee-457e-a806-ce648be677b4\"}" } }