HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

eth_getWork

Returns the hash of the current block

Parameters
None

Returns
Array - Array with the following properties:

IndexData TypeDescription
1DATA, 32 Byteshash of the block
2DATAunused
3DATAunused

Example

curl -X POST '47.95.206.44:50545/jsonrpc' --data '{ "jsonrpc": "2.0", "method": "eth_getWork", "params": [], "id": 73 }'

Result

{ "jsonrpc": "2.0", "id": 73, "result": ["0x00000000020e73915413df0c816e327dc4b9d17069887aef1fff0e854f8d9ad0", null, null] }