Creating a Portfolio with Privy
During the Portfolio Creation process, an EIP-191 signature is required to authenticate ownership of the portfolio and provide Glider access to manage the assets within the portfolio.1
Get the Message to Sign
Fetch the data to be signed by calling the
https://api.glider.fi/v1/portfolio/create/signature
endpoint.2
Sign the Message
Sign the message with the owner’s wallet. Privy provides a tutorial on signing a message through their SDKs.
This will likely require end user interaction to complete the signature.
privy.js
Funding a Portfolio with Privy
Funding a portfolio is done by sending funds to a portfolio’s vault address. Follow along with Privy’s docs on sending a transaction for your specific situation.1
Get the Portfolio's Vault Address
Fetch the portfolio’s vault address by calling the
https://api.glider.fi/v1/portfolio/{portfolioId}
endpoint.2