The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [frontend]

The user-facing part of an application. In a desktop application this would include the windowing framework and the forms the user interacts with; in a command line program it would be the available commands and arguments; and in a web app it would refer to the HTML and JavaScript.

Filter by
Sorted by
Tagged with
10
votes
2answers
610 views

Is there a tool that creates a basic HTML interface from an ABI?

I am looking for a tool that builds a basic interface for a contract so that I can use this generated HTML as a starting point to build the front end. I am aware that Mist, https://chriseth.github.io/...
5
votes
1answer
213 views

Can a user send a transaction using my website frontend with an account which is not in my node?

Can a user send a transaction using my website frontend with an account which is not in my node? The solution to this problem could be create an account for every user in my platform, but I think ...
5
votes
3answers
2k views

web3.eth.compile.solidity doesn't compile

I am trying to deploy a contract through my front-end via web3 API. However nothing appear to compile and there is no contract address or ABI to interact with the deployed contract (if it is deployed) ...
4
votes
3answers
526 views

Why is MeteorJS so popular for making dApps?

I am learning more about creating a front end that communicates with solidity contracts. At first, I was pointed in the direction of using ReactJS, but now I see many people talking about using ...
4
votes
2answers
2k views

How to connect Dapp front end to geth node

The very basics of the connection from front end to the contracts and how they can be invoked from front end code would help me a lot. Please share the code and basic steps also. And I am not using ...
3
votes
2answers
420 views

What is the standard way for a Dapp to locally store non-sensitive data?

I'm building a small Dapp which is structured like so: Every user who wishes to use the contract deploys a copy of the code. Individual contracts contain a small amount of information. Users can also ...
2
votes
3answers
337 views

Doesn't having a centralised front end pose a huge security risk to an Ethereum app?

My understanding is that the typical architecture for an Ethereum app is to have a smart contract acting as a backend to a centralized, stateless front end which runs on a single server. Doesn't this ...
2
votes
1answer
4k views

Call contract function with address and abi to return value to frontend

I've deployed the following contract to Ethereum testnet. contract demo { string public name = "someString"; function returnValue() constant returns (string){ return name; } } I ...
2
votes
2answers
461 views

Which frontend framework is the most Solidity/Ethereum friendly?

I'm coming from 10 years of freelance work using Rails & JQuery. I'm late to the Javascript jamboree of other frameworks, but I've been tinkering with Webpack and node (mainly using other dev's ...
2
votes
3answers
41 views

How to speed up data loading from the blockchain to the frontend?

I have a function that, according to the Unique ID of the car, gives me all its characteristics: function getCarArray(uint _carId) public view returns (uint[12] memory) ...
2
votes
1answer
187 views

Web3.js: how to efficiently load and display bunch of items from the Blockchain?

I am developing a DApp and I am struggling with the efficient loading from the blockchain and displaying in the frontend. I am loading all the items at once. When the list of the items grows very ...
2
votes
1answer
110 views

Function to return tuples throws error on frontend

I have similar functions like this and they work fine: function getBarsOfParticipant() external view returns (uint256[], uint16[], bool[]) { uint256[] barIds = participantToBarIds[msg.sender];...
2
votes
0answers
130 views

Frontend call --> Transaction does not go through, no error message displayed

I'm trying to build a frontend for my Dapp and first, I wanted to test if I can initiate a transaction at all. I have a Button which calls the storeInput() function. Then, it should invoke the ...
1
vote
1answer
239 views

Can I use Flutter or Android Studio to design front end instead of using react.js and still be able to interact with ethereum?

I am new to blockchain and currently learning solidity. I have understood the concept behind blockchain and solidity is also good so far. I can design mocha tests and deploy the contract on local ...
1
vote
1answer
363 views

How to retrieve length of array stored in mapping on frontend?

I have a contract with the following mapping: mapping (uint16 => uint256[]) public barLengthToBarIndexForSale; What's the best way to retrieve the length of an array for a given key on the ...
1
vote
2answers
709 views

Should an API call be in the Solidity backend or the Javascript frontend?

I am fairly new to blockchain development. I want to call a function in my contract when a condition in the API is true. Should I make this API call in my contract, or in my frontend?
1
vote
1answer
59 views

Windows: “npm install drizzle” command don't work, Why? [closed]

when i try to run the command "npm install drizzle" on my machine it don't work. i install drizzle-react and drizzle-react-components without problem but "npm install drizzle" don't work. Any ideas?
1
vote
1answer
86 views

Design Dapp with Kotlin front end

To develop Dapp using Kotlin programming language for the front end design, Where should I place this code? and what it should be changed? <script> // Connect a the web3 provider ...
1
vote
0answers
20 views

In windows, what do I type in powershell to connect my dApp to a liteserver? [closed]

In windows powershell, what do I type to connect metamask to a liteserver? >
1
vote
1answer
115 views

How we store end user details when we create ICO based ethereum DAPP? [closed]

I am new to ethereum blockchain.I want to create ICO based ERC20 token selling DAPP(Decentralized Application). I have created and deployed smart contract on ethereum private blockchain network and ...
1
vote
1answer
564 views

Is there an on-blockchain way to host the frontend of a Dapp? [duplicate]

I understand that the whole backend of a dapp can exist on the blockchain, but it still seems like you need something to serve the frontend UI to make it realistically usable. Are there any standards ...
0
votes
1answer
15 views

Query each struct of a Mapping vs looping getter function for front-end?

I have a mapping of structs and a counter variable to keep track of how many structs are stored in the mapping. For front-end development would you recommend to query each struct using the auto-...
0
votes
1answer
23 views

Can Dapps set cookies

Is it possible for a Dapp that uses the metamask/chrome to set up a browser cookie? or can a cookie set by another website like facebook, read some information or at least know that a dapp has been ...
0
votes
1answer
232 views

“The returned value is not a convertible string” (web3js & React front end)

Edit: to be clear, the getMessage() function works fine in remix. It just doesnt seem to work with my front end. I am trying to set up a front end for my contract but when trying to invoke a certain ...
0
votes
3answers
610 views

Keeping Backend databases in sync with blockchain transactions

I have created a solidity contract to store the states and the data of a Dapp but to power the frontend, I need different view of that data! While I can use solidity as my backend but I don't think it ...
0
votes
0answers
9 views

Is there any example of a drizzle-react dapp implementation that uses render props?

Render props were added after React 16.3 and the github readme for drizzle-react suggests to use them. The problem for is that there is no updated documentation (other then the small example in the ...
0
votes
1answer
31 views

Emited Solidity Events not being watched at frontend truffle contract instance

So, I have been reading through A LOT of pages about events in Solidity and how to interact with them on frontend but I am still pretty new to this and it seems like there have been multiple changes, ...
0
votes
0answers
30 views

Windows: command “npm install drizzle” give me an ERR!

npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support npm WARN deprecated tar.gz@1.0.7: ⚠️ WARNING ⚠️ `tar.gz module has been deprecated and your application is ...
0
votes
0answers
27 views

Why does return address(player) return a weird string?

I am trying to get the player's address through front end and when I run through the solidity function that should return the player's address, it would return ...
0
votes
1answer
1k views

How to develop an online ERC20 wallet

I'm looking for any tutorials on how to create my own token wallet. Example: Create token for website purchases I implement my own wallet for token and allow ppl to buy with token and redeem ...