Learn how to authenticate users, create embedded wallets, and send transactions in your Unity app
SendCode
method.
loginWithCode
method. As a parameter to this method, pass an object with the following fields:
CreateWallet
method on the PrivyUser
.RpcProvider
on the EmbeddedWallet
class of the Unity SDK. This is an EIP1193 provider is responsible for managing RPC requests to a user’s embedded wallet.Currently, Privy’s RpcProvider
only supports the personal_sign
and eth_signTypedData_v4
RPCs. We are actively adding support for other methods.RpcRequest
class from Privy. The class follows the interface below:rpcRequest
you constructed to the RpcProvider
’s Request
method to execute the request:RpcResponse
, which implements the interface below:Request
method may error if:AuthenticationException
or EmbeddedWalletException
: