🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@aptos-labs/aptos-name-connector

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@aptos-labs/aptos-name-connector

Aptos name service connector

unpublished
latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Aptos Names Service Connector

Package for connecting to the Aptos Names Service and to search/mint for names.

aptos-name-connector is a React component that provides an easy way to connect to a wallet and sign transactions for the Aptos blockchain. It is designed to be simple to use and flexible enough to accommodate a variety of use cases.

Installation

You can install aptos-name-connector using npm:

npm install aptos-name-connector

Usage

To use aptos-name-connector in your React project, you can import the component and render it in your component tree:

import AptosNameConnector from "aptos-name-connector";

function MyComponent() {
  const signAndSubmitTransaction = (transaction) => {
    // Your code to sign the transaction
  };
  const isWalletConnected = true;
  const network = "mainnet";

  return (
    <AptosNameConnector
      onSignTransaction={handleSignTransaction}
      isWalletConnected={isWalletConnected}
      network={network}
    />
  );
}

The AptosNameConnector component takes three props:

  • onSignTransaction: callback function that will be called when a transaction needs to be signed. This function should accept a transaction payload as its only parameter and return a signed transaction object.
  • isWalletConnected: A boolean indicating whether the user's wallet is currently connected.
  • network: A string indicating the current network (e.g., "mainnet" or "testnet").

FAQs

Package last updated on 20 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts