How to set provider with access token in the "providerOrUrl" of the HDWalletProvider instance. #5798
-
I have install security-plugin in the goQuorum private network, I have to send access token while communicating with the node. I am not able to migrate contracts. I not able to set the correct provider thus failing to migrate. I confirmed network is working correctly by getting block number using web3js library. here is my truffle-config.js
I have also tried by creating provider with httpheaderprovider and passing it
I am attaching the screenshots which I got. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, httpheaderprovider is pretty old, and doesn't seem to have much support or usage. Have you tried passing an options object that Web3 expects? See their header tests, and docs |
Beta Was this translation helpful? Give feedback.
Hi, httpheaderprovider is pretty old, and doesn't seem to have much support or usage. Have you tried passing an options object that Web3 expects? See their header tests, and docs