Comments (4)
I wrote script:
async function test() {
await web3.setProvider('my node'); // shard 1, https://api.harmony.one is not correct, because shard 0
let abi = [
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"type": "function"
},
{
"inputs": [],
"payable": false,
"type": "constructor"
}
];
console.log('balance', await web3.eth.getBalance('0xFc1AC22d172C782747E8337908923Cc19a421acF')); // is owner, for check node connection
let MyContract = await new web3.eth.Contract(abi, '0xefcaC5a8B9ff964EA46705840fe3dD137ae3308E');
let owner = await MyContract.methods.owner().call();
console.log("owner = ", owner);
}
test();
from explorer-v2-frontend.
I have some contracts... for example, you can see in attach another address
from explorer-v2-frontend.
I'll take a look at this
from explorer-v2-frontend.
@gogolevdms this should now be fixed, please check it out. I verified with a simpletoken contract.
from explorer-v2-frontend.
Related Issues (20)
- Add info for 0x addresses like USDT & Binance Gateway
- Wallet count is not updating HOT 2
- Conflicting `from` and `to` fields HOT 2
- How to use HOT 1
- Addresses with Injected Checksum
- Metamask estimateGas() for claiming and sending
- support account labelling function on explorer HOT 3
- .
- Overlapping stat bar charts when using the explorer on ipad
- Issue with viewing verified proxy contracts
- Internal tab - Pagination bug HOT 2
- Enhancement "Nice to haves" Checklist HOT 2
- Feature: Way to switch block number info
- Add new charts HOT 1
- Cosmetic bug in transaction result HOT 3
- [Feature] Turn on GET based API requests for the Explorer, Just like all Major Chains HOT 1
- address page seen as a contract page
- Show all transfers of selected token
- Different addressAliasMap.json for different networks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from explorer-v2-frontend.