How to extract the storage of a smart contract?How to get smart-contract storage data?How to specify the smart contract entry point in eztz call?How can I deploy a Michelson smart contract?How to upgrade a smart contract?Smart contract for bakerssmart contract for automatic baking/endorsement rewards to delegatorsHow to initialise a contract with storage (contract unit)How to get smart-contract storage data?Updating a existing contract with new code and storageCan I withdraw funds from an empty smart contract?Error while initializing storage in contract deployment

Would skyscrapers tip over if people fell sideways?

Can US Supreme Court justices / judges be "rotated" out against their will?

How far can gerrymandering go?

Why doesn't SpaceX land boosters in Africa?

The Lucas argument vs the theorem-provers -- who wins and why?

Is it OK to throw pebbles and stones in streams, waterfalls, ponds, etc.?

German idiomatic equivalents of 能骗就骗 (if you can trick, then trick)

What does 5d4 x 10 gp mean?

Listen to my Story...Let us find the Unique Invisible Pan Digital Pair

What was the first science fiction or fantasy multiple choice book?

Hard for me to understand one tip written in "The as-if rule" of cppreference

Do electrons really perform instantaneous quantum leaps?

Should Catholics in a state of grace call themselves sinners?

I just started; should I accept a farewell lunch for a coworker I don't know?

What are the children of two Muggle-borns called?

Does "boire un jus" tend to mean "coffee" or "juice of fruit"?

Why is exile often an intermediate step?

Fully submerged water bath for stove top baking?

ESTA Elegible after Qatar?

Automorphisms and epimorphisms of finite groups

Is leaving out prefixes like "rauf", "rüber", "rein" when describing movement considered a big mistake in spoken German?

Is this house-rule removing the increased effect of cantrips at higher character levels balanced?

Did the Russian Empire have a claim to Sweden? Was there ever a time where they could have pursued it?

Installed software from source, how to say yum not to install it from package?



How to extract the storage of a smart contract?


How to get smart-contract storage data?How to specify the smart contract entry point in eztz call?How can I deploy a Michelson smart contract?How to upgrade a smart contract?Smart contract for bakerssmart contract for automatic baking/endorsement rewards to delegatorsHow to initialise a contract with storage (contract unit)How to get smart-contract storage data?Updating a existing contract with new code and storageCan I withdraw funds from an empty smart contract?Error while initializing storage in contract deployment













3















How do I extract the storage data of a deployed smart contract? I am trying to read the storage data from the "free Ledger Nano S" contract KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ from the Tezos Foundation, because I am interested in how it works. The contract code is pretty straight forward. TzScan for example doesn't show the storage data, all it shows is Unit which in this case is not useful. The solution from an old question How to get smart-contract storage data? doesn't work anymore.










share|improve this question


























    3















    How do I extract the storage data of a deployed smart contract? I am trying to read the storage data from the "free Ledger Nano S" contract KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ from the Tezos Foundation, because I am interested in how it works. The contract code is pretty straight forward. TzScan for example doesn't show the storage data, all it shows is Unit which in this case is not useful. The solution from an old question How to get smart-contract storage data? doesn't work anymore.










    share|improve this question
























      3












      3








      3








      How do I extract the storage data of a deployed smart contract? I am trying to read the storage data from the "free Ledger Nano S" contract KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ from the Tezos Foundation, because I am interested in how it works. The contract code is pretty straight forward. TzScan for example doesn't show the storage data, all it shows is Unit which in this case is not useful. The solution from an old question How to get smart-contract storage data? doesn't work anymore.










      share|improve this question














      How do I extract the storage data of a deployed smart contract? I am trying to read the storage data from the "free Ledger Nano S" contract KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ from the Tezos Foundation, because I am interested in how it works. The contract code is pretty straight forward. TzScan for example doesn't show the storage data, all it shows is Unit which in this case is not useful. The solution from an old question How to get smart-contract storage data? doesn't work anymore.







      smart-contracts contract storage






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 21 at 12:40









      XTZST2OXTZST2O

      4312 silver badges9 bronze badges




      4312 silver badges9 bronze badges




















          2 Answers
          2






          active

          oldest

          votes


















          6














          In the command line



          ./tezos-client get script storage for KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ



          You could also just call the RPC



          curl http://localhost:8732/chains/main/blocks/head/context/contracts/KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ/storage






          share|improve this answer























          • This is of course assuming you are running a node by yourself. But this is what I was looking for. Thx 👍🏻

            – XTZST2O
            Jun 24 at 12:52


















          2














          Let's find the contract on Arronax and look at its code...



          storage unit;
          code CDR ;
          NIL operation ;
          AMOUNT ;
          PUSH mutez 0 ;
          COMPARE ; EQ ; IF SOURCE ; CONTRACT unit ; IF_NONE UNIT ; FAILWITH ; AMOUNT ; UNIT ; TRANSFER_TOKENS ; CONS ;
          PAIR


          ..you will see that nothing is effectively being stored in the contract, which is why you're just getting Unit.






          share|improve this answer



























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "698"
            ;
            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
            ,
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftezos.stackexchange.com%2fquestions%2f1358%2fhow-to-extract-the-storage-of-a-smart-contract%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            6














            In the command line



            ./tezos-client get script storage for KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ



            You could also just call the RPC



            curl http://localhost:8732/chains/main/blocks/head/context/contracts/KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ/storage






            share|improve this answer























            • This is of course assuming you are running a node by yourself. But this is what I was looking for. Thx 👍🏻

              – XTZST2O
              Jun 24 at 12:52















            6














            In the command line



            ./tezos-client get script storage for KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ



            You could also just call the RPC



            curl http://localhost:8732/chains/main/blocks/head/context/contracts/KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ/storage






            share|improve this answer























            • This is of course assuming you are running a node by yourself. But this is what I was looking for. Thx 👍🏻

              – XTZST2O
              Jun 24 at 12:52













            6












            6








            6







            In the command line



            ./tezos-client get script storage for KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ



            You could also just call the RPC



            curl http://localhost:8732/chains/main/blocks/head/context/contracts/KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ/storage






            share|improve this answer













            In the command line



            ./tezos-client get script storage for KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ



            You could also just call the RPC



            curl http://localhost:8732/chains/main/blocks/head/context/contracts/KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ/storage







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 21 at 12:57









            Arthur BArthur B

            2,9936 silver badges20 bronze badges




            2,9936 silver badges20 bronze badges












            • This is of course assuming you are running a node by yourself. But this is what I was looking for. Thx 👍🏻

              – XTZST2O
              Jun 24 at 12:52

















            • This is of course assuming you are running a node by yourself. But this is what I was looking for. Thx 👍🏻

              – XTZST2O
              Jun 24 at 12:52
















            This is of course assuming you are running a node by yourself. But this is what I was looking for. Thx 👍🏻

            – XTZST2O
            Jun 24 at 12:52





            This is of course assuming you are running a node by yourself. But this is what I was looking for. Thx 👍🏻

            – XTZST2O
            Jun 24 at 12:52











            2














            Let's find the contract on Arronax and look at its code...



            storage unit;
            code CDR ;
            NIL operation ;
            AMOUNT ;
            PUSH mutez 0 ;
            COMPARE ; EQ ; IF SOURCE ; CONTRACT unit ; IF_NONE UNIT ; FAILWITH ; AMOUNT ; UNIT ; TRANSFER_TOKENS ; CONS ;
            PAIR


            ..you will see that nothing is effectively being stored in the contract, which is why you're just getting Unit.






            share|improve this answer





























              2














              Let's find the contract on Arronax and look at its code...



              storage unit;
              code CDR ;
              NIL operation ;
              AMOUNT ;
              PUSH mutez 0 ;
              COMPARE ; EQ ; IF SOURCE ; CONTRACT unit ; IF_NONE UNIT ; FAILWITH ; AMOUNT ; UNIT ; TRANSFER_TOKENS ; CONS ;
              PAIR


              ..you will see that nothing is effectively being stored in the contract, which is why you're just getting Unit.






              share|improve this answer



























                2












                2








                2







                Let's find the contract on Arronax and look at its code...



                storage unit;
                code CDR ;
                NIL operation ;
                AMOUNT ;
                PUSH mutez 0 ;
                COMPARE ; EQ ; IF SOURCE ; CONTRACT unit ; IF_NONE UNIT ; FAILWITH ; AMOUNT ; UNIT ; TRANSFER_TOKENS ; CONS ;
                PAIR


                ..you will see that nothing is effectively being stored in the contract, which is why you're just getting Unit.






                share|improve this answer















                Let's find the contract on Arronax and look at its code...



                storage unit;
                code CDR ;
                NIL operation ;
                AMOUNT ;
                PUSH mutez 0 ;
                COMPARE ; EQ ; IF SOURCE ; CONTRACT unit ; IF_NONE UNIT ; FAILWITH ; AMOUNT ; UNIT ; TRANSFER_TOKENS ; CONS ;
                PAIR


                ..you will see that nothing is effectively being stored in the contract, which is why you're just getting Unit.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jun 22 at 13:11









                Arthur B

                2,9936 silver badges20 bronze badges




                2,9936 silver badges20 bronze badges










                answered Jun 21 at 19:13









                VishakhVishakh

                865 bronze badges




                865 bronze badges



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Tezos 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%2ftezos.stackexchange.com%2fquestions%2f1358%2fhow-to-extract-the-storage-of-a-smart-contract%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

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                    Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?