Send Litecoin to blockchain addresses
POST {{baseUrl}}/v3/litecoin/transaction
10 credits per API call.
Send Litecoin to blockchain addresses. It is possible to build a blockchain transaction in 2 ways:
- fromAddress - assets will be sent from the list of addresses. For each of the addresses last 100 transactions will be scanned for any unspent UTXO and will be included in the transaction.
- fromUTXO - assets will be sent from the list of unspent UTXOs. Each of the UTXO will be included in the transaction.
There can be multiple recipients of the transactions, not only one. In the to section, every recipient address has it's corresponding amount. When the amount of funds, that should receive the recipient is lower than the number of funds from the UTXOs, the difference is used as a transaction fee.
This operation needs the private key of the blockchain address. Every time the funds are transferred, the transaction must be signed with the corresponding private key. No one should ever send it's own private keys to the internet because there is a strong possibility of stealing keys and losing funds. In this method, it is possible to enter privateKey or signatureId. PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production, Tatum KMS should be used for the highest security standards, and signatureId should be present in the request. Alternatively, using the Tatum client library for supported languages.
Request Body
{"fromAddress"=>[{"address"=>"2N9bBiH2qrTDrPCzrNhaFGdkNKS86PJAAAS", "privateKey"=>"cVX7YtgL5muLTPncHFhP95oitV1mqUUA5VeSn8HeCRJbPqipzobf"}], "to"=>[{"address"=>"2MzNGwuKvMEvKMQogtgzSqJcH2UW3Tc5oc7", "value"=>0.02969944}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"txId":"c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9"}