<p>I have a library in PHP for bitcoin transactions - <a href="https://github.com/Bit-Wasp/bitcoin-lib-php" rel="nofollow">https://github.com/Bit-Wasp/bitcoin-lib-php</a>. It's mainly focussed on Bitcoin, and there are one or two places where hardcoded constants make dealing with altcoins tricky. That said, they are minor parts of the code. </p>

<p>(Only thing that comes to mind is if you're generating private keys just make sure you encode them to WIF's using BitcoinLib::base58_encode_checksum('privkey byte' . 'privkey hex'), passing the respective private key version byte, as the library will DEFAULT to using [address byte]+0x80 when generating addresses. This is how bitcoin does it, but it's not compatible with some coins, because they just use the first hex which gives the prefix they want)</p>

CC BY-SA 3.0
2014-12-15T09:15:27.347Z
2014-12-15T09:15:27.347Z
karimkorun
<p>Im interested in other scrypt based coins other than Litecoin. </p>

<p>I have noticed that most of these coins have no documentation. So is it safe to assume that I can follow the Litecoin documentation if I have a question about a function or feature of said other scrypt based coin?</p>

<p>Second, I cant find anything about using PHP and doing transactions with Litecoins or any other coins (just javascript). Can anybody point me to some examples of how to do things like create wallets, send and receive transactions, etc..</p>

<p>Thanks.</p>

CC BY-SA 3.0
2014-02-04T00:32:48.140Z
Since most Scrypt altcoins are a fork of Bitcoin, you can expect similar functionality and use similar tutorials and methods.
John T
<litecoin><scrypt><altcoin>
AltCoins based on Scrypt - How to do transactions with PHP?
user12920
# AltCoins based on Scrypt - How to do transactions with PHP?

(Asked by: username_0 on 2014-01-31)

Im interested in other scrypt based coins other than Litecoin.

I have noticed that most of these coins have no documentation. So is it safe to assume that I can follow the Litecoin documentation if I have a question about a function or feature of said other scrypt based coin?

Second, I cant find anything about using PHP and doing transactions with Litecoins or any other coins (just javascript). Can anybody point me to some examples of how to do things like create wallets, send and receive transactions, etc..

Thanks.

**Tags:** litecoin, scrypt, altcoin

> **Comments:**
> **username_1**: Since most Scrypt altcoins are a fork of Bitcoin, you can expect similar functionality and use similar tutorials and methods.  

---

## 1 answers

### Answer by username_2 on 2014-12-15. Score: 1

I have a library in PHP for bitcoin transactions - <https://github.com/Bit-Wasp/bitcoin-lib-php>. It's mainly focussed on Bitcoin, and there are one or two places where hardcoded constants make dealing with altcoins tricky. That said, they are minor parts of the code.

(Only thing that comes to mind is if you're generating private keys just make sure you encode them to WIF's using BitcoinLib::base58\_encode\_checksum('privkey byte' . 'privkey hex'), passing the respective private key version byte, as the library will DEFAULT to using [address byte]+0x80 when generating addresses. This is how bitcoin does it, but it's not compatible with some coins, because they just use the first hex which gives the prefix they want)


---

