Sochain Api

getAddress

Get address information.

Parameters

Returns LtcAddressDTO

getTx

Get transaction by hash.

Parameters

  • baseUrl string The sochain node url.
  • network string network id
  • hash string The transaction hash.

Returns Transactions

getBalance

Get address balance.

Parameters

Returns number

getUnspentTxs

Get unspent txs

Parameters

Returns LtcAddressUTXOs

broadcastTx

Broadcast transaction.

Parameters

Returns string Transaction ID.

litecoinStats

Get Litecoin stats.

Parameters

  • baseUrl string The sochain node url.

Returns ChainStatsLtc The Litecoin stats.