Creating Programs
The SDK makes it easy to deploy new Solana programs with just a few lines of code.
More specifically, you can deploy any of the following programs programmatically:
Let's take a look at how we can do this!
NFT Collection
Deploy an NFT Collection program.
- React
- Javascript
const sdk = useSDK();
const metadata = {
name: "My NFT Collection",
symbol: "NFT",
};
const address = await sdk.deployer.createNftCollection(metadata);
const metadata = {
name: "My NFT Collection",
symbol: "NFT",
};
const address = await sdk.deployer.createNftCollection(metadata);
Token
Deploy a Token program.
- React
- Javascript
const sdk = useSDK();
const metadata = {
name: "My Token",
symbol: "TKN",
initialSupply: 100,
};
const address = await sdk.deployer.createToken(metadata);
const metadata = {
name: "My Token",
symbol: "TKN",
initialSupply: 100,
};
const address = await sdk.deployer.createToken(metadata);
NFT Drop
Deploy an NFT Drop program.
- React
- Javascript
const sdk = useSDK();
const metadata = {
name: "My NFT Drop",
symbol: "NFT",
totalSupply: 5,
};
const address = await sdk.deployer.createNftDrop(metadata);
const metadata = {
name: "My NFT Drop",
symbol: "NFT",
totalSupply: 5,
};
const address = await sdk.deployer.createNftDrop(metadata);