Local/Wallet/Litecoin
// Set your API Keys 👇 here
$sdk = new \Tatum\Sdk();
// MainNet Local/Wallet/Litecoin
$sdk->mainnet()->local()->wallet()->litecoin();
// TestNet Local/Wallet/Litecoin
$sdk->testnet()->local()->wallet()->litecoin();
Litecoin HD Wallet
| Method | Description | 
|---|---|
| generateWallet() | Generate wallet | 
| generateAddressFromXpub() | Generate address from xPub and index | 
| generateAddressFromPrivateKey() | Generate address from xPub and index | 
| generatePrivateKey() | Generate private key from mnemonic and index | 
  generateWallet() 
 Example
#️⃣ Execute command in terminal
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->local()->wallet()->litecoin()->generateWallet(
    [ string $mnemonic = null ]
): \Tatum\Model\Wallet
Parameters
| Name | Type | Description | Notes | 
|---|---|---|---|
| $mnemonic | string | 24-word mnemonic | [optional] [default to null] | 
Return type
Wallet Model (\Tatum\Model\Wallet)
Description
Generate wallet
  generateAddressFromXpub() 
 Example
#️⃣ Execute command in terminal
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->local()->wallet()->litecoin()->generateAddressFromXpub(
    string $xpub,
    int $index
): \Tatum\Model\GeneratedAddressBtc
Parameters
| Name | Type | Description | Notes | 
|---|---|---|---|
| $xpub | string | Extended public key | |
| $index | int | Derivation index | 
Return type
Address Model (\Tatum\Model\GeneratedAddressBtc)
Description
Generate address from xPub and index
  generateAddressFromPrivateKey() 
 Example
#️⃣ Execute command in terminal
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->local()->wallet()->litecoin()->generateAddressFromPrivateKey(
    \Tatum\Model\PrivKey $privateKey
): \Tatum\Model\GeneratedAddressBtc
Parameters
| Name | Type | Description | Notes | 
|---|---|---|---|
| $privateKey | \Tatum\Model\PrivKey | Private Key | 
Return type
Address Model (\Tatum\Model\GeneratedAddressBtc)
Description
Generate address from xPub and index
  generatePrivateKey() 
 Example
#️⃣ Execute command in terminal
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->local()->wallet()->litecoin()->generatePrivateKey(
    string $mnemonic,
    int $index
): \Tatum\Model\PrivKey
Parameters
| Name | Type | Description | Notes | 
|---|---|---|---|
| $mnemonic | string | 24-word mnemonic | |
| $index | int | Derivation index | 
Return type
Private Key (\Tatum\Model\PrivKey)
Description
Generate private key from mnemonic and index