• This function creates an AddWallet operation using the specified Honeycomb instance and the provided arguments. The operation is used to add a wallet to the user's profile in Honeycomb.

    Parameters

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the operation.

    Example

    const honeycomb = new Honeycomb(connection);

    // Define the AddWallet arguments.
    const args = {
    wallet: new web3.Keypair(), // Replace with your wallet keypair.
    env: "main", // Optional: specify the environment (default is "main").
    };

    // Create AddWallet operation.
    const { operation } = await createAddWalletOperation(honeycomb, args);
    operation.send(); // The generated AddWallet operation.

Generated using TypeDoc