@aptos-labs/ts-sdk - v7.4.0
    Preparing search index...

    Class Build

    A class to handle all Build transaction operations.

    Index
    • Initializes a new instance of the Aptos client with the specified configuration. This allows you to interact with the Aptos blockchain using the provided settings.

      Parameters

      • config: AptosConfig

        The configuration settings for the Aptos client.

      Returns Build

      import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";

      async function runExample() {
      // Create a configuration for the Aptos client
      const config = new AptosConfig({
      network: Network.TESTNET, // specify the network
      nodeUrl: "https://testnet.aptos.dev", // specify the node URL
      });

      // Initialize the Aptos client
      const aptos = new Aptos(config);

      console.log("Aptos client initialized:", aptos);
      }
      runExample().catch(console.error);
    config: AptosConfig