From 529cb3afd0ed1bbde9f4f1662e5d706e23eb1c65 Mon Sep 17 00:00:00 2001 From: caballoninja Date: Mon, 20 Jan 2025 13:11:17 -0300 Subject: [PATCH 1/6] Unreal Demo Game docs --- docs/pages/guides/unreal-ew-guide.mdx | 87 ++++++++++++++++++++------- nav.ts | 5 +- 2 files changed, 70 insertions(+), 22 deletions(-) diff --git a/docs/pages/guides/unreal-ew-guide.mdx b/docs/pages/guides/unreal-ew-guide.mdx index 12f8de9f043..41ed0fc63ed 100644 --- a/docs/pages/guides/unreal-ew-guide.mdx +++ b/docs/pages/guides/unreal-ew-guide.mdx @@ -1,11 +1,14 @@ --- -title: How to build a Game with Unreal Engine -description: Use Sequence's Unreal SDK to display Embedded Wallet information, sign messages, and send transactions. +title: Build a Game with Unreal Engine +description: Integrate the Sequence Wallet, fetch your players assets, sign messages, send transactions and more using Sequence's Unreal SDK. --- -# How to build a Game with Unreal Engine +# Intro to Cropout - Unreal Engine Game Guide + +Cropout is a top-down casual RTS game built with Unreal Engine, serving as a powerful showcase for its advanced features. This documentation details the integration of Sequence’s Embedded Wallet SDK into the CropOut sample project, enabling seamless blockchain functionality. With this integration, players can access features like smart contract wallets, in-game asset ownership, and transaction management—all without disruptive popups or gas fee requirements. The setup preserves the game’s intuitive experience while introducing blockchain-enabled capabilities for modern Web3 gaming. In this guide we will walk you through how to integrate Embedded Wallet features using Sequence's Unreal SDK. + Checkout the [Boilerplate for this guide.](https://github.com/0xsequence/sequence-unreal) [Learn more about Embedded Wallets.](/solutions/wallets/overview#what-are-the-differences-between-these-options) @@ -14,44 +17,86 @@ Checkout the [Boilerplate for this guide.](https://github.com/0xsequence/sequenc ::::steps -### Installation +### Download the game sample + +If you have the Unreal Engine installed go straight to [Unreal's Cropout page.](https://www.unrealengine.com/en-US/blog/cropout-casual-rts-game-sample-project). + +If not then start by installing Epic Games Launcher: -To get started, download the [latest version](https://github.com/0xsequence/sequence-unreal/releases) -of the Sequence SDK and put the `SequencePlugin` folder into your Unreal project's `Plugin` folder. +1.Download and install the launcher from [Epic Games’ website].(https://www.unrealengine.com/en-US/download) +2.Log In: Sign in or create an Epic Games account. +3.Find the Project: Go to the Unreal Engine tab, then the Learn section, and search for "Cropout Sample Project." +4.Download: Click Add to Library and then Install to download the project files. -Alternatively, [learn how to get the SDK from the Epic Games Marketplace.](/sdk/unreal/installation#using-epic-games-marketplace) +## Download the Sequence Unreal Engine SDK + +To get started, download the [latest version](https://github.com/0xsequence/sequence-unreal/releases) of the Sequence SDK and put the `SequencePlugin` folder into your Unreal project's `Plugin` folder. + +Alternatively, [get the SDK from the Epic Games Marketplace.](/sdk/unreal/installation#using-epic-games-marketplace) ### Configure your Project -Now create the `SequenceConfig.ini` file, [based on this format](/sdk/unreal/configuration/), in your project's `Config/` directory and include the -WaaS- and Project Key from the [Sequence Builder.](https://sequence.build/) Generate a 32-character encryption key. This key will be used to securely store your user credentials. -The remaining values can be filled in later or whenever new authentication options are needed. +1. [Sign in to the Sequence Builder Console](/solutions/builder/getting-started) +2. [Create a Project For Your Game in the Builder Console](/support/builder/project-management) +3. Setup an [Embedded Wallet in the Builder Console](/solutions/builder/embedded-wallet#embedded-wallet-in-builder) +4. In your `SequenceConfig.ini` file, add your `WaaS Config Key` and your Builder API Key from the [Builder Console](/solutions/builder/getting-started#claim-an-api-access-key) under `Settings > API Access Keys`. +5. Dont forget to add your preferred Oauth client ids, which you must set in the Builder under `Onboard > Embedded Wallet > Configuration`. + -### Include the Built-In UI +### Login using the Built-In UI -Let's build on top of the Pawn `BP_CustomSpectatorPawn` and GameMode `GM_Sequence` included with the SDK by duplicating them into our project. -This will allow us to customize them as needed. +On the Main Menu level blueprint we will spawn our `Sequence Connector` Actor which will initiate and display the Login Panel. -We recommend using the Built-In UI for development purposes, [learn how to create your own UI.](/sdk/unreal/authentication/) +We recommend using the Built-In UI for development purposes, here's a more [detailed explanation. ](/sdk/unreal/user_interfaces/) +For further customization, [learn how to create your own UI.](/sdk/unreal/authentication/) :::: ## 2. Interact with the SDK -To enable interaction with the Sequence SDK, start by creating a widget blueprint for your project. -Open the Sequence Pawn, locate the `Auth Success` event, and create a reference of your new UserWidget. -Finally, use our subsystems like the `SequenceWalletBP` to access our features from the following sections. -## 3. Display Wallet Information +To start our interaction with the Sequence SDK, open the Sequence Connector blueprint, locate the `Auth Success` event, and set the network to your builder project selected chain. +You can do this by using our Blueprint Subsystems like this: -To display the wallet's address and balance, first retrieve the user's wallet reference. -Then, use it to fetch and display the wallet's address and current balance directly from the connected blockchain. + +## 3. Get Wallet address + +To display the wallet's address we first retrieve the user's wallet reference and use it to fetch and display the wallet's address from the selected network. Example Use Case:
Build a UserWidget for your users Web3 profile. {'img'} {'img'} -## 4. Sign a Message + +## 4. Set your NFTs + +In our case we are starting with an ERC-1155 contract, for our Resource Bundle packs and Farming Boosts. To create the NFTs go to [Builder Console > Deploy > Contracts](/solutions/builder/contracts/) and select `Web3 Game Item`. + +Once we've made our items we will now create their respective sale contracts by deploying a new contract and selecting `Web 3 Game Item(Sale)`. + +We will add to our Web 3 Game items its corresponding rewards and it's Sale contract address as a property (ie {"BundleSize":"Large"},{"Sale":"0x...0"}). + +### Fetching our NFTs + +To retrieve our newly created NFTs we will use the Indexer subsystem to call Get Token Supply, which will return us the information and metadata for the given contract address. You will find this in the `CUI_Purchase` blueprint. + +### Purchasing an NFTs + +To allow the player to purchase an NFT we will use the SequenceSDK subsystem to create and send a `PrimaryPurchase` transaction the desired `Web 3 Game Item(Sale)` and will use the contracts "Sale" property to reference our `Web 3 Game Item(Sale)`. You will find this in the `CUI_PurchaseItem` blueprint. + +### Fetch the players NFTs + +To retrieve the players NFTs will be using the Indexer Subsystem to call Get Token Balances, which will return us all the contract Balances for the given wallet address. Once returned, we will call Get Token Balances once again, but this time for each specific contract, which will return us the balance plus the information and metadata for the given contract. You will find this in the `CUI_Vault` blueprint. + +### Burn the players NFTs + +To give the player the rewards for using one of our NFTs we will use the SequenceSDK subsystem to create and send a `Burn` transaction of the desired `Web 3 Game Item which will return us the transaction status and the contract address, to verify the success of the items burn. On Succes, we will use the contracts properties to give the players their reward. You will find this in the `CUI_VaultItem` blueprint. + + +For a more detailed explanation go to [Read From Blockchain](/sdk/unreal/read-from-blockchain/) and [Write to Blockchain](/sdk/unreal/read-from-blockchain/) sections. + + +### Sign a Message To sign a message, first retrieve the user's wallet reference. Then, use the input message from the boilerplate and initiate the signing process through the wallet to generate the signature. diff --git a/nav.ts b/nav.ts index 54ed5f939b7..acd8795548f 100644 --- a/nav.ts +++ b/nav.ts @@ -518,7 +518,10 @@ export const sidebar = { text: 'Game Developers', collapsed: true, items: [ - { text: 'Build a Game with WebGL', collapsed: true, link: '/guides/webgl-guide' }, + { text: 'Build a Game with WebGL', + collapsed: true, + link: '/guides/webgl-guide' + }, { text: 'Build a Unity Game', collapsed: true, From 011c8f9d4cc6c1bbfd0163d02d53aabb1a9eff0d Mon Sep 17 00:00:00 2001 From: caballoninja Date: Mon, 20 Jan 2025 15:10:14 -0300 Subject: [PATCH 2/6] Fixed brackets error --- docs/pages/guides/unreal-ew-guide.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/guides/unreal-ew-guide.mdx b/docs/pages/guides/unreal-ew-guide.mdx index 41ed0fc63ed..ce0c511edb1 100644 --- a/docs/pages/guides/unreal-ew-guide.mdx +++ b/docs/pages/guides/unreal-ew-guide.mdx @@ -74,7 +74,7 @@ In our case we are starting with an ERC-1155 contract, for our Resource Bundle p Once we've made our items we will now create their respective sale contracts by deploying a new contract and selecting `Web 3 Game Item(Sale)`. -We will add to our Web 3 Game items its corresponding rewards and it's Sale contract address as a property (ie {"BundleSize":"Large"},{"Sale":"0x...0"}). +We will add to our Web 3 Game items its corresponding rewards and it's Sale contract address as a property. ### Fetching our NFTs From c1cf1d073cf43782d68c5b2c4d1ba9693db07ef5 Mon Sep 17 00:00:00 2001 From: caballoninja Date: Wed, 22 Jan 2025 10:58:52 -0300 Subject: [PATCH 3/6] Improvements --- docs/pages/guides/unreal-ew-guide.mdx | 36 ++++++++++++--------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/docs/pages/guides/unreal-ew-guide.mdx b/docs/pages/guides/unreal-ew-guide.mdx index ce0c511edb1..a666bed5878 100644 --- a/docs/pages/guides/unreal-ew-guide.mdx +++ b/docs/pages/guides/unreal-ew-guide.mdx @@ -23,9 +23,9 @@ If you have the Unreal Engine installed go straight to [Unreal's Cropout page.]( If not then start by installing Epic Games Launcher: -1.Download and install the launcher from [Epic Games’ website].(https://www.unrealengine.com/en-US/download) +1.Download and install the launcher from [Epic Games’ website.](https://www.unrealengine.com/en-US/download). 2.Log In: Sign in or create an Epic Games account. -3.Find the Project: Go to the Unreal Engine tab, then the Learn section, and search for "Cropout Sample Project." +3.Find the Project: Go to the Unreal Engine tab, then the Learn section, and search for "Cropout Sample Project". 4.Download: Click Add to Library and then Install to download the project files. ## Download the Sequence Unreal Engine SDK @@ -36,11 +36,11 @@ Alternatively, [get the SDK from the Epic Games Marketplace.](/sdk/unreal/instal ### Configure your Project -1. [Sign in to the Sequence Builder Console](/solutions/builder/getting-started) -2. [Create a Project For Your Game in the Builder Console](/support/builder/project-management) -3. Setup an [Embedded Wallet in the Builder Console](/solutions/builder/embedded-wallet#embedded-wallet-in-builder) +1. [Sign in to the Sequence Builder Console.](/solutions/builder/getting-started) +2. [Create a Project For Your Game in the Builder Console.](/support/builder/project-management) +3. Setup an [Embedded Wallet in the Builder Console.](/solutions/builder/embedded-wallet#embedded-wallet-in-builder) 4. In your `SequenceConfig.ini` file, add your `WaaS Config Key` and your Builder API Key from the [Builder Console](/solutions/builder/getting-started#claim-an-api-access-key) under `Settings > API Access Keys`. -5. Dont forget to add your preferred Oauth client ids, which you must set in the Builder under `Onboard > Embedded Wallet > Configuration`. +5. Do not forget to add your preferred Oauth client ids, which you must set in the Builder under `Onboard > Embedded Wallet > Configuration`. ### Login using the Built-In UI @@ -52,21 +52,14 @@ For further customization, [learn how to create your own UI.](/sdk/unreal/authen :::: -## 2. Interact with the SDK - -To start our interaction with the Sequence SDK, open the Sequence Connector blueprint, locate the `Auth Success` event, and set the network to your builder project selected chain. -You can do this by using our Blueprint Subsystems like this: +## 2. Setting the Network Id and Chain +To start our interaction with the Sequence SDK, open the *Sequence Connector* blueprint, locate the `Auth Success` event on *Event Graph > Begin Play*, and we will call `Api Update Network Id` from the SequenceWalletBP Subsystem to set the wallet to your builders project selected chain. +In the same event, we will also call `Set Chain` from the Sequence Indexer Subsystem so we can correctly fetch the assets. ## 3. Get Wallet address -To display the wallet's address we first retrieve the user's wallet reference and use it to fetch and display the wallet's address from the selected network. - -Example Use Case:
Build a UserWidget for your users Web3 profile. - -{'img'} -{'img'} - +To display the wallet's address we first retrieve the user's wallet reference again using the SequenceWalletBP and use it to fetch and display the wallet's address from the selected network using `Api GetWallet Address` from the SequenceWalletBP Subsystem. We will display the user address on UI_Layer_Menu. ## 4. Set your NFTs @@ -86,15 +79,18 @@ To allow the player to purchase an NFT we will use the SequenceSDK subsystem to ### Fetch the players NFTs -To retrieve the players NFTs will be using the Indexer Subsystem to call Get Token Balances, which will return us all the contract Balances for the given wallet address. Once returned, we will call Get Token Balances once again, but this time for each specific contract, which will return us the balance plus the information and metadata for the given contract. You will find this in the `CUI_Vault` blueprint. +To retrieve the players NFTs will be using the Indexer Subsystem to call `Get Token Balances`, which will return us all the contract Balances for the given wallet address. Once returned, we will call Get Token Balances once again, but this time for each specific contract, which will return us the balance plus the information and metadata for the given contract. You will find this in the `CUI_Vault` blueprint. ### Burn the players NFTs -To give the player the rewards for using one of our NFTs we will use the SequenceSDK subsystem to create and send a `Burn` transaction of the desired `Web 3 Game Item which will return us the transaction status and the contract address, to verify the success of the items burn. On Succes, we will use the contracts properties to give the players their reward. You will find this in the `CUI_VaultItem` blueprint. +To give the player the rewards for using one of our NFTs we will use the SequenceSDK subsystem to create and send a `Burn` transaction of the desired `Web 3 Game Item` which will return us the transaction status and the contract address, to verify the success of the items burn. On Succes, we will use the contracts properties to give the players their reward. You will find this in the `CUI_VaultItem` blueprint. + +For a more detailed explanation go to [Read From Blockchain](/sdk/unreal/read-from-blockchain/) and [Write to Blockchain](/sdk/unreal/write-to-blockchain/) sections. -For a more detailed explanation go to [Read From Blockchain](/sdk/unreal/read-from-blockchain/) and [Write to Blockchain](/sdk/unreal/read-from-blockchain/) sections. +## 5. Sign out the player +To sign out the player and terminate his session we will call Clear Session from the Sequence Sessions Subsytem, this way we will remove his stored credentials and the user will need to login again when he returns. We will be calling this method in the UI_Layer_Menu. ### Sign a Message From 6e98dc7e9554156a49e135c9d9b56a7b1bda3a3e Mon Sep 17 00:00:00 2001 From: hazlosports Date: Tue, 28 Jan 2025 10:14:43 -0300 Subject: [PATCH 4/6] fixes --- docs/pages/guides/unreal-ew-guide.mdx | 10 +++++++++- nav.ts | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/pages/guides/unreal-ew-guide.mdx b/docs/pages/guides/unreal-ew-guide.mdx index a666bed5878..b2af4d1ab8b 100644 --- a/docs/pages/guides/unreal-ew-guide.mdx +++ b/docs/pages/guides/unreal-ew-guide.mdx @@ -1,5 +1,5 @@ --- -title: Build a Game with Unreal Engine +title: Building and Integrating Web3 Game Features with Sequence's Unreal Engine SDK description: Integrate the Sequence Wallet, fetch your players assets, sign messages, send transactions and more using Sequence's Unreal SDK. --- @@ -24,10 +24,14 @@ If you have the Unreal Engine installed go straight to [Unreal's Cropout page.]( If not then start by installing Epic Games Launcher: 1.Download and install the launcher from [Epic Games’ website.](https://www.unrealengine.com/en-US/download). + 2.Log In: Sign in or create an Epic Games account. + 3.Find the Project: Go to the Unreal Engine tab, then the Learn section, and search for "Cropout Sample Project". + 4.Download: Click Add to Library and then Install to download the project files. + ## Download the Sequence Unreal Engine SDK To get started, download the [latest version](https://github.com/0xsequence/sequence-unreal/releases) of the Sequence SDK and put the `SequencePlugin` folder into your Unreal project's `Plugin` folder. @@ -37,9 +41,13 @@ Alternatively, [get the SDK from the Epic Games Marketplace.](/sdk/unreal/instal ### Configure your Project 1. [Sign in to the Sequence Builder Console.](/solutions/builder/getting-started) + 2. [Create a Project For Your Game in the Builder Console.](/support/builder/project-management) + 3. Setup an [Embedded Wallet in the Builder Console.](/solutions/builder/embedded-wallet#embedded-wallet-in-builder) + 4. In your `SequenceConfig.ini` file, add your `WaaS Config Key` and your Builder API Key from the [Builder Console](/solutions/builder/getting-started#claim-an-api-access-key) under `Settings > API Access Keys`. + 5. Do not forget to add your preferred Oauth client ids, which you must set in the Builder under `Onboard > Embedded Wallet > Configuration`. diff --git a/nav.ts b/nav.ts index acd8795548f..d4f41760508 100644 --- a/nav.ts +++ b/nav.ts @@ -523,7 +523,7 @@ export const sidebar = { link: '/guides/webgl-guide' }, { - text: 'Build a Unity Game', + text: 'Build a Game with Unity', collapsed: true, link: '/guides/jelly-forest-unity-guide', }, @@ -533,7 +533,7 @@ export const sidebar = { link: '/guides/building-transaction-heavy-games-with-unity', }, { - text: 'How to build a Game with Unreal Engine', + text: 'Build a Game with Unreal Engine', collapsed: true, link: '/guides/unreal-ew-guide', }, From 532215d003533e093309ef91df09110c2141c9ae Mon Sep 17 00:00:00 2001 From: Quinn Purdy Date: Tue, 28 Jan 2025 11:30:25 -0500 Subject: [PATCH 5/6] Added a space after numbers --- docs/pages/guides/unreal-ew-guide.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/pages/guides/unreal-ew-guide.mdx b/docs/pages/guides/unreal-ew-guide.mdx index b2af4d1ab8b..2883f207822 100644 --- a/docs/pages/guides/unreal-ew-guide.mdx +++ b/docs/pages/guides/unreal-ew-guide.mdx @@ -23,13 +23,13 @@ If you have the Unreal Engine installed go straight to [Unreal's Cropout page.]( If not then start by installing Epic Games Launcher: -1.Download and install the launcher from [Epic Games’ website.](https://www.unrealengine.com/en-US/download). +1. Download and install the launcher from [Epic Games’ website.](https://www.unrealengine.com/en-US/download). -2.Log In: Sign in or create an Epic Games account. +2. Log In: Sign in or create an Epic Games account. -3.Find the Project: Go to the Unreal Engine tab, then the Learn section, and search for "Cropout Sample Project". +3. Find the Project: Go to the Unreal Engine tab, then the Learn section, and search for "Cropout Sample Project". -4.Download: Click Add to Library and then Install to download the project files. +4. Download: Click Add to Library and then Install to download the project files. ## Download the Sequence Unreal Engine SDK From 65b3f9113053ed6f1a31651bfd05cac21c9d1df8 Mon Sep 17 00:00:00 2001 From: caballoninja Date: Wed, 5 Feb 2025 12:08:40 -0300 Subject: [PATCH 6/6] Spacing for readability --- docs/pages/guides/unreal-ew-guide.mdx | 43 ++++++++++----------------- 1 file changed, 16 insertions(+), 27 deletions(-) diff --git a/docs/pages/guides/unreal-ew-guide.mdx b/docs/pages/guides/unreal-ew-guide.mdx index b2af4d1ab8b..2987c726f58 100644 --- a/docs/pages/guides/unreal-ew-guide.mdx +++ b/docs/pages/guides/unreal-ew-guide.mdx @@ -5,20 +5,22 @@ description: Integrate the Sequence Wallet, fetch your players assets, sign mess # Intro to Cropout - Unreal Engine Game Guide -Cropout is a top-down casual RTS game built with Unreal Engine, serving as a powerful showcase for its advanced features. This documentation details the integration of Sequence’s Embedded Wallet SDK into the CropOut sample project, enabling seamless blockchain functionality. With this integration, players can access features like smart contract wallets, in-game asset ownership, and transaction management—all without disruptive popups or gas fee requirements. The setup preserves the game’s intuitive experience while introducing blockchain-enabled capabilities for modern Web3 gaming. -In this guide we will walk you through how to integrate Embedded Wallet features using Sequence's Unreal SDK. +Cropout is a top-down casual RTS game built with Unreal Engine, in this guide we will walk you through how to integrate Embedded Wallet features using Sequence's Unreal SDK. + +With this integration, players will be able to access features like smart contract wallets, in-game asset ownership, and transaction management—all without disruptive popups or gas fee requirements. -Checkout the [Boilerplate for this guide.](https://github.com/0xsequence/sequence-unreal) +Checkout the [Boilerplate for this guide.](https://github.com/0xsequence/sequence-unreal) [Learn more about Embedded Wallets.](/solutions/wallets/overview#what-are-the-differences-between-these-options) + ## 1. Setup -::::steps ### Download the game sample + If you have the Unreal Engine installed go straight to [Unreal's Cropout page.](https://www.unrealengine.com/en-US/blog/cropout-casual-rts-game-sample-project). If not then start by installing Epic Games Launcher: @@ -53,34 +55,41 @@ Alternatively, [get the SDK from the Epic Games Marketplace.](/sdk/unreal/instal ### Login using the Built-In UI + On the Main Menu level blueprint we will spawn our `Sequence Connector` Actor which will initiate and display the Login Panel. We recommend using the Built-In UI for development purposes, here's a more [detailed explanation. ](/sdk/unreal/user_interfaces/) For further customization, [learn how to create your own UI.](/sdk/unreal/authentication/) -:::: ## 2. Setting the Network Id and Chain + To start our interaction with the Sequence SDK, open the *Sequence Connector* blueprint, locate the `Auth Success` event on *Event Graph > Begin Play*, and we will call `Api Update Network Id` from the SequenceWalletBP Subsystem to set the wallet to your builders project selected chain. In the same event, we will also call `Set Chain` from the Sequence Indexer Subsystem so we can correctly fetch the assets. + ## 3. Get Wallet address + To display the wallet's address we first retrieve the user's wallet reference again using the SequenceWalletBP and use it to fetch and display the wallet's address from the selected network using `Api GetWallet Address` from the SequenceWalletBP Subsystem. We will display the user address on UI_Layer_Menu. + ## 4. Set your NFTs + In our case we are starting with an ERC-1155 contract, for our Resource Bundle packs and Farming Boosts. To create the NFTs go to [Builder Console > Deploy > Contracts](/solutions/builder/contracts/) and select `Web3 Game Item`. Once we've made our items we will now create their respective sale contracts by deploying a new contract and selecting `Web 3 Game Item(Sale)`. We will add to our Web 3 Game items its corresponding rewards and it's Sale contract address as a property. + ### Fetching our NFTs To retrieve our newly created NFTs we will use the Indexer subsystem to call Get Token Supply, which will return us the information and metadata for the given contract address. You will find this in the `CUI_Purchase` blueprint. + ### Purchasing an NFTs To allow the player to purchase an NFT we will use the SequenceSDK subsystem to create and send a `PrimaryPurchase` transaction the desired `Web 3 Game Item(Sale)` and will use the contracts "Sale" property to reference our `Web 3 Game Item(Sale)`. You will find this in the `CUI_PurchaseItem` blueprint. @@ -93,31 +102,11 @@ To retrieve the players NFTs will be using the Indexer Subsystem to call `Get To To give the player the rewards for using one of our NFTs we will use the SequenceSDK subsystem to create and send a `Burn` transaction of the desired `Web 3 Game Item` which will return us the transaction status and the contract address, to verify the success of the items burn. On Succes, we will use the contracts properties to give the players their reward. You will find this in the `CUI_VaultItem` blueprint. - For a more detailed explanation go to [Read From Blockchain](/sdk/unreal/read-from-blockchain/) and [Write to Blockchain](/sdk/unreal/write-to-blockchain/) sections. -## 5. Sign out the player - -To sign out the player and terminate his session we will call Clear Session from the Sequence Sessions Subsytem, this way we will remove his stored credentials and the user will need to login again when he returns. We will be calling this method in the UI_Layer_Menu. - -### Sign a Message -To sign a message, first retrieve the user's wallet reference. Then, use the input message from the boilerplate -and initiate the signing process through the wallet to generate the signature. - -Example Use Case:
You can use this feature to sign a message from your backend, allowing you to verify your user's wallet upon receipt. - -{'img'} - -## 5. Send Ether to another User - -To send an Ether transaction, use the recipient's address and amount from the boilerplate's input fields to initiate -the transaction with the `SequenceWalletBP` subsystem and listen to the response event. +## 5. Sign out the player -Example Use Case:
A user initiates a payment transaction to another user within your game client. -{'img'} +To sign out the player and terminate his session we will call `Clear Session from the Sequence Sessions Subsytem, this way we will remove his stored credentials and the user will need to login again when he returns. We will be calling this method in the UI_Layer_Menu. -:::warning -Make sure to include your own error handling. The provided code snippets are simplified. -:::