Perp Smart Account

Perp v3 uses a Smart Account system based on account abstraction, aka ERC-4337. Perpetual Protocol Smart Account is powered by ZeroDev.

tl;dr

Perp Smart Account makes crypto trading so much easier.

  • Sign up without needing a wallet

  • No wallet credentials to store or backup

  • Trade without signing (just tap and confirm)

  • No separate network (gas) fees

  • All funds are 100% onchain and in your control (non-custodial)

Smart Accounts are created using an email, and an authentication method: Passkey or a web3 wallet. Each Smart Account has its own address (starting with 0x). You cannot use an exising address for the Smart Account.

To log in and perform critical operations (e.g. withdraw) you will need the same email and Passkey/web3 wallet that you used when creating the account.

Benefits

  • User experience

    • Sign up and start trading in seconds - no wallet or complex registration needed

    • Trade with 2 clicks - only sign-up/withdrawal requires your Passkey signature

  • Security

    • Wallet credentials (e.g. seed words) are stored securely, protecting you from loss or mistakes

    • Easy account recovery using your Passkey

    • Easy account migration without exporting/handling private keys

  • Leading edge tech

    • Fully client-side solution puts the you in complete control of your wallet

    • Industry-leading implementation from ZeroDev

🤔 Is this even web3 bro?

Good question. Everyone defines web3 a little differently, but if your definition includes the following

  • Non-custodial / not your keys, not your coins

  • Permissionless

  • Open, public blockchain

  • No lock-in / easy migration

then yes, this is web3.

Perp Smart Account uses ERC-4337 account abstraction to create user accounts, leveraging the Kernel wallet from ZeroDev for the implementation. If you have more questions about what all of this means, welcome to Contact us!

Signup

Nekodex only supports Passkey signup. We want to encourage users to try this new user-friendly option for securing your crypto account.

First enter an email address to create an account, then link it to a Passkey or Web3 wallet. The key or wallet will be used to authenticate you and sign for critical operations like sign-up and withdrawals.

Passkey requirements

🍎 Passkeys are available for all iPhones and iPads from iOS 16 onward.

🤖 Passkeys are available for most Android phones from Android 9* onward.

Some manufacturers have not added Passkey so be sure to check your device. *Higher versions of Android may be required for 3rd party applications like Proton Pass.

Session keys

ZeroDev's session keys implementation opens the door to a faster, smoother trading experience onchain. A session key is created using your Passkey. The session key lets you perform low-risk operations like opening and closing trades without having to authenticate again using your Passkey.

More benefits

  • Using session keys instead of the private-key-backed Passkey means less exposure for the private key.

  • Session keys allow easy management of what operations are permitted, and what operations require full Passkey authentication.

  • Substantial gas savings compared to verifying Passkey signatures for onchain operations.

Passkey

Passkeys (FIDO credential) are a standard for managing passwords, login credentials and more, using a Passkey-enabled hardware device like your iPhone or Android smartphone.

  1. Passkeys on your computer may be difficult or impossible to back up. We do not recommend users to store Passkeys this way unless you know what you are doing. If your Passkey is lost, you will permanently lose access to your funds. ☠️

  2. Perp Smart Account does not currently support Linux. If you use Linux, please sign in using your phone or a web3 wallet.

When creating your Perp Smart Account or logging into an existing Smart Account, you can use your device's Passkey for authentication.

Check with your phone manufacturer for information about setting up and using Passkeys on your phone.

Backups

It is important to backup your Passkey in order to maintain access to your Perp Smart Account if your device is lost or broken.

From the ZeroDev docs:

https://docs.zerodev.app/sdk/plugins/passkeys#how-are-passkeys-sync-ed-and-recovered

Synchronization and recovery are both supported natively by Apple and Google:

web3 wallet

If you don't want to use Passkey or do not have access to one, you can use a good old fashioned web3 wallet like a proper OG.

Connect your wallet, e.g. Metamask, and sign the ValidatorApproved message to set up your account abstraction wallet. You can verify you are signing the message from this contract:

0x884bc49b4af83f77bfce93df4d38c7fd2f916c76

This will set up your Perp Smart Account which is ready to be funded and used for trading. You won't need to sign for most operations, which will be controlled using your session key. Critical operations like sign-up & withdrawal will requires a signature from your web3 wallet to re-authenticate you.

FAQ / Troubleshooting

  • Passkeys are linked to an email and a service like a website (e.g. nekodex.org). Make sure to use the Passkey linked to the email you used to sign up to Nekodex.

  • Passkeys are created on one device. If you use a phone and backup the phone using iCloud or Google One, the Passkeys should migrate to the new phone.

  • Make sure to use the same device to log in, or migrate as mentioned above. You won't be able to log in using a different Passkey.

  • One device can create multiple Passkeys so when you log in, make sure to choose the Passkey you used to create your Nekodex account.

Last updated