| Request API Key | |
|
|
| Basic APIs |
|
Address Balance Returns amount ever received minus amount ever sent by a given address. URL https://ltcchain.com/api/{api-key}/balance/{address} Example https://ltcchain.com/api/Z6exHksPXM/balance/La2tH4JFA4Lj6E4EsGBBqrdbTnCMurjkDu Address Total Received Returns the amount ever received by a given address. including unconfirmed transactions. URL https://ltcchain.com/api/{api-key}/received/{address} Example https://ltcchain.com/api/Z6exHksPXM/received/La2tH4JFA4Lj6E4EsGBBqrdbTnCMurjkDu Address Confirmed Total Received Returns the amount ever received by a given address. only confirmed transactions. URL https://ltcchain.com/api/{api-key}/confirmed/{address} Example https://ltcchain.com/api/Z6exHksPXM/confirmed/La2tH4JFA4Lj6E4EsGBBqrdbTnCMurjkDu Address Info Returns the information for a given address. URL https://ltcchain.com/api/{api-key}/addressinfo/{address}/{noTxList} Example https://ltcchain.com/api/Z6exHksPXM/addressinfo/La2tH4JFA4Lj6E4EsGBBqrdbTnCMurjkDu/0 Address Transactions Returns the transactions for a given address. URL https://ltcchain.com/api/{api-key}/txs/{address}/{page-num} Example https://ltcchain.com/api/Z6exHksPXM/txs/La2tH4JFA4Lj6E4EsGBBqrdbTnCMurjkDu/1 Address UTXOs Returns the unspent transaction outputs for a given address. URL https://ltcchain.com/api/{api-key}/utxo/{address} Example https://ltcchain.com/api/Z6exHksPXM/utxo/La2tH4JFA4Lj6E4EsGBBqrdbTnCMurjkDu Transaction Info Returns the information for a given transaction id. URL https://ltcchain.com/api/{api-key}/txid/{transaction} Example https://ltcchain.com/api/Z6exHksPXM/txid/59a102ae40ade48fcda99eb9c5f7e3c5199a159e77ea32dd821967474f6064ac Generate a New Address Returns random address with the private key. URL https://ltcchain.com/api/{api-key}/getnewaddress |
| Blockchain APIs |
|
Recent-Block Height Returns the latest block height in the chain. URL https://ltcchain.com/api/{api-key}/height Recent-Block Info Returns the latest block in the chain. URL https://ltcchain.com/api/{api-key}/block Recent X Blocks Info Returns information about the latest {num} blocks in the chain. URL https://ltcchain.com/api/{api-key}/blocks/{num} Block Info Returns the information for a given block hash. URL https://ltcchain.com/api/{api-key}/blockinfo/{block} Example https://ltcchain.com/api/Z6exHksPXM/blockinfo/44bf14fb9a3587b60c153965d2770e6c3ae3efeb07a4743870821a2ac9b231cb Difficulty Returns the last solved block's difficulty. URL https://ltcchain.com/api/{api-key}/difficulty Chain Info Returns information about the chain. URL https://ltcchain.com/api/{api-key}/getinfo Mempool Returns transactions from the mempool. URL https://ltcchain.com/api/{api-key}/mempool/{show-details} Example https://ltcchain.com/api/Z6exHksPXM/mempool/0 |
| Push Raw Transaction |
|
Send a Raw Transaction Push raw transaction onto network. URL https://ltcchain.com/api/{api-key}/rawtx/{raw} Example https://ltcchain.com/api/Z6exHksPXM/rawtx/xxxxx-raw-data-xxxxx Decode Raw Transaction Read content of the raw transaction. URL https://ltcchain.com/api/{api-key}/decode/{raw} Example https://ltcchain.com/api/Z6exHksPXM/decode/xxxxx-raw-data-xxxxx |
| Create / Send a Transaction | ||||||||||||||
|
rawtx-build Build raw transaction by a given address key & outputs data. URL https://ltcchain.com/api/{api-key}/rawtxbuild/pkey/toaddress/amount/fees/send Parameters Example:
https://ltcchain.com/api/Z6exHksPXM/rawtxbuild/T4AYG2....PeZXQa/LYa4BC1YEkxhVMH4sJhee6FEXevNZ4QjBh/0.001/0.000007/0/For+Testing |
||||||||||||||