Creating a Portfolio with Turnkey
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 payload using the owner’s wallet. The Turnkey SDK can be used to sign the message like so:
turnkey.js
Funding a Portfolio with Turnkey
Funding a portfolio is done by sending funds to a portfolio’s vault address.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
Send Funds to the Portfolio's Vault
Turnkey has integrations with both
ethers.js
and Viem
to send funds using Turnkey. An example with Viem is highlighted below: