Files
sol-incinerator-oss/config.ts
tymur999 0577da5fa2 initial
2024-07-12 18:47:21 -05:00

17 lines
446 B
TypeScript

import web3, {Connection, PublicKey} from "@solana/web3.js";
import {Wallet} from "@project-serum/anchor";
export class Config {
public static RPC_URL: string = process.env.RPC_URL!;
public static solWallet = new Wallet(
web3.Keypair.fromSeed(
Uint8Array.from(
JSON.parse(process.env.WALLET!)
).slice(0, 32)
)
);
public static connection = new Connection(Config.RPC_URL, {
commitment: "processed"
});
}