Skip to content

Instantly share code, notes, and snippets.

View Nithsua's full-sized avatar
🚀
Exploring what hypes me up

Nivas Muthu M G Nithsua

🚀
Exploring what hypes me up
View GitHub Profile
@Nithsua
Nithsua / lib.rs
Created February 11, 2022 12:44
Minting NFT
use anchor_lang::prelude::*;
use anchor_spl::token::{self, InitializeAccount, InitializeMint, MintTo, SetAuthority, Transfer};
declare_id!("");
#[program]
pub mod neft {
use super::*;
pub fn create_nft(ctx: Context<CreateNFT>, authority: Pubkey) -> ProgramResult {