How can i import the csv excel files into my contract and record the transaction

0 votes
Apr 16, 2019 in Blockchain by anonymous

retagged Apr 16, 2019 by Omkar 3,612 views

1 answer to this question.

0 votes

You can not directly import an excel/csv file in your smart contracts but you have a few workarounds:

  1. Convert the data in the csv file into JSON file and use the JSON format in Smart Contracts. (Refer: https://www.blockchain.com/de/api/blockchain_api)
  2. Process the data in the csv file using client-side script like Javascript and then send this processed data to smart contract.
  3. Use Oraclize 
answered Apr 16, 2019 by Omkar
• 69,220 points

Related Questions In Blockchain

0 votes
0 answers
0 votes
1 answer

How can I deploy a HelloWorld contract on my testrpc network?

The problem lies in the command: truffle migrate Your truffle migrate command ...READ MORE

answered Apr 27, 2018 in Blockchain by Perry
• 17,100 points

edited Aug 10, 2018 by Omkar 2,825 views
+1 vote
1 answer

How can I add image into my Hyperledger instance

In your registry, you can Base64-ify your ...READ MORE

answered Jun 8, 2018 in Blockchain by aryya
• 7,460 points
1,979 views
0 votes
1 answer

Where can I find the reference format for crypto-config.yaml and configtx.yaml Hyperledger Fabric files?

The sample config files in the Hyperledger Fabric main ...READ MORE

answered Jun 27, 2018 in Blockchain by aryya
• 7,460 points
1,376 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,908 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,437 views
+3 votes
2 answers

How to run ethereumjs using Node.JS

You need to install testrpc globally on ...READ MORE

answered Mar 27, 2018 in Blockchain by ned_crew
• 1,610 points
1,381 views
+1 vote
2 answers

Can I include real world data in a smart contract? If so, how?

You cant access/embed real world data using ...READ MORE

answered Jul 18, 2018 in Blockchain by sapan
1,136 views
0 votes
1 answer

How can I inject and use this javascript library (web3) with JavascriptCore

The web3.js library has dependencies on bignumber.js and crypto-js.js (See dependencies here). You will ...READ MORE

answered Oct 8, 2018 in Blockchain by Omkar
• 69,220 points
942 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP