Sochain Api

getAddress

Get address information.

Parameters

Returns LtcAddressDTO

getTx

Get transaction by hash.

Parameters

  • $0 Object
    • $0.sochainUrl
    • $0.network
    • $0.hash
  • sochainUrl 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

  • $0 Object
    • $0.sochainUrl
    • $0.network
    • $0.address
    • $0.startingFromTxId
  • sochainUrl string The sochain node url.
  • network string
  • address string

Returns Array<LtcAddressUTXO>

getSuggestedTxFee

Get Litecoin suggested transaction fee.

Returns number The Litecoin suggested transaction fee per bytes in sat.