JSON-RPC API
This document highlights all the details regarding ela json rpc interfaces. It follows json-rpc 2.0 protocol but also remains compatible with version 1.0. This that means both named and positional params are acceptable.
"id" is optional, which will be sent back in the result samely if you add it in a request - it's needed when you want to distinguish between different requests.
"jsonrpc" is optional and tells which version this request uses. In version 2.0, it's required, while in version 1.0, it doesn't exist.

getbestblockhash

Return the hash of the most recent block
result:
name
type
description
blockhash
string
the hash of the most recent block

Example

Request:
1
{
2
"jsonrpc": "2.0",
3
"method":"getbestblockhash",
4
"params": [],
5
"id": 1
6
}
Copied!
Response:
1
{
2
"id": 1,
3
"jsonrpc": "2.0",
4
"result": "68692d63a8bfc8887553b97f99f09e523d34a2b599bf5b388436b2ddc85ed76e",
5
"error": null
6
}
Copied!

getblockhash

Return the hash of the specific blockchain height.

Parameter

name
type
description
height
integer
the height of blockchain

Result

name
type
description
blockhash
string
the hash of the block

Example

Request:
1
{
2
"method":"getblockhash",
3
"params":{"height":1}
4
}
Copied!
Response:
1
{
2
"id": null,
3
"jsonrpc": "2.0",
4
"result": "3893390c9fe372eab5b356a02c54d3baa41fc48918bbddfbac78cf48564d9d72",
5
"error": null
6
}
Copied!

getblock

Return the block information of the specific blockchain hash.

Parameter

name
type
description
blockhash
string
the blockchain hash
verbosity
int
the verbosity of result, can be 0, 1, 2

Example

Request:
1
{
2
"method":"getblock",
3
"params":{
4
"blockhash":"f3a7469bb59452ab665f8b8870e1fb30e6a7181e2ea70f377e218d5b13cfa8ed",
5
"verbosity": 0},
6
}
Copied!
Response when verbosity is 0:
1
{
2
"error": null,
3
"id": null,
4
"jsonrpc": "2.0",
5
"result": "00000000c0433b918f500392869aa14cf7a909430fd94502b5c9f05421c9da7519bd6a65219184ea3c0a2973b90b8402c8405b76d7fbe10a268f6de7e4f48e93f5d03df7c31e095bffff7f2000000000d107000001000000010000000000000000000000000000000000000000000000000000000000000000000000002cfabe6d6d3ca6bcc86bada4642fea709731f1653bd34b28ab15b790e102e14e0d7bd138d80100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffff7f00000000000000000000000000000000000000000000000000000000000000000ce39baabcdbb4adce38c5f23314c5f63a536bbcc8f0a47c7054c36ca27f5acd771d095b00000000020000000101000000000403454c4101000846444170b0e427d2010000000000000000000000000000000000000000000000000000000000000000ffffffffffff02b037db964a231458d2d6ffd5ea18944c4f90e63d547c5d3b9874df66a4ead0a31b2913000000000000000000129e9cf1c5f336fcf3a6c954444ed482c5d916e506b037db964a231458d2d6ffd5ea18944c4f90e63d547c5d3b9874df66a4ead0a341b52c000000000000000000219e9cc4320c3018ced30242b25c03e13a1b2f57c7d107000000"
6
}
Copied!
Response when verbosity is 1:
name
type
description
hash
string
the blockchain hash
confirmations
integer
confirmations
size
integer
the size of a block in bytes
strippedsize
integer
equals to size
weight
integer
This block’s weight
height
integer
the height of block
version
integer
block header's version
versionhex
string
block header's version in hex format
merkleroot
string
the merkleroot hash of this block
tx
array[string]
transaction hashes of this block, in an array
time
integer
the Unix timestamp of this block
mediantime
integer
equals to time
nonce
integer
the nonce of this block
bits
integer
bits of this block
difficulty
string
difficulty of this block
chainwork
string
The estimated number of block header hashes miners had to check from the genesis block to this block, encoded as big-endian hex
previousblockhash
string
previous block hash
nextblockhash
string
next block hash
auxpow
string
Auxpow information in hex format
1
{
2
"id": null,
3
"error": null,
4
"jsonrpc": "2.0",
5
"result": {
6
"hash": "3893390c9fe372eab5b356a02c54d3baa41fc48918bbddfbac78cf48564d9d72",
7
"confirmations": 5156,
8
"strippedsize": 498,
9
"size": 498,
10
"weight": 1992,
11
"height": 1,
12
"version": 0,
13
"versionhex": "00000000",
14
"merkleroot": "764691821f937fd566bcf533611a5e5b193008ea1ba1396f67b7b0da22717c02",
15
"tx": [
16
"764691821f937fd566bcf533611a5e5b193008ea1ba1396f67b7b0da22717c02"
17
],
18
"time": 1524737598,
19
"mediantime": 1524737598,
20
"nonce": 0,
21
"bits": 545259519,
22
"difficulty": "1",
23
"chainwork": "00001423",
24
"previousblockhash": "8d7014f2f941caa1972c8033b2f0a860ec8d4938b12bae2c62512852a558f405",
25
"nextblockhash": "aa98305779686e66294a9b667e6ac77f5231bb2ce09fe7d9ca641775413ecb5a",
26
"auxpow": "01000000010000000000000000000000000000000000000000000000000000000000000000000000002cfabe6d6d3893390c9fe372eab5b356a02c54d3baa41fc48918bbddfbac78cf48564d9d720100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffff7f0000000000000000000000000000000000000000000000000000000000000000a19035123a440356c0a41a85fe26865620fb4c34dcf1b83b46b5e11efcbbdd893ea6e15a0000000000000000"
27
}
28
}
Copied!
Response when verbosity is 2:
result format except 'tx' is the same as it is when verbosity=1
result format in 'tx' please see interface 'getrawtransaction'
1
{
2
"error": null,
3
"id": null,
4
"jsonrpc": "2.0",
5
"result": {
6
"hash": "3ca6bcc86bada4642fea709731f1653bd34b28ab15b790e102e14e0d7bd138d8",
7
"confirmations": 1,
8
"strippedsize": 498,
9
"size": 498,
10
"weight": 1992,
11
"height": 2001,
12
"version": 0,
13
"versionhex": "00000000",
14
"merkleroot": "219184ea3c0a2973b90b8402c8405b76d7fbe10a268f6de7e4f48e93f5d03df7",
15
"tx": [
16
{
17
"txid": "219184ea3c0a2973b90b8402c8405b76d7fbe10a268f6de7e4f48e93f5d03df7",
18
"hash": "219184ea3c0a2973b90b8402c8405b76d7fbe10a268f6de7e4f48e93f5d03df7",
19
"size": 192,
20
"vsize": 192,
21
"version": 0,
22
"locktime": 2001,
23
"vin": [
24
{
25
"txid": "0000000000000000000000000000000000000000000000000000000000000000",
26
"vout": 65535,
27
"sequence": 4294967295
28
}
29
],
30
"vout": [
31
{
32
"value": "0.01255707",
33
"n": 0,
34
"address": "8VYXVxKKSAxkmRrfmGpQR2Kc66XhG6m3ta",
35
"assetid": "b037db964a231458d2d6ffd5ea18944c4f90e63d547c5d3b9874df66a4ead0a3",
36
"outputlock": 0
37
},
38
{
39
"value": "0.02929985",
40
"n": 1,
41
"address": "EXca4DJwqCXa6vbJmpovwatHiP8HRTVS1Z",
42
"assetid": "b037db964a231458d2d6ffd5ea18944c4f90e63d547c5d3b9874df66a4ead0a3",
43
"outputlock": 0
44
}
45
],
46
"blockhash": "3ca6bcc86bada4642fea709731f1653bd34b28ab15b790e102e14e0d7bd138d8",
47
"confirmations": 1,
48
"time": 1527324355,
49
"blocktime": 1527324355,
50
"type": 0,
51
"payloadversion": 4,
52
"payload": {
53
"CoinbaseData": "ELA"
54
},
55
"attributes": [
56
{
57
"usage": 0,
58
"data": "46444170b0e427d2"
59
}
60
],
61
"programs": []
62
}
63
],
64
"time": 1527324355,
65
"mediantime": 1527324355,
66
"nonce": 0,
67
"bits": 545259519,
68
"difficulty": "1",
69
"chainwork": "00000000",
70
"previousblockhash": "c0433b918f500392869aa14cf7a909430fd94502b5c9f05421c9da7519bd6a65",
71
"nextblockhash": "0000000000000000000000000000000000000000000000000000000000000000",
72
"auxpow": "01000000010000000000000000000000000000000000000000000000000000000000000000000000002cfabe6d6d3ca6bcc86bada4642fea709731f1653bd34b28ab15b790e102e14e0d7bd138d80100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffff7f00000000000000000000000000000000000000000000000000000000000000000ce39baabcdbb4adce38c5f23314c5f63a536bbcc8f0a47c7054c36ca27f5acd771d095b0000000002000000"
73
}
74
}
Copied!

getblockcount

Get block count

Example

Request:
1
{
2
"method":"getblockcount"
3
}
Copied!
Response:
1
{
2
"jsonrpc": "2.0",
3
"id": null,
4
"error": null,
5
"result": 171454
6
}
Copied!

getrawtransaction

Get transaction information of the given transaction hash.

Parameter

name
type
description
txid
string
transaction hash
verbose
bool
verbose of result

Results

name
type
description
txid
string
transaction id
hash
string
transaction id
size
integer
transaction size
vsize
integer
The virtual transaction size, equals to size
version
integer
The transaction format version number
locktime
integer
The transaction’s locktime
sequence
integer
The transaction’s sequence number
vin
array
input utxo vector of this transaction
n
integer
index of utxo outputs
vout
array
output utxo vector of this transaction
assetid
string
asset id
outputlock
string
outputlock of this transaction

Example

Request:
1
{
2
"method": "getrawtransaction",
3
"params": ["caa0d52ea2b90a08480834b97c271a8b847aadf90057318a33ccc8674b77c796"]
4
}
Copied!
Response when verbosity is ture:
1
{
2
"id": null,
3
"error": null,
4
"jsonrpc": "2.0",
5
"result": {
6
"txid": "6864bbf52a3e140d40f1d707bae31d006265efc54dcb58e34037645060ce3e16",
7
"hash": "6864bbf52a3e140d40f1d707bae31d006265efc54dcb58e34037645060ce3e16",
8
"size": 192,
9
"vsize": 192,
10
"version": 0,
11
"locktime": 1000,
12
"vin": [
13
{
14
"txid": "0000000000000000000000000000000000000000000000000000000000000000",
15
"vout": 65535,
16
"sequence": 4294967295
17
}
18
],
19
"vout": [
20
{
21
"value": "0.01255707",
22
"n": 0,
23
"address": "8VYXVxKKSAxkmRrfmGpQR2Kc66XhG6m3ta",
24
"assetid": "b037db964a231458d2d6ffd5ea18944c4f90e63d547c5d3b9874df66a4ead0a3",
25
"outputlock": 0
26
},
27
{
28
"value": "0.02929985",
29
"n": 1,
30
"address": "ENTogr92671PKrMmtWo3RLiYXfBTXUe13Z",
31
"assetid": "b037db964a231458d2d6ffd5ea18944c4f90e63d547c5d3b9874df66a4ead0a3",
32
"outputlock": 0
33
}
34
],
35
"blockhash": "0000000000000000000000000000000000000000000000000000000000000000",
36
"confirmations": 4158,
37
"time": 1524737766,
38
"blocktime": 1524737766,
39
"type": 0,
40
"payloadversion": 4,
41
"payload": {
42
"CoinbaseData": "ELA"
43
},
44
"attributes": [
45
{
46
"usage": 0,
47
"data": "b52165c186769037"
48
}
49
],
50
"programs": []
51
}
52
}
Copied!
Response when verbosity is false:
1
{
2
"error": null,
3
"id": null,
4
"jsonrpc": "2.0",
5
"result": "000403454c4101000846444170b0e427d2010000000000000000000000000000000000000000000000000000000000000000ffffffffffff02b037db964a231458d2d 6ffd5ea18944c4f90e63d547c5d3b9874df66a4ead0a31b2913000000000000000000129e9cf1c5f336fcf3a6c954444ed482c5d916e506b037db964a231458d2d6ffd 5ea18944c4f90e63d547c5d3b9874df66a4ead0a341b52c000000000000000000219e9cc4320c3018ced30242b25c03e13a1b2f57c7d107000000"
6
}
Copied!

getrawmempool

Return hashes of transactions in the memory pool.

Example

Request:
1
{
2
"method":"getrawmempool"
3
}
Copied!
Response:
1
{
2
"error": null,
3
"id": null,
4
"jsonrpc": "2.0",
5
"result":["5da460632a154fe75df0d5ec98560e4bc1115374a37a75e984a534f8da3ca941", "5da460632a154fe75df0d5ec98560e4bc1115374a37a75e984a534f8da3ca941"]
6
}
Copied!
Request:
1
{
2
"method":"getrawmempool",
3
"params":{
4
"state":"all"
5
}
6
}
Copied!
Response:
1
{
2
"jsonrpc": "2.0",
3
"result": [
4
{
5
"txid": "7bc35c1bb5d21c74cb94b73e2774c1be77a460b7ba1a5d8e73baa1721bb8c98d",
6
"hash": "7bc35c1bb5d21c74cb94b73e2774c1be77a460b7ba1a5d8e73baa1721bb8c98d",
7
"size": 369,
8
"vsize": 369,
9
"version": 0,
10
"type": 5,
11
"payloadversion": 0,
12
"payload": {
13
"blockheight": 366174,
14
"sideblockhash": "50e95c5452808282249827971def9b6d01a83a62251aada221b20ea66755f44b",
15
"sidegenesishash": "a3c455a90843db2acd22554f2768a8d4233fafbf8dd549e6b261c2786993be56",
16
"signature": "fdcb69746140a2c9b42c91642e5f887c7859c3709c189a83ed09ac2305d524d66e3b77dff3e9c070323d312afb8efedc60ce41c12e6684e0db5088bad1683a92"
17
},
18
"attributes": [
19
{
20
"usage": 0,
21
"data": "38303631373539313233303934363232343938"
22
}
23
],
24
"vin": [
25
{
26
"txid": "754552520bbc5241fe5e59aae333a7e72d65c1d4ecec3a123cab3c773186a6b2",
27
"vout": 0,
28
"sequence": 0
29
}
30
],
31
"vout": [
32
{
33
"value": "0.00300000",
34
"n": 0,
35
"address": "EfJDXdRiPk8aiSFwQ4Wf6BCddxgLS4o5hG",
36
"assetid": "a3d0eaa466df74983b5d7c543de6904f4c9418ead5ffd6d25814234a96db37b0",
37
"outputlock": 0,
38
"type": 0,
39
"payload": null
40
}
41
],
42
"locktime": 688434,
43
"programs": [
44
{
45
"code": "21036eac18a8fe9722f5afee095334b3970496a92024f832530a51f6f1faba36a881ac",
46
"parameter": "407943915fb2d4938479757dea9cd75e957a9bfe9b45fd973139dd101e1ce4cba3520360ecb2a5da90652fbe05682bb6c7548075225effc87aadc272c27eddcc83"
47
}
48
],
49
"blockhash": "",
50
"confirmations": 0,
51
"time": 0,
52
"blocktime": 0
53
}
54
],
55
"id": null,
56
"error": null
57
}
Copied!

getreceivedbyaddress

Get the balance of an address

Parameter

name
type
description
address
string
address

Example

Request:
1
{
2
"method": "getreceivedbyaddress",
3
"params":{"address": "8VYXVxKKSAxkmRrfmGpQR2Kc66XhG6m3ta"}
4
}
Copied!
Response:
1
{
2
"error": null,
3
"id": null,
4
"jsonrpc": "2.0",
5
"result": "33000000"
6
}
Copied!

listunspent

List all utxo of given addresses

Parameter

name
type
description
addresses
array[string]
addresses
utxotype
string
the utxo type
If not set, utxotype will use "mixed" as default value. If you set utxotype to "mixed" or not set will get all utxos ignore the type if set utxotype to "vote" will get vote utxos if set utxotype to "normal" will get normal utxos without vote

Example

Request:
1
{
2
"method":"listunspent",
3
"params":{"addresses": ["8ZNizBf4KhhPjeJRGpox6rPcHE5Np6tFx3", "EeEkSiRMZqg5rd9a2yPaWnvdPcikFtsrjE"]}
4
}
Copied!
Response:
1
{
2
"error": null,
3
"id": null,
4
"jsonrpc": "2.0",
5
"result": [
6
{
7
"assetid": "a3d0eaa466df74983b5d7c543de6904f4c9418ead5ffd6d25814234a96db37b0",
8
"txid": "9132cf82a18d859d200c952aec548d7895e7b654fd1761d5d059b91edbad1768",
9
"vout": 0,
10
"address": "8ZNizBf4KhhPjeJRGpox6rPcHE5Np6tFx3",
11
"amount": "33000000",
12
"confirmations": 1102,
13
"outputlock": 0
14
},
15
{
16
"assetid": "a3d0eaa466df74983b5d7c543de6904f4c9418ead5ffd6d25814234a96db37b0",
17
"txid": "3edbcc839fd4f16c0b70869f2d477b56a006d31dc7a10d8cb49bd12628d6352e",
18
"vout": 0,
19
"address": "8ZNizBf4KhhPjeJRGpox6rPcHE5Np6tFx3",
20
"amount": "0.01255707",
21
"confirmations": 846,
22
"outputlock": 0
23
}
24
]
25
}
Copied!

setloglevel

Set log level

Parameter

name
type
description
level
integer
the log level

Example

Request:
1
{
2
"method": "setloglevel",
3
"params": {
4
"level": 0
5
}
6
}
Copied!
Response:
1
{
2
"id": null,
3
"jsonrpc": "2.0",
4
"error": null,
5
"result": "log level has been set to 0"
6
}
Copied!

getconnectioncount

Get peer's count of this node

Example

Request:
1
{
2
"method": "getconnectioncount"
3
}
Copied!
Response:
1
{
2
"id": null,
3
"error": null,
4
"jsonrpc": "2.0",
5
"result": 0
6
}
Copied!

getneighbors

Get peer's info

Example

Request:
1
{
2
"method":"getneighbors"
3
}
Copied!
Response:
1
{
2
"error": null,
3
"id": null,
4
"jsonrpc": "2.0",
5
"result": [
6
"127.0.0.1:64890 (inbound)",
7
"127.0.0.1:64880 (inbound)",
8
"127.0.0.1:64822 (inbound)",
9
"127.0.0.1:22338 (outbound)",
10
"127.0.0.1:23338 (outbound)",
11
"127.0.0.1:24338 (outbound)"
12
]
13
}
Copied!

getnodestate

Get node state

Result

name
type
description
compile
string
node's compile version
height
integer
current height of local node
version
integer
peer-to-peer network protocol version of this node
services
string
the services provided by this node
port
integer
P2P network port
rpcport
integer
JSON-RPC service port
restport
integer
RESTful service port
wsport
integer
webservice port
neighbors
array[neighbor]
neighbor nodes information
neighbor:
name
type
description
netaddress
string
network address of the neighbor in host:port format
services
string
the services neighbor provides
relaytx
bool
relay transactions to the neighbor or not
lastsend
string
the last time send a message to the neighbor
lastrecv
string
the last time received a message from the neighbor
conntime
string
the time when this neighbor was connected
timeoffset
integer
time offset between local time and the time advertised by the neighbor
version
integer
peer-to-peer network version advertised by the neighbor
inbound
bool
the connection direction of the neighbor (inbound/outbound)
startingheight
integer
the height advertised by the neighbor when connected
lastblock
integer
the height of the last block advertised by the neighbor
lastpingtime
string
the last time send a ping message to the neighbor
lastpingmicros
integer
microseconds to receive pong message after sending last ping message

Example

Request:
1
{
2
"method":"getnodestate"
3
}
Copied!
Response:
1
{
2
"error": null,
3
"id": null,
4
"jsonrpc": "2.0",
5
"result": {
6
"compile": "v0.2.2-231-g75d2-dirty",
7
"height": 0,
8
"version": 20000,
9
"services": "SFNodeNetwork|SFTxFiltering|SFNodeBloom",
10
"port": 21338,
11
"rpcport": 21336,
12
"restport": 21334,
13
"wsport": 21335,
14
"neighbors": [
15
{
16
"netaddress": "127.0.0.1:57656",
17
"services": "SFNodeNetwork|SFTxFiltering|SFNodeBloom",
18
"relaytx": false,
19
"lastsend": "2019-03-06 14:52:03 +0800 CST",
20
"lastrecv": "2019-03-06 14:52:18 +0800 CST",
21
"conntime": "2019-03-06 14:51:33.65298 +0800 CST m=+36.604516146",
22
"timeoffset": 0,
23
"version": 20000,
24
"inbound": true,
25
"startingheight": 0,
26
"lastblock": 0,
27
"lastpingtime": "2019-03-06 14:52:03.658121 +0800 CST m=+66.609840707",
28
"lastpingmicros": 1033
29
},
30
{
31
"netaddress": "127.0.0.1:22338",
32
"services": "SFNodeNetwork|SFTxFiltering|SFNodeBloom",
33
"relaytx": false,
34
"lastsend": "2019-03-06 14:52:02 +0800 CST",
35
"lastrecv": "2019-03-06 14:52:02 +0800 CST",
36
"conntime": "2019-03-06 14:51:02.097149 +0800 CST m=+5.048492921",
37
"timeoffset": 0,
38
"version": 20000,
39
"inbound": false,
40
"startingheight": 0,
41
"lastblock": 0,
42
"lastpingtime": "2019-03-06 14:52:02.104806 +0800 CST m=+65.056516088",
43
"lastpingmicros": 541
44
}
45
]
46
}
47
}
Copied!

sendrawtransaction

Send a raw transaction to node

Parameter

name
type
description
data
string
raw transaction data in hex

Result

name
type
description
hash
string
transaction hash

Example

Request:
1
{
2
"method":"sendrawtransaction",
3
"params": ["xxxxxx"]
4
}
Copied!
Response:
1
{
2
"result":"764691821f937fd566bcf533611a5e5b193008ea1ba1396f67b7b0da22717c02",
3
"id": null,
4
"jsonrpc": "2.0",
5
"error": null
6
}
Copied!

togglemining

The switch of mining

Parameter

name
type
description
mining
bool
whether mine or not

Example

Request:
1
{
2
"method":"togglemining",
3
"params":{"mining":false}
4
}
Copied!
Response:
1
{
2
"id": null,
3
"jsonrpc": "2.0",
4
"result": "mining stopped",
5
"error": null
6
}
Copied!

discretemining

Generate one or more blocks instantly

Parameter

name
type
description
count
integer
count of blocks

Example

Request:
1
{
2
"method":"discretemining",
3
"params":{"count":1}
4
}
Copied!
Response:
1
{
2
"id": null,
3
"jsonrpc": "2.0",
4
"result": [
5
"741d8131f0eea94c1c72c8bb1f0e9051a0a98441e131585bf5bf01868bf0ef46"
6
],
7
"error": null
8
}
Copied!

getmininginfo

Returns a json object containing mining-related information

Result

name
type
description
blocks
integer
the current block
currentblocktx
integer
the number of block transactions of the last assembled block
difficulty
string
the current difficulty
networkhashps
string
the network hashes per second
pooledtx
integer
the size of the mempool
chain
string
current network name

Example

Request:
1
{
2
"method":"getmininginfo",
3
"params":{}
4
}
Copied!
Response:
1
{
2
"error": null,
3
"id": null,
4
"jsonrpc": "2.0",
5
"result": {
6
"blocks": 397720,
7
"currentblocktx": 7,
8
"difficulty": "1553768014955882",
9
"networkhashps": "27618978773646499814",
10
"pooledtx": 0,
11
"chain": "mainnet"
12
}
13
}
Copied!

createauxblock

Generate an auxiliary block

Parameter

name
type
description
paytoaddress
string
miner's address

Example

Request:
named arguments:
1
{
2
"method":"createauxblock",
3
"params":{"paytoaddress":"Ef4UcaHwvFrFzzsyVf5YH4JBWgYgUqfTAB"}
4
}
Copied!
positional arguments:
1
{
2
"method": "createauxblock",
3
"params": ["Ef4UcaHwvFrFzzsyVf5YH4JBWgYgUqfTAB"]
4
}
Copied!
Response:
1
{
2
"error": null,
3
"id": null,
4
"jsonrpc": "2.0",
5
"result": {
6
"chainid": 1224,
7
"height": 152789,
8
"coinbasevalue": 175799086,
9
"bits": "1d36c855",
10
"hash": "e28a262b38316fddefb0b5c753f7cc0022afe94e95f881576ad6b8f33f4e49fe",
11
"previousblockhash": "f297d03791f4cf2c6ef093b02a77465ea876b040b7772e56b8e140f3bff73871"
12
}
13
}
Copied!

submitauxblock

Submit the solved auxpow of an auxiliary block

Parameter

name
type
description
blockhash
string
the auxiliary block hash
auxpow
string
the solved auxpow of this auxiliary block

Example

Request:
named arguments sample:
1
{
2
"method":"submitauxblock",
3
"params":{
4
"blockhash": "7926398947f332fe534b15c628ff0cd9dc6f7d3ea59c74801dc758ac65428e64",
5
"auxpow": "02000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4b0313ee0904a880495b742f4254432e434f4d2ffabe6d6d9581ba0156314f1e92fd03430c6e4428a32bb3f1b9dc627102498e5cfbf26261020000004204cb9a010f32a00601000000000000ffffffff0200000000000000001976a914c0174e89bd93eacd1d5a1af4ba1802d412afc08688ac0000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90000000014acac4ee8fdd8ca7e0b587b35fce8c996c70aefdf24c333038bdba7af531266000000000001ccc205f0e1cb435f50cc2f63edd53186b414fcb22b719da8c59eab066cf30bdb0000000000000020d1061d1e456cae488c063838b64c4911ce256549afadfc6a4736643359141b01551e4d94f9e8b6b03eec92bb6de1e478a0e913e5f733f5884857a7c2b965f53ca880495bffff7f20a880495b"
6
}
7
}
Copied!
positional arguments sample:
1
{
2
"method":"submitauxblock",
3
"params":[
4
"7926398947f332fe534b15c628ff0cd9dc6f7d3ea59c74801dc758ac65428e64",
5
"02000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4b0313ee0904a880495b742f4254432e434f4d2ffabe6d6d9581ba0156314f1e92fd03430c6e4428a32bb3f1b9dc627102498e5cfbf26261020000004204cb9a010f32a00601000000000000ffffffff0200000000000000001976a914c0174e89bd93eacd1d5a1af4ba1802d412afc08688ac0000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90000000014acac4ee8fdd8ca7e0b587b35fce8c996c70aefdf24c333038bdba7af531266000000000001ccc205f0e1cb435f50cc2f63edd53186b414fcb22b719da8c59eab066cf30bdb0000000000000020d1061d1e456cae488c063838b64c4911ce256549afadfc6a4736643359141b01551e4d94f9e8b6b03eec92bb6de1e478a0e913e5f733f5884857a7c2b965f53ca880495bffff7f20a880495b"
6
]
7
}
Copied!
Response: