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
2
votes
1answer
162 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
2answers
2k 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 ...
1
vote
1answer
1k 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 ...
0
votes
2answers
2k 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 ...
2
votes
0answers
137 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 ...
2
votes
1answer
331 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
3answers
369 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 ...
0
votes
3answers
1k 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 ...
1
vote
2answers
1k 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?
4
votes
3answers
634 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 ...
1
vote
1answer
775 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 ...
2
votes
1answer
5k 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 ...
5
votes
4answers
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) ...
3
votes
2answers
517 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 ...
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 ...
5
votes
1answer
234 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 ...
10
votes
2answers
786 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/...

1
2