Treasure Connect
The passport into the Treasure ecosystem.
Treasure Connect ships with our TDK(s) and provides a seamless onboarding and account experience for users/players. It allows users/players to spin up accounts through a variety of means (email, social, EOA, etc.) and seamlessly interact with our backend as well as all public and Treasure chains.
For further information on the player-facing experience, reference Ecosystem -> Treasure Connect.
Key Concepts
General Terms
- Account Abstraction: a technology that allows blockchain users to use smart contracts as their accounts.
- Smart Account: a smart contract that acts as a wallet and can be controlled by other smart contracts.
- Externally Owned Account (EOA): a wallet that users control with private keys. This is the typical wallet that users create through their Web3 wallet extensions like MetaMask, Rabby, etc.
- Native Account Abstraction: when account abstraction and smart accounts are built into the blockchain protocol (for example, by upgrading EOA wallets with custom contract code). This is true for ZKsync-based chains, including Treasure chain. Learn more about Zksync native Account Abstraction.
- Account Factory: a smart contract that creates smart accounts on chains that don’t support native account abstraction, typically through a standard like ERC-4337. This was the strategy adopted by Treasure on the Arbitrum network.
- Ecosystem Wallet: an EOA wallet generated for a user when they connect to the Treasure ecosystem. On chains that require account factories, this wallet acts as the default admin signer for the smart account.
Treasure Products
- Treasure Development Kit (TDK): A set of software development kits that can be integrated with your apps and games on a variety of platforms to enable easy interaction with Treasure Connect and other Treasure ecosystem services. Click here to get started with the TDK.
- Treasure Connect: the connect/sign-in experience hooked up via TDK that allows users to log in to their accounts.
- Treasure Account: the smart account that is created for users when they log in via Treasure Connect.
FAQ
Will players be able to interact directly with the blockchain through the TDK/Treasure Connect?
Will players be able to interact directly with the blockchain through the TDK/Treasure Connect?
Yes. On-chain actions are orchestrated via our backend services and do not require players to sign transactions. Access is session-based and the service can interact with any smart contracts defined in the call targets approved during session creation.
How do players manage assets?
How do players manage assets?
Outside of the TDK, players can manage their assets via the Treasure App. This includes transferring NFTs/tokens and topping up gas funds.
Can I sponsor players' gas fees?
Can I sponsor players' gas fees?
Yes. Various gas sponsorship policies are available for partner-specific quotas; this can be as broad as sponsoring all transactions on a specific chain or as granular as determining sponsorship on a per-transaction basis.
What are the authentication options?
What are the authentication options?
We recommend using email as the primary authentication method; email auth is secured via an OTP confirmation. Social sign-on is also supported (popular platforms) as well as EOA (MetaMask, WalletConnect).
Is it possible to link additional wallets as authentication options?
Is it possible to link additional wallets as authentication options?
Yes. Players can link profiles and add additional signers on the Treasure Account, optimally in the form of EOAs.