michaelhly / solana-py

Solana Python SDK
https://michaelhly.github.io/solana-py
MIT License
1.05k stars 273 forks source link

Add some examples to docs? #160

Open peterschwarzdev opened 2 years ago

peterschwarzdev commented 2 years ago

Hi, first of all I think you have done an excellent job at creating a Python version of the Solana CLI! I have seen the SPL client it seems to require a lot of arguments to initialize but I don't really know where to get them from. I think what this library is missing are some examples within the docs, for instance, how could we replicate the following Solana CLI actions using solana-py:

spl-token create-token
spl-token create-account <TOKEN>
spl-token mint <TOKEN> 100
michaelhly commented 2 years ago

@peterschwarzdev I found a pretty good example on minting an NFT here: https://qiita.com/teto_btc/items/2c4ae1a870f387100e73