Home

Non-custodial Accounts

Learn how to integrate a non-custodial account.

In non-custodial accounts, your users manage the signer that owns the user account.

note

For a general overview about the custodial approach, see the Private Key Management.

Quickstart#

In this guide you'll learn how to create a player, create a non-custodial smart account and then mint an NFT.

1. Create a player#

Whenever a new user signs up to your game, you'll need to create a player in Openfort.

createPlayer

After creating a player, you'll receive a playerId that you can use from this point on to interact with the Openfort API.

2. Create a non-custodial account#

Openfort players are the entity that has smart accounts associated with them. It can have one smart account per chain and will have the same address across all chains.

It's important to note that these accounts are counterfactual (they are not deployed until the first transaction is executed). Nevertheless, this account can already receive tokens and assets to it.

createAccount

Next steps#

We now have a fully working implementation that allows you to mint assets with a player.

Don't forget that when non-custodial, the owner will need to sign each transaction introducing friction (e.g. pop-ups) to the user experience.

BUT, we can use Openfort session keys to create scoped session keys. This way, we can sign transactions without UX interruptions. Learn how to use them at Session Keys.

Check out our working working examples of this quickstart: