Typescript
Create dApp
Typescript
Create dApp
If you need to create a dApp via the SDK it can be done like so:
The functions in this code snippet require gas. We provide enough gas to get started when you sign up via the dashboard.
If you need more, reach out to us on Discord or use an Arbitrum Sepolia faucet.
import { Chains, OpenFormatSDK } from "@openformat/sdk";
const sdk = new OpenFormatSDK({
network: Chains.arbitrumSepolia,
signer: process.env.PRIVATE_KEY, // Your wallet's private key
});
// Create App
const app = await sdk.factory.createApp({
name: "APP_NAME",
});
// Create XP Token
const xp = await sdk.App.createToken({
name: "XP",
symbol: "XP",
supply: 0,
});
console.log("APP_ID", app.id);
console.log("XP_ADDRESS", xp.address());