Create Litecoin Client
use BlockSDK;
$blockSDK = new BlockSDK("YOU_TOKEN");
$ltcClient = $blockSDK->createLitecoin();
or
$ltcClient = BlockSDK::createLitecoin("YOU_TOKEN");
version of the transaction.
List of inputs into transaction
Total balance of transaction input
List of outputs into transaction
Total balance of transaction output
If not 0, this tells when a transaction output is spendable.
block hash including the transaction
block height including the transaction
The time contained in the block
Transaction Confirmation Count
the index of the output being redeemed from the origin transaction
the public key script used to pay coins
GET https://api.blocksdk.com/v1/ltc/block
number of most recent block.
hash of most recent block.
Previous block hash of the most recent block
Unconfirmed Transaction Count
Medium Priority (3-6 blocks)
High Priority (1-2 blocks)
GET https://api.blocksdk.com/v1/ltc/block/{block}
Path Parameters
Query Parameters
Number of transactions to import
The date and time at which a block is mined.
Transaction contained in the block
The number of transactions contained in the block
Total input balance of transactions contained in the block
The number of inputs for all transactions in the block
Total output balance of transactions contained in the block
The number of outputs for all transactions in the block
Kb unit fee for all transactions in a block
Mining Compensation Including Fees
integer the size of this block in bytes.
GET https://api.blocksdk.com/v1/ltc/mempool
Query Parameters
Number of transactions to import
GET https://api.blocksdk.com/v1/ltc/address/{address}
Path Parameters
Query Parameters
Reverse transaction information
Number of Transaction to import
Transaction originated from address
The number of transactions that occurred at the address
The number of transactions received from the address
Transaction amount received from the address
Transaction amount not included in the block received from the address
The number of transactions spent from the address
Transaction amount spent from the address
Transaction amount not included in the block spent from the address
Transaction count not included in address block
First Deal Creation Time at Address
Last transaction creation time from address
GetAddressBalance
GET https://api.blocksdk.com/v1/ltc/address/{address}/balance
Path Parameters
Balance of transactions not included in the block of addresses
GET https://api.blocksdk.com/v1/ltc/wallet
Query Parameters
Number of Address to import
Name specified when creating wallet
POST https://api.blocksdk.com/v1/ltc/wallet
Seed private key of wallet(This key is not stored on the blocksdk server)
POST https://api.blocksdk.com/v1/ltc/wallet/{wallet_id}/load
Load your wallet.
The loaded wallet does not require seed_wif when using CreateAddress,SendToAddress,SendMany
※It is not recommended to use
Path Parameters
Password to use when creating transaction or address
POST https://api.blocksdk.com/v1/ltc/wallet/{wallet_id}/unload
Path Parameters
GetWalletBalance
GET https://api.blocksdk.com/v1/ltc/{wallet_id}/balance
Path Parameters
Balance of transactions not included in the block of wallet
ListWalletAddress
GET https://api.blocksdk.com/v1/ltc/wallet/{wallet_td}/address
Path Parameters
Query Parameters
Number of Address to import
Number of transactions to import
The HD keypath if the key is HD and available
CreateWalletAddress
POST https://api.blocksdk.com/v1/ltc/wallet/{wallet_id}/address
Path Parameters
Only available if the wallet is loaded.
Seed private key issued at wallet creation(Not necessary if your wallet is loaded)
The HD keypath if the key is HD and available
GET https://api.blocksdk.com/v1/ltc/wallet/{wallet_id}/transaction
Path Parameters
Transaction type to import(all,receive,spent,unspent)
Sort deals to import(desc,asc)
Number of Address to import
Address where the transaction occurred
Transaction balance amount
Transaction Confirmation Count
POST https://api.blocksdk.com/v1/ltc/wallet/{wallet_id}/sendtoaddress
Path Parameters
The fee will be deducted from the amount being sent. The recipient will receive less coins than you enter in the amount field.
Only available if the wallet is loaded.
Fee per kilobytes to be used for transactions
Seed private key issued at wallet creation(Not necessary if your wallet is loaded)
Litecoin Address to Receive
Return Tx on Success
POST https://api.blocksdk.com/v1/ltc/wallet/{wallet_id}/sendmany
Path Parameters
The fee will be deducted from the amount being sent. The recipient will receive less coins than you enter in the amount field.
Only available if the wallet is loaded.
Fee per kilobytes to be used for transactions
Seed private key issued at wallet creation(Not necessary if your wallet is loaded)
Example PostData
Return Tx on Success
GET https://api.blocksdk.com/v1/ltc/transaction/{hash}
Path Parameters
Return Tx on Success
SendTransaction
POST https://api.blocksdk.com/v1/ltc/transaction
Return Tx on Success