#
Get Playground Wallet Addresses
By
In order to simulate some contracts in the Playground you'll need to know the public key hash of the wallets. You can use the REPL inside a particular week's project to get simulated wallet key hashes.
Change into the plutus-apps
directory
cd plutus-apps
Start a Nix shell
nix-shell
Change into the week's code directory
cd ~/plutus-pioneer-program/code/week03
Start the REPL
cabal repl
Import the Wallet.Emulator
module
import Wallet.Emulator
Get the address of various wallets by number
knownWallet 1
Wallet 872cb83b5ee40eb23bfdab1772660c822a48d491
knowWallet 2
Wallet 7ce812d7a4770bbf58004067665c3a48f28ddd58
Get the hash of a wallet
mockWalletPaymentPubKeyHash $ knownWallet 1
a2c20c77887ace1cd986193e4e75babd8993cfd56995cd5cfce609c2
The first few playground wallets as of Plutus Pioneer Program Cohort 3 Week 3