public.pem
file and the private key from the private.pem
file in your working directory.
Make sure to save both files securely. Privy does not store your private key and cannot help you recover it.
id
of the key quorum that is created. You will need this value later.
This creates a 1-of-1 key quorum that can be granted permission to execute actions from a user’s wallet.
PrivyProvider
component, set the config.embeddedWallets.ethereum.createOnLogin
property to 'all'
to automatically create embedded wallets for users, regardless of what login method they use.addSessionSigners
method of useSessionSigners
hook to add your app’s authorization key as a session signer on the wallet.Add a session signer to a user's wallet immediately after they login.
onComplete
callback of the useLogin
hook:Add a session signer for limit orders.
Create your limit order policy
Add your session signer
addSessionSigner
method, using the policy from step 1.Execute the limit order
PrivyClient
with the private key of the authorization key you created in step 1. Pass this value into the walletApi.authorizationPrivateKey
field of the third positional parameter to the client’s constructor.