[Question] Is is possible to use Infura provider for benchmarking?
I am trying to benchmark a smart contract deployed on public testnet "Ropsten." However, instead of running a local node, I am using a public node like Infura. Due to this, the script for benchmark fails as certain functions like send_transaction are not supported by Infura.
Can anyone share some information related to this?
Yes, I did it.
Yes, I did it.
Can you please elaborate how you did? Did you make some changes in the code?
{ "caliper": { "blockchain": "ethereum" }, "ethereum": { "url": "wss://kovan.infura.io/ws/v3/9.....", "contractDeployerAddress": "0xC", //put here the ethereum address you want to use to deploy your smart contract. "contractDeployerAddressPrivateKey" : "0x6", //put here the corresponding private key of the ethereum address you used to deploy the smart contract "fromAddress": "",
what the version of caliper are you using?
what the version of caliper are you using?
V0.4.2 The above code works for deployment of contract, but when calling the contract function, I get the error as Infura does not support send_transaction.
May you please send what is the error you are getting. Actually, I use this this solution to deploy smart contracts as well as to send transactions in order to execute some functions on the smart contract that I have deployed.
May you please send what is the error you are getting. Actually, I use this this solution to deploy smart contracts as well as to send transactions in order to execute some functions on the smart contract that I have deployed.
Thank you for your response. On further inspection I found that indeed you are correct. It works for most of the function calls. However, for a call requiring commitment (Ethers passed as value parameter), I face the issue
what is the error that you have get?
what is the error that you have get?
Error: The method eth_sendTransaction does not exist/is not available
hi toutou8148, i also want to caliper with ropsten. Can you pls share the full file. and any other file you have changed ? my contract is already deployed on Ropsten. How do I use caliper ? pls your answer will really help me
is it possible to talk to you ? i need help
i am getting same error while using ropsten through infuria as you have got. The error is :
Error while performing "install" step: Error: Returned error: The method eth_sendTransaction does not exist/is not available I ran this command
npx caliper launch manager --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-networkconfig networks/ethereum/1node-clique/networkconfig2.json --caliper-flow-only-install
if I use --caliper-flow-only-test then I get the following error You must provide the json interface of the contract when instantiating a contract object. i am using "simple" contract only. simple contract is already deployed on the ropsten.
pls help. it seems that you resolved your error.
i am getting same error while using ropsten through infuria as you have got. The error is :
Error while performing "install" step: Error: Returned error: The method eth_sendTransaction does not exist/is not available I ran this command
npx caliper launch manager --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-networkconfig networks/ethereum/1node-clique/networkconfig2.json --caliper-flow-only-install
if I use --caliper-flow-only-test then I get the following error You must provide the json interface of the contract when instantiating a contract object. i am using "simple" contract only. simple contract is already deployed on the ropsten.
pls help. it seems that you resolved your error.
@jigsnptel can you share the code for networkconfig2.json? What @toutou8148 mentioned will work for most of the cases. In the configuration file, if you use private key instead of password, you will solve the issue. For special case where you need to send ether to smart contract as commitment, I wrote an additional code to handle the requirement. I will be submitting it for review. I will share the code with you if you need it.
Hi, Thanks for replying.i used private key and I could run Have you tried deployment of your own contract ?
Which files did you modify ?
Thank you Jignasha
On Fri, 18 Jun 2021, 18:20 Nachiket Tapas, @.***> wrote:
i am getting same error while using ropsten through infuria as you have got. The error is :
Error while performing "install" step: Error: Returned error: The method eth_sendTransaction does not exist/is not available I ran this command
npx caliper launch manager --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-networkconfig networks/ethereum/1node-clique/networkconfig2.json --caliper-flow-only-install
if I use --caliper-flow-only-test then I get the following error You must provide the json interface of the contract when instantiating a contract object. i am using "simple" contract only. simple contract is already deployed on the ropsten.
pls help. it seems that you resolved your error.
@jigsnptel https://github.com/jigsnptel can you share the code for networkconfig2.json? What @toutou8148 https://github.com/toutou8148 mentioned will work for most of the cases. In the configuration file, if you use private key instead of password, you will solve the issue. For special case where you need to send ether to smart contract as commitment, I wrote an additional code to handle the requirement. I will be submitting it for review. I will share the code with you if you need it.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hyperledger/caliper/issues/1142#issuecomment-864014379, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKC2DWPX64IMM53B5GAHFLTTM6INANCNFSM45WZDAKA .
-- Disclaimer The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. Opinions, conclusions and other information in this message that do not relate to the official business of the sender's company shall be understood as neither given nor endorsed by it.
Finally, please do not print this email unless it is necessary. Every unprinted email helps the environment.
Hi, Thanks for replying.i used private key and I could run Have you tried deployment of your own contract ? Which files did you modify ? Thank you Jignasha … On Fri, 18 Jun 2021, 18:20 Nachiket Tapas, @.***> wrote: i am getting same error while using ropsten through infuria as you have got. The error is : Error while performing "install" step: Error: Returned error: The method eth_sendTransaction does not exist/is not available I ran this command npx caliper launch manager --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-networkconfig networks/ethereum/1node-clique/networkconfig2.json --caliper-flow-only-install if I use --caliper-flow-only-test then I get the following error You must provide the json interface of the contract when instantiating a contract object. i am using "simple" contract only. simple contract is already deployed on the ropsten. pls help. it seems that you resolved your error. @jigsnptel https://github.com/jigsnptel can you share the code for networkconfig2.json? What @toutou8148 https://github.com/toutou8148 mentioned will work for most of the cases. In the configuration file, if you use private key instead of password, you will solve the issue. For special case where you need to send ether to smart contract as commitment, I wrote an additional code to handle the requirement. I will be submitting it for review. I will share the code with you if you need it. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1142 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKC2DWPX64IMM53B5GAHFLTTM6INANCNFSM45WZDAKA . -- Disclaimer The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. Opinions, conclusions and other information in this message that do not relate to the official business of the sender's company shall be understood as neither given nor endorsed by it. Finally, please do not print this email unless it is necessary. Every unprinted email helps the environment.
You need to prepare the following files with respect to simple example you are using.
- simple.json in src
- networkconfig.json in networks
- config.yaml in benchmarks
- individual contract function files in benchmarks I wrote a medium article on the same. You can have a read and let me know if anything is unclear. https://medium.com/@nachiket_tapas/want-to-benchmark-your-blockchain-solution-try-hyperledger-caliper-aea25e068813?sk=9393e4839abb950d358e2cf66c2f231d
Hi, I am really thankful to you. it is of great help.
hope I am not intruding on your time. Do you work on Hashgraph and Hashgraph consensus service ? if you have any articles please let me know.
Thank you, Jignasha
On Sat, Jun 19, 2021 at 10:15 AM Nachiket Tapas @.***> wrote:
Hi, Thanks for replying.i used private key and I could run Have you tried deployment of your own contract ? Which files did you modify ? Thank you Jignasha … <#m_6432447123182605385_> On Fri, 18 Jun 2021, 18:20 Nachiket Tapas, @.***> wrote: i am getting same error while using ropsten through infuria as you have got. The error is : Error while performing "install" step: Error: Returned error: The method eth_sendTransaction does not exist/is not available I ran this command npx caliper launch manager --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-networkconfig networks/ethereum/1node-clique/networkconfig2.json --caliper-flow-only-install if I use --caliper-flow-only-test then I get the following error You must provide the json interface of the contract when instantiating a contract object. i am using "simple" contract only. simple contract is already deployed on the ropsten. pls help. it seems that you resolved your error. @jigsnptel https://github.com/jigsnptel https://github.com/jigsnptel can you share the code for networkconfig2.json? What @toutou8148 https://github.com/toutou8148 https://github.com/toutou8148 mentioned will work for most of the cases. In the configuration file, if you use private key instead of password, you will solve the issue. For special case where you need to send ether to smart contract as commitment, I wrote an additional code to handle the requirement. I will be submitting it for review. I will share the code with you if you need it. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1142 (comment) https://github.com/hyperledger/caliper/issues/1142#issuecomment-864014379>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKC2DWPX64IMM53B5GAHFLTTM6INANCNFSM45WZDAKA . -- Disclaimer The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. Opinions, conclusions and other information in this message that do not relate to the official business of the sender's company shall be understood as neither given nor endorsed by it. Finally, please do not print this email unless it is necessary. Every unprinted email helps the environment.
You need to prepare the following files with respect to simple example you are using.
- simple.json in src
- networkconfig.json in networks
- config.yaml in benchmarks
- individual contract function files in benchmarks I wrote a medium article on the same. You can have a read and let me know if anything is unclear.
@.***_tapas/want-to-benchmark-your-blockchain-solution-try-hyperledger-caliper-aea25e068813?sk=9393e4839abb950d358e2cf66c2f231d
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hyperledger/caliper/issues/1142#issuecomment-864354846, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKC2DSU7F72TRQTFPEWX3TTTQOGDANCNFSM45WZDAKA .
--
[image: Somaiya Logo] <https://kjsieit.somaiya.edu.in> Jignasha
Dalal ASSISTANT PROFESSOR Follow us : [image: Somaiya Logo] https://www.facebook.com/kjsieitofficial [image: Somaiya Logo] https://www.instagram.com/kjsieit_22 [image: Somaiya Logo] https://twitter.com/kjsieit1 [image: Somaiya Logo] https://www.linkedin.com/in/kjsieit [image: Somaiya Logo] https://www.youtube.com/kjsieitofficial
https://www.somaiya-ayurvihar.org/en http://www.nareshwadi.org/en http://www.somaiya.org/ http://www.helpachild.org.in/ http://www.nareshwadi.org/en
-- Disclaimer The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. Opinions, conclusions and other information in this message that do not relate to the official business of the sender's company shall be understood as neither given nor endorsed by it.
Finally, please do not print this email unless it is necessary. Every unprinted email helps the environment.
hi, gone through your article. there is some doubt. there are two files in the utils folder operation base.js and simple state.js. Do we need to modify these files?. The main part I do not understand about parameters while generating workload.
pls help.
Thank you, Jignasha
On Sat, Jun 19, 2021 at 10:26 AM Jignasha Dalal @.***> wrote:
Hi, I am really thankful to you. it is of great help.
hope I am not intruding on your time. Do you work on Hashgraph and Hashgraph consensus service ? if you have any articles please let me know.
Thank you, Jignasha
On Sat, Jun 19, 2021 at 10:15 AM Nachiket Tapas @.***> wrote:
Hi, Thanks for replying.i used private key and I could run Have you tried deployment of your own contract ? Which files did you modify ? Thank you Jignasha … <#m_-1024682801879385325_m_6432447123182605385_> On Fri, 18 Jun 2021, 18:20 Nachiket Tapas, @.***> wrote: i am getting same error while using ropsten through infuria as you have got. The error is : Error while performing "install" step: Error: Returned error: The method eth_sendTransaction does not exist/is not available I ran this command npx caliper launch manager --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-networkconfig networks/ethereum/1node-clique/networkconfig2.json --caliper-flow-only-install if I use --caliper-flow-only-test then I get the following error You must provide the json interface of the contract when instantiating a contract object. i am using "simple" contract only. simple contract is already deployed on the ropsten. pls help. it seems that you resolved your error. @jigsnptel https://github.com/jigsnptel https://github.com/jigsnptel can you share the code for networkconfig2.json? What @toutou8148 https://github.com/toutou8148 https://github.com/toutou8148 mentioned will work for most of the cases. In the configuration file, if you use private key instead of password, you will solve the issue. For special case where you need to send ether to smart contract as commitment, I wrote an additional code to handle the requirement. I will be submitting it for review. I will share the code with you if you need it. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1142 (comment) https://github.com/hyperledger/caliper/issues/1142#issuecomment-864014379>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKC2DWPX64IMM53B5GAHFLTTM6INANCNFSM45WZDAKA . -- Disclaimer The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. Opinions, conclusions and other information in this message that do not relate to the official business of the sender's company shall be understood as neither given nor endorsed by it. Finally, please do not print this email unless it is necessary. Every unprinted email helps the environment.
You need to prepare the following files with respect to simple example you are using.
- simple.json in src
- networkconfig.json in networks
- config.yaml in benchmarks
- individual contract function files in benchmarks I wrote a medium article on the same. You can have a read and let me know if anything is unclear.
@.***_tapas/want-to-benchmark-your-blockchain-solution-try-hyperledger-caliper-aea25e068813?sk=9393e4839abb950d358e2cf66c2f231d
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hyperledger/caliper/issues/1142#issuecomment-864354846, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKC2DSU7F72TRQTFPEWX3TTTQOGDANCNFSM45WZDAKA .
--
[image: Somaiya Logo] <https://kjsieit.somaiya.edu.in> JignashaDalal ASSISTANT PROFESSOR Follow us : [image: Somaiya Logo] https://www.facebook.com/kjsieitofficial [image: Somaiya Logo] https://www.instagram.com/kjsieit_22 [image: Somaiya Logo] https://twitter.com/kjsieit1 [image: Somaiya Logo] https://www.linkedin.com/in/kjsieit [image: Somaiya Logo] https://www.youtube.com/kjsieitofficial
https://www.somaiya-ayurvihar.org/en http://www.nareshwadi.org/en http://www.somaiya.org/ http://www.helpachild.org.in/ http://www.nareshwadi.org/en
--
[image: Somaiya Logo] <https://kjsieit.somaiya.edu.in> Jignasha
Dalal ASSISTANT PROFESSOR Follow us : [image: Somaiya Logo] https://www.facebook.com/kjsieitofficial [image: Somaiya Logo] https://www.instagram.com/kjsieit_22 [image: Somaiya Logo] https://twitter.com/kjsieit1 [image: Somaiya Logo] https://www.linkedin.com/in/kjsieit [image: Somaiya Logo] https://www.youtube.com/kjsieitofficial
https://www.somaiya-ayurvihar.org/en http://www.nareshwadi.org/en http://www.somaiya.org/ http://www.helpachild.org.in/ http://www.nareshwadi.org/en
-- Disclaimer The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. Opinions, conclusions and other information in this message that do not relate to the official business of the sender's company shall be understood as neither given nor endorsed by it.
Finally, please do not print this email unless it is necessary. Every unprinted email helps the environment.
Hi, I am really thankful to you. it is of great help. hope I am not intruding on your time. Do you work on Hashgraph and Hashgraph consensus service ? if you have any articles please let me know. Thank you, Jignasha On Sat, Jun 19, 2021 at 10:15 AM Nachiket Tapas @.> wrote: … Hi, Thanks for replying.i used private key and I could run Have you tried deployment of your own contract ? Which files did you modify ? Thank you Jignasha … <#m_6432447123182605385_> On Fri, 18 Jun 2021, 18:20 Nachiket Tapas, @.> wrote: i am getting same error while using ropsten through infuria as you have got. The error is : Error while performing "install" step: Error: Returned error: The method eth_sendTransaction does not exist/is not available I ran this command npx caliper launch manager --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-networkconfig networks/ethereum/1node-clique/networkconfig2.json --caliper-flow-only-install if I use --caliper-flow-only-test then I get the following error You must provide the json interface of the contract when instantiating a contract object. i am using "simple" contract only. simple contract is already deployed on the ropsten. pls help. it seems that you resolved your error. @jigsnptel https://github.com/jigsnptel https://github.com/jigsnptel can you share the code for networkconfig2.json? What @toutou8148 https://github.com/toutou8148 https://github.com/toutou8148 mentioned will work for most of the cases. In the configuration file, if you use private key instead of password, you will solve the issue. For special case where you need to send ether to smart contract as commitment, I wrote an additional code to handle the requirement. I will be submitting it for review. I will share the code with you if you need it. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1142 (comment) <#1142 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKC2DWPX64IMM53B5GAHFLTTM6INANCNFSM45WZDAKA . -- Disclaimer The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. Opinions, conclusions and other information in this message that do not relate to the official business of the sender's company shall be understood as neither given nor endorsed by it. Finally, please do not print this email unless it is necessary. Every unprinted email helps the environment. You need to prepare the following files with respect to simple example you are using. 1. simple.json in src 2. networkconfig.json in networks 3. config.yaml in benchmarks 4. individual contract function files in benchmarks I wrote a medium article on the same. You can have a read and let me know if anything is unclear. @.***_tapas/want-to-benchmark-your-blockchain-solution-try-hyperledger-caliper-aea25e068813?sk=9393e4839abb950d358e2cf66c2f231d — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1142 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKC2DSU7F72TRQTFPEWX3TTTQOGDANCNFSM45WZDAKA . -- [image: Somaiya Logo] https://kjsieit.somaiya.edu.in Jignasha Dalal ASSISTANT PROFESSOR Follow us : [image: Somaiya Logo] https://www.facebook.com/kjsieitofficial [image: Somaiya Logo] https://www.instagram.com/kjsieit_22 [image: Somaiya Logo] https://twitter.com/kjsieit1 [image: Somaiya Logo] https://www.linkedin.com/in/kjsieit [image: Somaiya Logo] https://www.youtube.com/kjsieitofficial https://www.somaiya-ayurvihar.org/en http://www.nareshwadi.org/en http://www.somaiya.org/ http://www.helpachild.org.in/ http://www.nareshwadi.org/en -- Disclaimer The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. Opinions, conclusions and other information in this message that do not relate to the official business of the sender's company shall be understood as neither given nor endorsed by it. Finally, please do not print this email unless it is necessary. Every unprinted email helps the environment.
At present I don't. Have a look at this: https://hedera.com/blog/build-your-first-hcs-powered-web-app
Here is a sample file. I renamed a .js file to a .txt file. In the file, there is a function named _generateWorkload() which generates parameters for the smart contract function. Hope it helps. setReceived.txt
thanks a lot
On Sat, Jun 19, 2021 at 12:10 PM Nachiket Tapas @.***> wrote:
Here is a sample file. I renamed a .js file to a .txt file. In the file, there is a function named _generateWorkload() which generates parameters for the smart contract function. Hope it helps. setReceived.txt https://github.com/hyperledger/caliper/files/6680135/setReceived.txt
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hyperledger/caliper/issues/1142#issuecomment-864364965, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKC2DQKQN4CXEENUDOSCGDTTQ3W7ANCNFSM45WZDAKA .
--
[image: Somaiya Logo] <https://kjsieit.somaiya.edu.in> Jignasha
Dalal ASSISTANT PROFESSOR Follow us : [image: Somaiya Logo] https://www.facebook.com/kjsieitofficial [image: Somaiya Logo] https://www.instagram.com/kjsieit_22 [image: Somaiya Logo] https://twitter.com/kjsieit1 [image: Somaiya Logo] https://www.linkedin.com/in/kjsieit [image: Somaiya Logo] https://www.youtube.com/kjsieitofficial
https://www.somaiya-ayurvihar.org/en http://www.nareshwadi.org/en http://www.somaiya.org/ http://www.helpachild.org.in/ http://www.nareshwadi.org/en
-- Disclaimer The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. Opinions, conclusions and other information in this message that do not relate to the official business of the sender's company shall be understood as neither given nor endorsed by it.
Finally, please do not print this email unless it is necessary. Every unprinted email helps the environment.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.