Im trying to store data directly on the blockchain, not on a smartcountract as they have a limit of what they can handle and it would slow down the chain to go above the limit.

My initial plan is to use mapping but I can't find confirmation if mapping uses available space on the chain or in the smartcontract.

If mapping does store on the smartcontract what functionality can I use to store data directly on the blockchain?

  • 1
    "directly on the blockchain, not on a smartcountract"??? Be sure you know what you're saying. The only information "not on a smartcontract" is ether balance! Jun 28 '20 at 19:40
  • Well, nonce too... Jun 28 '20 at 19:45
  • 1
    Well you can send data in a transaction even if it doesn't go to a contract.. Jun 28 '20 at 19:54
  • @LauriPeltonen: Hmmm, interesting... But the transaction will likely revert, unless that data represents an encoded function call, AND that function is viable at the address indicated in the to field of the transaction... right? Jun 28 '20 at 20:07
  • Im working on a private chain not the main network so I should be able to store whatever data I want on the blocks I thought Jun 29 '20 at 1:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.