ltc

Litecoin (LTC)

Method: POST sendtoaddress

dropdown

POST sendtoaddress

Method not allowed

Aamount is a real and is rounded to 8 decimal places.

Returns the transaction ID txid if successful.

Parameters

litecoinaddress - string, required

The litecoin address to send to.

amount - numeric or string, required

The amount in BTC to send. eg 0.1

comment - string, optional

A comment used to store what the transaction is for.

comment_to - string, optional

A comment to store the name of the person or organization

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": "sendtoaddress",
"params": [null, null, null, null],
"id": "getblock.io"}'


Response

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