Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
ee2cef3b
Commit
ee2cef3b
authored
May 13, 2014
by
Maran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding new API test case html
parent
54eff2d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
test.html
ethereal/assets/util/test.html
+43
-0
No files found.
ethereal/assets/util/test.html
0 → 100644
View file @
ee2cef3b
<html>
<head>
<title>
Utils
</title>
</head>
<body
onload=
"init();"
>
<label>
Nonce for 2ef47100e0787b915105fd5e3f4ff6752079d5cb
</label>
<p
id=
"nonce"
></p>
<label>
Connected peers
</label>
<p
id=
"peers"
></p>
<label>
Is mining
</label>
<p
id=
"isMining"
></p>
<label>
Is listening
</label>
<p
id=
"isListen"
></p>
<label>
Coinbase
</label>
<p
id=
"coinbase"
></p>
<script
type=
"text/javascript"
>
function
init
()
{
eth
.
getTxCountAt
(
"2ef47100e0787b915105fd5e3f4ff6752079d5cb"
,
function
(
nonce
){
document
.
querySelector
(
"#nonce"
).
innerHTML
=
nonce
;
})
eth
.
getPeerCount
(
function
(
peerLength
){
document
.
querySelector
(
"#peers"
).
innerHTML
=
peerLength
;
})
eth
.
getIsMining
(
function
(
mining
){
document
.
querySelector
(
"#isMining"
).
innerHTML
=
mining
;
})
eth
.
getIsListening
(
function
(
listen
){
document
.
querySelector
(
"#isListen"
).
innerHTML
=
listen
;
})
eth
.
getCoinBase
(
function
(
address
){
document
.
querySelector
(
"#coinbase"
).
innerHTML
=
address
;
})
}
</script>
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment