Skip to main content

Parameters

chainId
string
default:"tron"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"eth_submitWork"
required
JSON-RPC method name.
params
object
required
Parameters for eth_submitWork: [nonce, powHash, mixHash].Positional parameters for eth_submitWork:
  • params[0]: 8 Bytes - The nonce found (64 bits).
  • params[1]: 32 Bytes - The header’s pow-hash (256 bits)
  • params[2]: Data - 32 Bytes - The mix digest (256 bits).

Returns

result
boolean
Boolean - returns true if the provided solution is valid, otherwise false. Example: true.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=tron \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_submitWork",
    "params": [
      "0x0000000000000001",
      "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
      "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": true
}