1

I am trying to implement SharkyFi/client in an angular application and i was wondering if i can get any help and is putting public key and private key of any wallet would work ?

const cli = new Command() const options = cli .requiredOption('--wallet-path ', 'path to private key file') .parse() .opts()

const provider = createProvider(options.walletPath) const sharkyClient = createSharkyClient(provider) const { program } = sharkyClient

const loans = await sharkyClient.fetchAllLoans({ program, }) I trying to use this code

1 Answer 1

1

If you are gonna just read accounts, you don't even need to provide any keypairs. publicKey in Provider interface is optional for wallet not connected state in general.

1
  • i am trying to read the wallets so i can make loan offers from our website Commented May 12, 2023 at 17:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.