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

0 votes
Apr 16 in Blockchain by anonymous

retagged Apr 16 by Omkar 129 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 by Omkar
• 67,380 points

Related Questions In Blockchain

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,020 points

edited Aug 10, 2018 by Omkar 462 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 ariaholic
• 7,340 points
455 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 ariaholic
• 7,340 points
397 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
138 views
0 votes
1 answer
+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,620 points
136 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 17, 2018 in Blockchain by sapan
57 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
• 67,380 points
39 views