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
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
add a comment |
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
add a comment |
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
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
smart-contracts contract storage
asked Jun 21 at 12:40
XTZST2OXTZST2O
4312 silver badges9 bronze badges
4312 silver badges9 bronze badges
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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
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
add a comment |
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
.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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
.
add a comment |
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
.
add a comment |
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
.
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
.
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
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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