WALLETS-AS-A-SERVICE
Onboard players to wallets-as-a-service with one API call
Bring your own contracts and still use custodial wallets
Currently supporting any EVM-compatible chain or multiple chains
fast
Stardust offers a simple REST API, for the fastest and simplest way to onboard new players to your game and handle their keys.
Create custodial wallets with a single API call.
Flexible
Bring your own contracts and still use custodial wallets.
Secure
Stardust secures the private key management for all your players with multi-signatory contract ownership to simplify and streamline all the details.
We make it easy to safely store and transfer digital assets, without sacrificing user experience and speed.
import { ethers } from 'ethers';
import { StardustCustodialSdk, StardustApp, StardustWallet, EthersSigner }
from '@stardust-gg/stardust-custodial-sdk';
import { contractAddress, contractAbi } from '../contracts/erc721_sample';
// Ethers provider creation
const rpcUrl = 'https://your_rpc_providers.url';
const provider = new ethers.providers.JsonRpcProvider(rpcUrl);
// Get SDK and wallet
const sdk = new StardustCustodialSDK(STARDUST_API_KEY);
const wallet: StardustWallet = await sdk.getWallet(WALLET_ID);
// Connect custodial wallet to Ethers signer
const signer: EthersSigner = wallet.signers.ethers.connect(provider);
// Retrieve contract object
const contract721 = new ethers.Contract(contractAddress, contractAbi, signer);
// Mint to custodial wallet
await contract721.mint()