⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
ltc
Litecoin (LTC)

Method: POST getwork

dropdown

# getwork example for Litecoin (LTC)

POST getwork

Method not allowed

If data is not specified, returns formatted hash data to work on midstate, data, hash1, target.

If data is specified, tries to solve the block and returns true if it was successful.

Parameters

data - string, optional

Data

Request

curl --location --request POST 'https://ltc.getblock.io/mainnet/' \ 
--header 'x-api-key: YOUR-API-KEY' \ 
--header 'Content-Type: application/json' \ 
--data-raw '{"jsonrpc": "2.0",
"method": "getwork",
"params": [null],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}