Sochain Api

getAddress

Get address information.

Parameters

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

Returns LtcAddressDTO

getTx

Get transaction by hash.

Parameters

  • $0 Object
    • $0.apiKey
    • $0.sochainUrl
    • $0.network
    • $0.hash
  • sochainUrl string The sochain node url.
  • network string network id
  • hash string The transaction hash.

Returns Transactions

getTxs

Get transactions

Parameters

  • $0 Object
    • $0.apiKey
    • $0.address
    • $0.sochainUrl
    • $0.network
    • $0.page
  • sochainUrl string The sochain node url.
  • network string network id
  • hash string The transaction hash.

Returns Transactions

getBalance

Get address balance.

Parameters

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

Returns number

getUnspentTxs

Get unspent txs

Parameters

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

Returns Array<LtcAddressUTXO>