๐ชBasic usage
Init SDK
import DGMarketplace from "dg-marketplace-sdk";
DGMarketplace.init(BASE_DG_URL, META_SERVER, RPC_PROVIDER);Parameter
Type
Description
List all collections available for sale
const collections = await DGMarketplace.getCollections(false);Init Provider
import DGMarketplace from "dg-marketplace-sdk";
DGMarketplace.initProvider(walletProvider, walletType);Parameter
Type
Description
Get Ice Allowance
import DGMarketplace from "dg-marketplace-sdk";
DGMarketplace.getIceAllowance(walletAddress);Parameter
Type
Description
List all collections available for sale
List all collections available for sale
Parameter
Type
Description
List groups from one collections
Parameter
Type
Description
List tokens ID from one group
Parameter
Type
Description
Generate Payment Link
Parameter
Type
Description
Buy Item
Parameter
Type
Description
Get transaction status
Parameter
Type
Description
Get Token Metadata
Parameter
Type
Description
Approve ICE spender contract
Parameter
Type
Description
Roadmap
Last updated