New to Bubble and I’ve got to say I’m impressed with it’s capabilities and community engagement.
I’m having trouble getting the Coinbase Pro API (Coinbase Pro | API Reference) initialized.
When I try and initialize I get the following error:
“Raw response for the API
Status code 401
I’ve set the API call up as such:
I’m manually creating the signature for CB-ACCESS-SIGN using the code in the docs:
var crypto = require(“crypto”);
var secret =
var timestamp = 1624297400; var requestPath = "/payment-methods"; var body; var method = "GET"; // create the prehash string by concatenating required parts var what = timestamp + method + requestPath + body; // decode the base64 secret var key = Buffer.from(secret, "base64"); // create a sha256 hmac with the secret var hmac = crypto.createHmac("sha256", key); // sign the require message with the hmac // and finally base64 encode the result console.log(hmac.update(what).digest("base64"));
@Kfawcett I saw you were building out using the Coinbase Pro API in 2018. Any ideas in the issue?
@jarrad You had some great input when Keith was having an issue with the base 64 decoding - I’m planning on using your plug in when I get it initialized. Any thoughts on the initialization issue?
** All the secret, key and passphrase are from a Sandbox environment.