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

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form