Doubt in terminologies used in Ganache Interface












1















I am developing a DApp (an e-commerce app) based on Ethereum. I wrote the solidity contract and interact it with a NodeJS server/web3js API. I am running a Ganache Ethereum RPC client locally. The app is running fine. I am making all the contract calls from the default account (web3.eth.accounts[0]).



I just have a few questions regarding the terminologies shown in this image of Ganace Interface.




  1. What does the From Address and To Contract Address signifies?

  2. What does Value mean? Why is it 0?

  3. Who paid for the gas when I did a contract call(which resulted in a transaction and then a block) via the web app?

  4. Who is the Miner of this Block 5?


Ganache Interface running on my localhost










share|improve this question







New contributor




Abhishek Sah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    1















    I am developing a DApp (an e-commerce app) based on Ethereum. I wrote the solidity contract and interact it with a NodeJS server/web3js API. I am running a Ganache Ethereum RPC client locally. The app is running fine. I am making all the contract calls from the default account (web3.eth.accounts[0]).



    I just have a few questions regarding the terminologies shown in this image of Ganace Interface.




    1. What does the From Address and To Contract Address signifies?

    2. What does Value mean? Why is it 0?

    3. Who paid for the gas when I did a contract call(which resulted in a transaction and then a block) via the web app?

    4. Who is the Miner of this Block 5?


    Ganache Interface running on my localhost










    share|improve this question







    New contributor




    Abhishek Sah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      1












      1








      1








      I am developing a DApp (an e-commerce app) based on Ethereum. I wrote the solidity contract and interact it with a NodeJS server/web3js API. I am running a Ganache Ethereum RPC client locally. The app is running fine. I am making all the contract calls from the default account (web3.eth.accounts[0]).



      I just have a few questions regarding the terminologies shown in this image of Ganace Interface.




      1. What does the From Address and To Contract Address signifies?

      2. What does Value mean? Why is it 0?

      3. Who paid for the gas when I did a contract call(which resulted in a transaction and then a block) via the web app?

      4. Who is the Miner of this Block 5?


      Ganache Interface running on my localhost










      share|improve this question







      New contributor




      Abhishek Sah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am developing a DApp (an e-commerce app) based on Ethereum. I wrote the solidity contract and interact it with a NodeJS server/web3js API. I am running a Ganache Ethereum RPC client locally. The app is running fine. I am making all the contract calls from the default account (web3.eth.accounts[0]).



      I just have a few questions regarding the terminologies shown in this image of Ganace Interface.




      1. What does the From Address and To Contract Address signifies?

      2. What does Value mean? Why is it 0?

      3. Who paid for the gas when I did a contract call(which resulted in a transaction and then a block) via the web app?

      4. Who is the Miner of this Block 5?


      Ganache Interface running on my localhost







      blockchain ethereumjs ganache






      share|improve this question







      New contributor




      Abhishek Sah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Abhishek Sah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Abhishek Sah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 9 hours ago









      Abhishek SahAbhishek Sah

      62




      62




      New contributor




      Abhishek Sah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Abhishek Sah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Abhishek Sah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          3














          First i need to tell you that every action that change the state of the blockchain need to be a transaction. So when you need to call a function that change a value from the blockchain you need to make a transaction to that contract.




          1. The From address signifies the address that make the transaction and the to address is the address that receive the transaction.


          2. Value is just the value the address from send to the address to. The reason why it is 0 is because you just want the contract address to excute for you something that will change the state of the blockchain (don’t want to send it some ether) so you dont need to send any value unless the function in the contract require some value to execute


          3. The gas is pay by the from address, you can check the account section for the address with the same hash as the from address and you will see that its balance is lower than other addresses the reason is because it has to pay the gas.


          4. If you are using ganache then ganache is your miner, it will automatic mine for you so you dont need to care much about the mining







          share|improve this answer
























          • Just to clarify: value is the amount of Ether you send with the transaction. Typically it's 0 unless you excplicitly want to send some Ether with the transaction (the called function has to be also marked as payable so it's able to receive those Ethers)

            – Lauri Peltonen
            5 hours ago











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "642"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Abhishek Sah is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fethereum.stackexchange.com%2fquestions%2f68140%2fdoubt-in-terminologies-used-in-ganache-interface%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          First i need to tell you that every action that change the state of the blockchain need to be a transaction. So when you need to call a function that change a value from the blockchain you need to make a transaction to that contract.




          1. The From address signifies the address that make the transaction and the to address is the address that receive the transaction.


          2. Value is just the value the address from send to the address to. The reason why it is 0 is because you just want the contract address to excute for you something that will change the state of the blockchain (don’t want to send it some ether) so you dont need to send any value unless the function in the contract require some value to execute


          3. The gas is pay by the from address, you can check the account section for the address with the same hash as the from address and you will see that its balance is lower than other addresses the reason is because it has to pay the gas.


          4. If you are using ganache then ganache is your miner, it will automatic mine for you so you dont need to care much about the mining







          share|improve this answer
























          • Just to clarify: value is the amount of Ether you send with the transaction. Typically it's 0 unless you excplicitly want to send some Ether with the transaction (the called function has to be also marked as payable so it's able to receive those Ethers)

            – Lauri Peltonen
            5 hours ago
















          3














          First i need to tell you that every action that change the state of the blockchain need to be a transaction. So when you need to call a function that change a value from the blockchain you need to make a transaction to that contract.




          1. The From address signifies the address that make the transaction and the to address is the address that receive the transaction.


          2. Value is just the value the address from send to the address to. The reason why it is 0 is because you just want the contract address to excute for you something that will change the state of the blockchain (don’t want to send it some ether) so you dont need to send any value unless the function in the contract require some value to execute


          3. The gas is pay by the from address, you can check the account section for the address with the same hash as the from address and you will see that its balance is lower than other addresses the reason is because it has to pay the gas.


          4. If you are using ganache then ganache is your miner, it will automatic mine for you so you dont need to care much about the mining







          share|improve this answer
























          • Just to clarify: value is the amount of Ether you send with the transaction. Typically it's 0 unless you excplicitly want to send some Ether with the transaction (the called function has to be also marked as payable so it's able to receive those Ethers)

            – Lauri Peltonen
            5 hours ago














          3












          3








          3







          First i need to tell you that every action that change the state of the blockchain need to be a transaction. So when you need to call a function that change a value from the blockchain you need to make a transaction to that contract.




          1. The From address signifies the address that make the transaction and the to address is the address that receive the transaction.


          2. Value is just the value the address from send to the address to. The reason why it is 0 is because you just want the contract address to excute for you something that will change the state of the blockchain (don’t want to send it some ether) so you dont need to send any value unless the function in the contract require some value to execute


          3. The gas is pay by the from address, you can check the account section for the address with the same hash as the from address and you will see that its balance is lower than other addresses the reason is because it has to pay the gas.


          4. If you are using ganache then ganache is your miner, it will automatic mine for you so you dont need to care much about the mining







          share|improve this answer













          First i need to tell you that every action that change the state of the blockchain need to be a transaction. So when you need to call a function that change a value from the blockchain you need to make a transaction to that contract.




          1. The From address signifies the address that make the transaction and the to address is the address that receive the transaction.


          2. Value is just the value the address from send to the address to. The reason why it is 0 is because you just want the contract address to excute for you something that will change the state of the blockchain (don’t want to send it some ether) so you dont need to send any value unless the function in the contract require some value to execute


          3. The gas is pay by the from address, you can check the account section for the address with the same hash as the from address and you will see that its balance is lower than other addresses the reason is because it has to pay the gas.


          4. If you are using ganache then ganache is your miner, it will automatic mine for you so you dont need to care much about the mining








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 8 hours ago









          haxerlhaxerl

          1195




          1195













          • Just to clarify: value is the amount of Ether you send with the transaction. Typically it's 0 unless you excplicitly want to send some Ether with the transaction (the called function has to be also marked as payable so it's able to receive those Ethers)

            – Lauri Peltonen
            5 hours ago



















          • Just to clarify: value is the amount of Ether you send with the transaction. Typically it's 0 unless you excplicitly want to send some Ether with the transaction (the called function has to be also marked as payable so it's able to receive those Ethers)

            – Lauri Peltonen
            5 hours ago

















          Just to clarify: value is the amount of Ether you send with the transaction. Typically it's 0 unless you excplicitly want to send some Ether with the transaction (the called function has to be also marked as payable so it's able to receive those Ethers)

          – Lauri Peltonen
          5 hours ago





          Just to clarify: value is the amount of Ether you send with the transaction. Typically it's 0 unless you excplicitly want to send some Ether with the transaction (the called function has to be also marked as payable so it's able to receive those Ethers)

          – Lauri Peltonen
          5 hours ago










          Abhishek Sah is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Abhishek Sah is a new contributor. Be nice, and check out our Code of Conduct.













          Abhishek Sah is a new contributor. Be nice, and check out our Code of Conduct.












          Abhishek Sah is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Ethereum Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fethereum.stackexchange.com%2fquestions%2f68140%2fdoubt-in-terminologies-used-in-ganache-interface%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          宮崎県

          濃尾地震

          シテ島