1

I'm digging into this mrgn-ts library and I can't seem to figure out how to fetch all the available lending/borrowing pools and display some data about them, like asset price, APY, available funds to borrow etc.. , on my React front end. Essentially I just want to show my users information about all the available pools in this protocol.

There's really no documentation about the SDK and no examples I could find on how to use it. I tried installing and tinkering with the client @mrgnlabs/marginfi-client-v2 but that doesn't seem to provide access to the pools or banks.

1 Answer 1

1

You can check this out https://github.com/mrgnlabs/pulsar-example/blob/main/index.ts Its shows some basic examples

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.