Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
296 views

How to call external payable contract function from app.js (DApp)?

The contract has a function: function purchaseTokens() external payable { require(msg.value>0); ...etceteras... } What I need is an app.js part, something that would look like this (lets ...
Damir Olejar's user avatar
0 votes
1 answer
1k views

Calling a "view" function using web3js

--- HEAVILY EDITED --- Solidity contract: pragma solidity ^0.4.24; contract PatientRecords { struct Patient { string ID; string weight; string height; string diseasehistory; ...
Yakko Majuri's user avatar
0 votes
1 answer
469 views

Adding quotation marks to string before calling a function [closed]

Alright, so I'm not sure if I should be asking this here or HTML/JavaScript forums, so please do let me know if I am in the wrong place. I believe it belongs here as you all understand dApps and ...
Yakko Majuri's user avatar