bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 56쪽 중 15쪽
b9f34) | [`0x14328F2C4D70ED5290f0cd4DC47ecc9C39eeDfE4`](https://sepolia.xaiscan.io/address/0x14328F2C4D70ED5290f0cd4DC47ecc9C39eeDfE4) |
| Supra Deposit Contract | [`0x75311B9F2c155841555E86d56Af4d46ea656Ca47`](https://xaiscan.io/address/0x75311b9f2c155841555e86d56af4d46ea656ca47) | [`0xFFEC1B313282421E9868DB46e9B7B7F1b99819e5`](https://sepolia.xaiscan.io/address/0xffec1b313282421e9868db46e9b7b7f1b99819e5) |
[Supra Developer documentation](https://docs.supra.com/oracles/dvrf/networks)
# Xai Connect
Learn everything you need to know about providing a unified identity with Xai Connect
{% content-ref url="/pages/CyOZEWLb5iC1SJSJyRPo" %}
[Overview](/xai-network/xai-gaming-dev-resources/xai-connect/overview)
{% endcontent-ref %}
{% content-ref url="/pages/1reqDCtWIystxwOYEk6J" %}
[Integrate with Xai Connect](/xai-network/xai-gaming-dev-resources/xai-connect/integrate-with-xai-connect)
{% endcontent-ref %}
# Overview
### Introduction to XAI Connect
XAI Connect is a wallet connector solution built on thirdweb's infrastructure, designed specifically for the Xai blockchain. It provides a seamless login experience for users of Xai-based games and dApps, allowing developers to onboard users with only an email. \
\
XAI Connect leverages thirdweb's Ecosystem Wallets. You can learn more about this [here](https://portal.thirdweb.com/connect/wallet/overview)
### Try it yourself! 
For a live example of XAI Connect, visit <https://connect.xai.games/>
{% embed url="<https://connect.xai.games>" %}
### How it works
XAI Connect associates a user's email address with a their very own wallet. This wallet then acts as a unified identity across the entire XAI ecosystem. 
<figure><img src="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FzZwol91PoAKH9rkQvU3d%2Fxai-image.png?alt=media&token=7aae7fa8-8118-4e60-b1d5-81503745091e" alt=""><figcaption></figcaption></figure>
\
This means users 
* Don't have to worry about wallet addresses 
* Have a single wallet for ALL of their tokens 
* A unified identity across all applications 
# Integrate with Xai Connect
### Prerequisites
To use the Xai Connect Ecosystem Wallet, you will need to:
* Create a thirdweb account ([link](https://thirdweb.com/dashboard))
* Navigate to the **Settings** page and create an API key to get your **Client ID**
* Get your ecosystem partner ID from Xai
You can integrate to the Xai Connect Ecosystem Wallet in two different ways:
### Login with Xai Connect only
You can install the thirdweb SDK and use thirdweb’s [ConnectButton](https://portal.thirdweb.com/typescript/v5/react/components/ConnectButton) alongside the Partner ID Xai created for you to display only the Xai branded sign in flow.
```tsx
import { ecosystemWallet } from "thirdweb/wallets";
const restrictedWallet = ecosystemWallet("ecosystem.xai-connect", {
partnerId: "..." // partner ID provided to you by XAI
});
```
In the React SDK, you may provide the wallet as the only option to restrict user logins to the ecosystem.
```tsx
<ConnectButton
client={THIRDWEB_CLIENT} /* your own thirdweb API key */
wallets={[wallet]}
{...props}
/>
```
### Adding Xai Connect with Other Login Options
You can add Xai Connect as a wallet connector option amongst other wallet options in your existing sign in flow on any domains whitelisted under the ecosystem.
In this example, a partner game might be using thirdweb’s in-app wallet and wants to include Xai Connect as another login option for users.
```tsx
<ConnectButton
client={THIRDWEB_CLIENT} /* your own thirdweb API key */
wallets={[inAppWallet(), createWallet("io.metamask"), createWallet("ecosystem.xai.connect")]}
{...props}
/>
```
# Build with thirdweb
# Overview
Welcome to the integration guide for leveraging thirdweb's web3 toolings. This overview is designed to provide developers with a foundational understanding of how thirdweb's robust toolkit can be used to create, deploy, and manage dApps and smart contracts with unprecedented ease and efficiency.
**thirdweb: Empowering Web3 Development**
thirdweb offers a complete suite of development tools and SDKs that simplify the complexities of web3 development. With features like customizable wallet components, smart contract deployment and interaction, and enterprise-grade infrastructure, thirdweb is at the forefront of enabling developers to build on any EVM-compatible chain.
**Seamless Integration for Scalable dApps**
Integrating thirdweb's SDK allows developers to leverage:
* **Simplified Development Workflow**: Utilize thirdweb's SDK to abstract away the complexities of smart contract development, enabling a focus on building the core application logic.
* **Enhanced Scalability and Efficiency**: Ensure high transaction throughput and reduced costs, making your dApps more scalable and user-friendly.
* **Comprehensive Tooling**: From smart contract deployment to user authentication and wallet management, thirdweb provides all the necessary tools to build, deploy, and manage your dApps.
* **Enterprise-Grade Infrastructure**: thirdweb's Engine offers a backend server solution for reliable smart contract calls, managed backend wallets, and high transaction throughput, all of which are crucial for building professional-grade applications.
**Building for the Future**
By leveraging thirdweb's tooling on Xai, developers are equipped with the tools and infrastructure needed to build the next generation of dApps. This integration not only simplifies the development process but also opens up new possibilities for innovation in the web3 space, making blockchain technology more accessible and usable for a wider audience.
Embark on your journey to build scalable, efficient, and innovative dApps with thirdweb's comprehensive web3 development toolkit.
\
\
\
\ <br>
# Connect
Seamlessly onboard and authenticate users in your applications.
<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td>Sign in</td><td>Flexible user sign-up flow with wallet and social sign-in methods</td><td><a href="https://portal.thirdweb.com/connect/sign-in">https://portal.thirdweb.com/connect/sign-in</a></td><td><a href="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FFtEbkKj5Kn0k2MEIW911%2Fsign-in.svg?alt=media&token=32fb039b-2900-4a18-a63f-cfaae78b8172">sign-in.svg</a></td></tr><tr><td>Account Abstraction</td><td>Complete toolkit for Account Abstraction</td><td><a href="https://portal.thirdweb.com/connect/account-abstraction">https://portal.thirdweb.com/connect/account-abstraction</a></td><td><a href="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2F53YdQXogzFY0aTmunafy%2Faccount-abstraction.svg?alt=media&token=888c4b43-5383-4f09-993c-7d8d12c51c86">account-abstraction.svg</a></td></tr><tr><td>In-App Wallet</td><td>Email & social login wallets for your customers</td><td><a href="https://portal.thirdweb.com/connect/in-app-wallet/overview">https://portal.thirdweb.com/connect/in-app-wallet/overview</a></td><td><a href="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FvRAnbPMsr15d1tRfLQ5o%2Fin-app%20wallet.svg?alt=media&token=7203a9ef-26b9-4b2c-a0ee-2dc186efb3bf">in-app wallet.svg</a></td></tr><tr><td>Auth</td><td>Authenticate users with their wallets</td><td><a href="https://portal.thirdweb.com/connect/auth">https://portal.thirdweb.com/connect/auth</a></td><td><a href="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FzFTtrWCm9JJd6oGEyGS6%2Fauth.svg?alt=media&token=6c56220e-527f-46bf-8e15-1b8ec56272cc">auth.svg</a></td></tr><tr><td>Pay</td><td>Easily integrate cross-chain crypto purchases for your users</td><td><a href="https://portal.thirdweb.com/connect/pay/buy-with-crypto">https://portal.thirdweb.com/connect/pay/buy-with-crypto</a></td><td><a href="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FEySr1L2me5hYeWMslxqV%2Fpay.svg?alt=media&token=7f184f52-dfe3-4b70-b507-2e6fd4839300">pay.svg</a></td></tr><tr><td>Blockchain API</td><td>Performant and reliable blockchain API</td><td><a href="https://portal.thirdweb.com/connect/blockchain-api">https://portal.thirdweb.com/connect/blockchain-api</a></td><td><a href="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FYzGYsWgzthM4THRAp6x7%2Fblockchain-api.svg?alt=media&token=0e3acb71-8249-4430-a718-03039ee62ad8">blockchain-api.svg</a></td></tr></tbody></table>
# Contracts
Deploy pre-built audited smart contracts — or write your own with our Solidity SDK. Available on any EVM chain.
<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td>Deploy</td><td>Contract deployment build for any use case</td><td><a href="https://portal.thirdweb.com/contracts/deploy/overview">https://portal.thirdweb.com/contracts/deploy/overview</a></td><td><a href="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2F8r7hIQtygqjeLXTO4Oao%2Fnav-icon-deploy.svg?alt=media&token=52356f9b-4add-45d5-b02b-f2a287938469">nav-icon-deploy.svg</a></td></tr><tr><td>Build</td><td>Write your own smart contracts</td><td><a href="https://portal.thirdweb.com/contracts/build/overview">https://portal.thirdweb.com/contracts/build/overview</a></td><td><a href="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2F6TvpgRZHeiNp2Cx0Q1xp%2Fnav-icon-build.svg?alt=media&token=8fb30b18-8670-4841-9f9f-9d72c4c13819">nav-icon-build.svg</a></td></tr><tr><td>Interact</td><td>Add smart contract interactions in your app</td><td><a href="https://portal.thirdweb.com/contracts/interact/overview">https://portal.thirdweb.com/contracts/interact/overview</a></td><td><a href="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FxqpzgRmf9aWo6w69mRqw%2Fnav-icon-interact.svg?alt=media&token=6707cf23-1298-4d84-8360-baca8c5f63d3">nav-icon-interact.svg</a></td></tr><tr><td>Explore</td><td>Ready-to-deploy contracts</td><td><a href="https://portal.thirdweb.com/contracts/explore/overview">https://portal.thirdweb.com/contracts/explore/overview</a></td><td><a href="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FJ6YktbM1qaQZ88oC65dP%2Fnav-icon-explore.svg?alt=media&token=d9b6d482-cd67-4f1f-b0f0-26c4321866d9">nav-icon-explore.svg</a></td></tr><tr><td>Publish</td><td>Publish your contracts on-chain</td><td><a href="https://portal.thirdweb.com/contracts/publish/overview">https://portal.thirdweb.com/contracts/publish/overview</a></td><td><a href="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FW0pYUEqP75mne4vXwYyP%2Fnav-icon-publish.svg?alt=media&token=95f5967f-ea52-4233-a1b0-8f59708e9f89">nav-icon-publish.svg</a></td></tr></tbody></table>
#### **Features**
* Easily deployable: Deploy pre-built contracts through a user interface (dashboard), CLI, or even programmatically through SDKs.
* Customized dashboard to manage contracts: Pre-built contracts provide a custom interface to easily manage your contract.
* Retained ownership: All contracts deployed are fully owned by the contract deployer (you).
* Audited: All pre-built contracts are audited by 3rd party auditors with audit reports attached and ongoing bug programs to ensure security for both deployers and users.
* Cheaper Deployment: Utilizing the proxy pattern, pre-built contracts are 10x cheaper to deploy vs non-proxy versions.
# Wallets
Onboard all of your users with a beautiful Connect Wallet modal, flexible sign-in options for web2 & web3, and powerful hooks for full customizability.
{% embed url="<https://portal.thirdweb.com/wallets?utm_source=xai-network&utm_medium=documentation&utm_campaign=chain-docs>" %}
#### **Features**
* Wallet Support: Connect to 170+ different wallet providers with support for any EVM network
* Improved onboarding experience: Support for email / social login, and smart wallets with gas-less options to seamlessly onboard non-native or new crypto users.
* Customization options: Change default or recommend wallet providers, themes, modal size, logos, text, and more to match your branding.
* Enable wallet actions for native experiences: Connect / disconnect wallet, view balance, display ENS name, view transaction history, send / receive tokens, switch networks, and more directly from the UI.
* Authenticate Users: Easily enable Auth (SIWE) to authenticate your end users.
* SDK Integration: Easily integrate with thirdweb's Contract SDKs to enable users to interact with your application.
**Products**
* [Connect:](https://portal.thirdweb.com/wallets/connect?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs) Fully customizable Connect Wallet component
* [Embedded Wallet:](https://portal.thirdweb.com/wallets/embedded-wallet/overview?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs) Email & social login wallets for your customers
* [Smart Wallet:](https://portal.thirdweb.com/wallets/smart-wallet?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs) Complete toolkit for Account Abstraction
# Account Abstraction
Everything you need to build ERC-4337 Smart Wallets for your users.
{% embed url="<https://portal.thirdweb.com/wallets/smart-wallet?utm_source=xai-network&utm_medium=documentation&utm_campaign=chain-docs>" %}
#### Features
thirdweb's smart wallets have the following features by default:
* The ability to have multiple owners on the same wallet.
* Give access to scoped session keys with restrictions.
* Execute transactions (single and batched).
* Send and receive native tokens to and from the smart wallet.
* Send and receive [ERC-721](https://portal.thirdweb.com/contracts/build/extensions/erc-721/ERC721?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs) and [ERC-1155](https://portal.thirdweb.com/contracts/build/extensions/erc-1155/ERC1155?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs) NFTs from the smart wallet.
* Store contract metadata.
* Pay for its own gas via a [paymaster](https://portal.thirdweb.com/wallets/smart-wallet/how-it-works?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs#paymaster).
* Assign roles and permissions such as signers and admins.
* Upgrade functionality over time when using the dynamic and managed factories.
And more!
Smart Wallets can be deployed via the [explore page](https://thirdweb.com/explore?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs) or customized to each application's needs using the [Solidity SDK](https://portal.thirdweb.com/contracts/build/overview?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs).
The SmartWallet API is composable - you can use it with your own [ERC 4337](https://eips.ethereum.org/EIPS/eip-4337) compatible factory contract and you can also use your own bundler or paymaster services.
# SDKs
Connect to user's wallets, interact with smart contracts, sign messages, and utilize common standards such as tokens, NFTs, marketplaces; all with built-in RPC URLs, IPFS gateways, and more.
#### Typescript
A type-safe library to interact with any EVM-compatible blockchain in both Node.js and the browser.
{% embed url="<https://portal.thirdweb.com/typescript/v4?utm_campaign=chain-docs&utm_medium=documentation&utm_source=xai-network>" %}
#### React
A collection of 100+ React hooks and UI components for your web3 apps, for any EVM-compatible blockchain.
{% embed url="<https://portal.thirdweb.com/react/v4?utm_source=xai-network&utm_medium=documentation&utm_campaign=chain-docs>" %}
#### React Native
A collection of 100+ React hooks and React Native UI components for your web3 mobile apps, for any EVM-compatible blockchain.
{% embed url="<https://portal.thirdweb.com/react-native/v0?utm_campaign=chain-docs&utm_medium=documentation&utm_source=xai-network>" %}
#### Unity
A Unity SDK to build games with blockchain and web3 capabilities.
{% embed url="<https://portal.thirdweb.com/unity>" %}
#### Unreal
Use this guide and template, which combines Engine and a server to build production-grade games on Unreal.
{% embed url="<https://portal.thirdweb.com/solutions/gaming/unreal-engine/quickstart?utm_source=xai-network&utm_medium=documentation&utm_campaign=chain-docs>" %}
# Engine
#### Overview <a href="#overview" id="overview"></a>
Engine is an open-source, backend server that reads, writes, and deploys contracts at production scale.
#### Why use Engine? <a href="#why-use-engine" id="why-use-engine"></a>
Engine enables your app to:
* Send multiple blockchain transactions at once.
* Resubmit stuck transactions, handling nonce values, gas settings, and RPC errors.
* Avoid duplicate transactions.
* Manage multiple backend wallets and their funds.
* Control access from your backends and team members.
* Sponsor user gas fees.
* Deploy and interact with smart accounts.
* Subscribe to contract events and transactions.
<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>Engine</td><td>Backend server to reliably call smart contracts</td><td><a href="https://2248955668-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhE4weeNpCJSNUXnecN1R%2Fuploads%2FvUjzmEXRME1ynbknunCA%2Fnav-icon-engine.svg?alt=media&token=997773b5-ce6f-4b13-b2c7-3830e33c4bba">nav-icon-engine.svg</a></td><td><a href="https://portal.thirdweb.com/engine">https://portal.thirdweb.com/engine</a></td></tr></tbody></table>
# Web3 APIs
Production-grade HTTP server to interact with any smart contract on any EVM. Engine lets you create and interact with backend developer wallets, enabling high throughput with automatic nonce and gas management. Reliably send blockchain transactions, manage smart wallets, enable gasless transactions, and more.
{% embed url="<https://portal.thirdweb.com/infrastructure/engine/overview?utm_source=xai-network&utm_medium=documentation&utm_campaign=chain-docs>" %}
<figure><img src="https://lh7-us.googleusercontent.com/ABreRLpaGVADnsB8xc1nDPnKGYjYb-W9FxpBZamlapwlrgiLFUvXl93Jj4wUKqXXXvxoq_uKxEft1WKgx6qnBm98B9h0fhhNNSr0TL-DLZkexEwmswvAJck_kaTv2MdVjpqlscMMRl5k6NqejjOxs14" alt=""><figcaption></figcaption></figure>
#### Features
* Managed backend wallets - Create company wallets backed up locally or with AWS KMS / Google KMS.
* Any contract on any EVM chain - Engine supports contract calls on all [1000+ EVM blockchains](https://thirdweb.com/chainlist?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs) and private subnets.
* High transaction throughput - Blockchain transactions are processed in parallel with nonce management, and stuck transactions are automatically retried.
* Smart contracts - Deploy any [published smart contract ](https://thirdweb.com/explore?utm_source=xai-network\&utm_medium=documentation\&utm_campaign=chain-docs)including tokens, NFTs, marketplaces, and smart accounts.
* Account abstraction & smart wallets - Deploy and manage smart wallets, use session프로젝트로 돌아가기