Skip to content

nk4dev/vx3

Repository files navigation

vx3

The Web3 SDK for Payment, NFT, and more.

License: Apache-2.0

Packages

sdk package is in package/vx

  • package/vx3: The core package of vx3
  • apps/web
  • apps/server

Features

  • No Connection Required of API
  • NO Saas Fee
  • Multi Chain Supported
  • Easy to Use
  • Simple API

Use Cases

  • Payment
  • GameFi
  • NFT

Getting Started

Prerequisites

Node.js v16 or later
npm v8 or later
Metamask or other Web3 Wallet

Create App (Web)

1. Dashboard on Web

https://dash.varius.technology/create/project

2. Sign In with CLI

npx vx3 auth signin

Link Project

npx vx3 link

Create App (CLI)

npx vx3 create <project-name>

Start Server for Development

npx vx3 server --debug

Port Number

npx vx3 server --debug --port <port-number>

Specify Path to vx.config.json

npx vx3 serve -p "../vx.config.json"

Send

  • for javascript
import { vx } from "vx3";
vx.send({
  to: "0x1234...abcd",
  amount: "0.01",
  currency: "ETH",
  from: "0x5678...efgh", // optional
  sendSignature: true, // optional
});
  • for React
import { vx } from "vx3";

export default function App() {
  const handleSend = async () => {
    try {
      const txHash = await vx.send({
        to: "0x1234...abcd",
        amount: "0.01",
        currency: "ETH",
        from: "0x5678...efgh", // optional
        sendSignature: true, // optional
      });
      console.log("Transaction Hash:", txHash);
    } catch (error) {
      console.error("Error sending transaction:", error);
    }
  };

  return (
    <div>
      <button onClick={handleSend}>Send ETH</button>
    </div>
  );
}

License

Apache-2.0 License

owner

Nknight AMAMIYA (@nk4dev)

About

vx preview version.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages