📪Basic usage
Init SDK
Parameter | Type | Description |
---|---|---|
|
| Required. DG Backend API URL for Marketplace |
|
| Required. DG Metaserver API for Marketplace |
|
| Required. RPC Provider of your choice. Example Alchemy Polygon RPC. |
List all collections available for sale
Init Provider
Parameter | Type | Description |
---|---|---|
|
| Required. Object provider. window.metamask or web3auth provider |
|
| Required. Enum = Metamask or Web3Auth |
Get Ice Allowance
Parameter | Type | Description |
---|---|---|
|
| Required. User wallet address |
List all collections available for sale
List all collections available for sale
Parameter | Type | Description |
---|---|---|
|
| Optional. (Filter) Filter one particular seller address. |
|
| Optional. (Filter) Filter partial name of the collection |
|
| Optional. (Pagination) Number of items to retrieve |
|
| Optional. (Pagination) Number of items to skip |
List groups from one collections
Parameter | Type | Description |
---|---|---|
|
| Optional. (Filter) Collection address |
|
| Optional. ASC or DESC |
|
| Optional. (Pagination) Number of items to retrieve |
|
| Optional. (Pagination) Number of items to skip |
|
| Optional. (Filter) Filter by collection name using wildcards |
|
| Optional. (Filter) Filter by a particular seller address |
List tokens ID from one group
Parameter | Type | Description |
---|---|---|
|
| Required. Token address |
|
| Required. ID from the resource (group) |
|
| Optional. (Filter) Filter by a particular seller address |
Generate Payment Link
Parameter | Type | Description |
---|---|---|
|
| Required. binance or coinbase or paper |
|
| Required. Your wallet address |
|
| Required. NFT Token address |
|
| Required. NFT Token unique ID |
|
| Required. NFT resource ID (group) |
Buy Item
Parameter | Type | Description |
---|---|---|
|
| Required. Your wallet address |
|
| Required. NFT Token address |
|
| Required. NFT Token unique ID |
Get transaction status
Parameter | Type | Description |
---|---|---|
|
| Required. Polygon transaction hash (Returned from buy item) |
Get Token Metadata
Parameter | Type | Description |
---|---|---|
|
| Required. Collection address to be query. |
|
| Required. Token ID of the collection. |
Approve ICE spender contract
Parameter | Type | Description |
---|---|---|
|
| Required. User wallet address for approval. |
Roadmap
Improve MetaTx functions to reuse code
Handle isActive inside the SDK
Handle user wallet inside the SDK
Last updated