Create Collection
to create a new collection
POST
<base_url>/port/api/v1/commerce/collection
Please replace <base_url>
as explained here.
Headers
Name | Type | Description |
---|---|---|
commerce-api-key* | string | Commerce API Key |
issuer-address* | string | Contract Address of API Key owner |
Request Body
Name | Type | Description |
---|---|---|
payload* | object | Single object of collection detail that will be created. |
payload.name* | string | Name of the collection |
payload.symbol* | string | Collection symbol based on ERC721Metadata symbol. |
payload.salt | string | Salt used in Collection creation. If provided: it must be a random keccak256 hash like otherwise, if not provided: it will be randomly generated. |
The API responds with 201 when the collection transaction is sent to the blockchain network.
Body Attribute | Description | Format |
---|---|---|
result | Single object of collection creation result | object |
result.name | The value will be the same as the parameter sent in the request | string |
result.symbol | The value will be the same as the parameter sent in the request. | string |
result.collectionAddress | collection address that is generated by create2, like | string |
result.status | The status of the collection creation transaction.
| string |
Request Body Example
Last updated