Skip to content

Examples

The Aptos .NET SDK provides a number of examples to help you get started with the SDK. You can find the examples in the aptos-labs/aptos-dotnet-sdk repository.


  1. Install .NET

    To run the examples, you will need to install the .NET SDK. You can download the .NET SDK from the dotnet.microsoft.com website.

  2. Clone the Repository

    Clone the repository by running the following command:

    Terminal window
    git clone https://github.com/aptos-labs/aptos-dotnet-sdk.git
  3. Running the Examples

    You can run the examples by navigating to the Aptos.Examples directory and running the dotnet run --framework net8.0 command.

    Terminal window
    cd Aptos.Examples
    dotnet run --framework net8.0
  4. Selecting an Example

    When running the examples, you will be prompted to select an example. You can select the example by entering the number of the example you want to run or navigating with the arrow keys.

    examples-demonstration