Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Javascript API and library for Ethereum To develop applications on Ethereum, you can use the web3 object provided by the web3.js library. Under the hood it communicates to a local node through RPC calls. web3.js works with any Ethereum node, which exposes an RPC layer. https://github.com/ethereum/wiki/wiki/JavaScript-API
0
votes
Accepted
Connecting to MetaMask using Web3.js: Web3.givenProvider vs window.ethereum
I think Web3.givenProvider is no longer available in web3.js v4.x versions and window.ethereum should be used instead (see https://docs.web3js.org/guides/web3_providers_guide/#injected-providers). Sin …
2
votes
1
answer
80
views
Issue with Smart Contract Interaction using Web3.js 4.2.0: TransactionRevertedWithoutReasonE...
programming-language=typescript#step-7-interact-with-the-smart-contract-using-web3js), I initially used the following code to interact with the smart contract:
this.smartContract.methods.broadcastMessage …
2
votes
Accepted
Issue with Smart Contract Interaction using Web3.js 4.2.0: TransactionRevertedWithoutReasonE...
Referring to a Stack Overflow post (https://stackoverflow.com/a/77136409/13583700), I refactored the code as follows, and it successfully resolves the issue:
const gasEstimate = await this.smartContra …
0
votes
2
answers
633
views
Connecting to MetaMask using Web3.js: Web3.givenProvider vs window.ethereum
I am currently attempting to programmatically connect to MetaMask using Web3.js. I am following the Getting Started guide (https://web3js.readthedocs.io/en/v3.0.0-rc.5/getting-started.html), and the t …