Switcheo / zilswap-sdk

Zilswap Typescript SDK
https://docs.zilswap.org
MIT License
18 stars 14 forks source link

About the way of constructing a zilswap class #27

Open d-never opened 2 years ago

d-never commented 2 years ago

constructor(readonly network: Network, walletProviderOrKey?: WalletProvider | string, options?: Options)

I want to know how to use WalletProvider not the privateKey as the second param of the function? That would be better if you can give an example. I look forward to your reply. Thanks!