Trying to follow the Postman guide for the Sandbox (Postman Guide), I selected No Environment and then I could not find Boilerplate Fireblocks Environment.
Please see an attached photo of my Postman.
Thank you!
Hi @Earthxcg do you see the Fireblocks API collection in your Postman on the left?
Also, where do I set up the fireblocksApiKey and fireblocksSecretKey?
@Wilfred , I will be very glad for your help
Hi @Earthxcg! May I ask what you experienced after clicking the “Run in Postman” button in the following:
On my end, this shows up:
Clicking on “Fork Collection” forwards you to Postman online, “import a copy” opens up the desktop app.
Either way should show something similar to the following:
Enter your preferences in the Fork label and Workspace boxes.
Afterwards the following window should show:
Regarding the API key and Secret Key setup, you can find setting up the environment variables in the upper right hand of the console:
After that, the “Update environment variables” section of the documentation walks through the environment setup:
Hopefully, this helps! If you experience any more issues, do share them here!
@Wilfred thank you.
This is what I have added to the variables:
For the fireblocksApiKey I added the API Key.
The thing is that for the fireblocksSecretKey I should have added the fireblocks_secret.key
file, but I could not find how to do it, so I opened it with text editor, and copied the text AFTER -----BEGIN PRIVATE KEY----- until -----END PRIVATE KEY-----
Is it correct?
What do I do next?
Many thanks!
@Wilfred another question:
I have zero experience with this field. Is there any tutorial on how to start using Postman?
Many thanks
I think you’re on the right track! The private key should definitely be copy pasted onto the current value field but do include all conents of the file, including the —BEGIN PRIVATE KEY— until —END PRIVATE KEY----
There are resources on YouTube for Postman usage. I have not finished this course but do keep in mind that the interface has changed since the video was made. Concepts should remain mostly the same.
Hopefully, these all help! And as an additional note, Wilfred is a Fireblocks Employee. I’m simply a community user but glad to help!
Thank you for your reply!
After setting the variables I try to run, and then I get the error message:
Error: Selected environment (Boilerplate Fireblocks Environment) contains a fireblocksSecretKey variable but its current value is empty
Although this variable is not empty…
Any idea?
Many thanks!
Hi @Earthxcg! I believe that Postman is prioritizing the Environment Variables that may be set to empty. Please check the setting of your Environment Variables by clicking the “Boilerplate Fireblocks…” on the upper right hand of your screenshot if the keys are set there.
Let me know if this solves the issue!
@dkea thank you very much, it seems there is some progress, any idea why pmlib is not defined? Many thanks!
Hi @Earthxcg , would you be able to share your screenshots for each of the “Scripts” and “Variables” tabs when you click on the “Fireblocks API” on the left pane of Postman?
It should look similar to the below:
@dkea thank you, here are the screens:
Hi @Earthxcg, I see that the checkbox for pmlib_code is not checked. Could you select it and try again?
Hi @dkea
Unfortunately I still receive the same msg about pmlib not defined after checking as shown here: