⚡ We welcome businesses to test our enterprise-grade service

ltc
Litecoin (LTC)

Method: POST createrawtransaction

dropdown

Method RPC createrawtransaction example for Litecoin (LTC)

POST createrawtransaction

Creates a raw transaction spending given inputs.

Parameters

inputs - json array, required

A json array of json objects

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": "createrawtransaction",
"params": [[{"txid": "myid", "vout": 0}]],
"id": "getblock.io"}'


Response

null