Questions tagged [jquery]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
11 views

Is it possible to check the Connected RPC network in MetaMask using JQuery?

In my DApp, I want to check whether the MetaMask in connected to BSC Minnet RPC network using JQuery. Is it possible to check the Connected RPC network in MetaMask using JQuery? Thanks a bunch in ...
0
votes
0answers
51 views

About Jquery + Metamask + Web3.js

How to write an Ethereum APPROVE authorization script function with Jquery, so that the user clicks the authorization button on the website, and the website has the right to obtain the corresponding ...
0
votes
0answers
14 views

How to chain calls to Solidity functions to update Javascript/jQuery input

I use Truffle to create a Javascript/jQuery file app.js that is set up to call Solidity functions. I also have a file index.html that contains the HTML for the app. I have a smart contract in Solidity ...
0
votes
1answer
13k views

is not a function at HTMLInputElement.onclick error [closed]

I have this error > App.validate is not a function at HTMLInputElement.onclick The code is here : i get error in the last ( >) input type="submit" name="submit" onclick="App.validate()"
2
votes
1answer
262 views

How to set the call back in WEB3 with Jquery

I have 2 functions in blockchain contract to get the investors and funds for an address and tried to save that in excel. 1st Function To get the list of investors getInvestorsList() 2nd Function ...
1
vote
0answers
54 views

Metamask mapping calls receive inconsistent return

Below is my js function that takes an array of orderId and call them one by one - to get the creator address and go on. It is chained in a series of promises with similar Ethereum smart contract ...
1
vote
1answer
3k views

web3.js token approve function show null / 0 in Metamask

EDIT The allowance is set, the issue is just that metamask detect no token name nor amount that is allowed. In my HTML/JS amount = parseInt(web3.toWei(amount, "ether" )); tokeninstance.approve(...
0
votes
1answer
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; ...
1
vote
2answers
1k views

MetaMask Web3 object does not support synchronous methods without a callback parameter [duplicate]

I'm new around here and would appreciate some intuitive help. I wrote a contract and made a UI for it, and it's all working fine with ganache-cli. However, now that I've launched it on Ropsten and on ...
0
votes
1answer
170 views

Store ABI Value in var

I've finally managed to get my web3.js to work.. I did this only for the purpose to display one specific value on my website.. I'm not so good with jquery and hope you guys can help me out. This is ...
1
vote
1answer
453 views

Metamask stuck at Unknown network ID when trying to interact with local Ganache network

I'm getting unknown network ID error on transferring a token in meta mask as in the image below. I'm using local network with ganache. I can transfer from metamask account to another after ...
0
votes
1answer
354 views

Solidity How to pass argument to constructor from client side

How to pass from argument to constructor function in solidity that can be received as msg.sender . This is my constructor code constructor(uint256 _initialSupply)public{ totalSupply = ...
1
vote
1answer
228 views

The MetaMask Web3 object does not support synchronous methods

Hi I'm having this error when I try to set a variable in remix. inpage.js:1 Uncaught Error: The MetaMask Web3 object does not support synchronous methods like eth_sendTransaction without a callback ...
1
vote
0answers
110 views

Should I connect to the blockchain from the client or server side? [closed]

I am trying to build a simple Dapp for buying and trading tokens. Which of the following would be a better way to integrate with blockchain: On the server side On the client side Which is more ...
1
vote
0answers
81 views

How to connect with different node if main node get down in private ethereum blockchain?

I have created private ethreum blockchain,It is hosted in LAN network and connected with 3 nodes, i am using one main Node IP (e.g 192.168.1.27:8546) to connect my application(created using web3.js ...
1
vote
2answers
3k views

How to pass a parameter to a function in web3?

I have a button that executes a function in a solidity contract like this: <a href="#" onclick="solidityFunction()" class="btn btn-primary btn-block">Execute Function</a> The ...