Class ExperimentalExperimental

A class to have experimental functionality to the SDK. Anything used here is subject to change.

Hierarchy (view full)

Experimental

  • Experimental

    Initializes a new instance of the Aptos client with the provided configuration.

    Parameters

    • config: AptosConfig

      The configuration settings for the Aptos client.

    Returns Experimental

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

    async function runExample() {
    // Create a new Aptos client with Testnet configuration
    const config = new AptosConfig({ network: Network.TESTNET }); // Specify your own network if needed
    const aptos = new Aptos(config);

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

Properties

config: AptosConfig

The configuration settings for the Aptos client.

MMNEPVFCICPMFPCPTTAAATR