⚡ We welcome businesses to test our enterprise-grade service

ltc
Litecoin (LTC)

Method: POST sendtoaddress

dropdown

方法 RPC sendtoaddress 例如 Litecoin (LTC)

POST sendtoaddress

方法不允许

Aamount 是实数,四舍五入到小数点后 8 位。

如果成功,则返回交易 ID txid。

Parameters

litecoinaddress - 字符串,必填

要发送到的莱特币地址。

amount - 数字或字符串,必填

要发送的 BTC 金额。例如 0.1

comment - 字符串,可选

用于存储事务用途的注释。

comment_to - 字符串,可选

用于存储个人或组织名称的注释

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"
}