kycalica
(Kyle Calica)
December 1, 2021, 5:04am
1
Hey everyone!
I am trying to sideload Web3.js into Postman’s script environment.
I’ve side loaded libraries in the past like this collection:
https://go.postman.co/workspace/My-Workspace~632f0d89-8a82-4093-8798-02231b2ea47c/collection/1034536-0019a3ab-311a-4b69-b437-fcad54f6b20e
However, when I tried the same with web3.js and looked at the source code:
/*
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3.js is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file index.js
* @authors:
* Fabian Vogelsteller <[email protected] >
This file has been truncated. show original
There is the Web3 object exported. But it won’t find it when I try to call on it such as my previous example.
Here’s my call to get web3.js
And here’s my use after eval():
Let me know if there’s an updated way to do this or if the web3 library is missing something critical in its setup which prevents me from doing this. Thanks!