mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-22 14:55:16 +00:00
Commit from m3o/m3o action
This commit is contained in:
17
nft/nft.go
17
nft/nft.go
@@ -24,6 +24,14 @@ func (t *NftService) Assets(request *AssetsRequest) (*AssetsResponse, error) {
|
||||
|
||||
}
|
||||
|
||||
// Get a list of collections
|
||||
func (t *NftService) Collections(request *CollectionsRequest) (*CollectionsResponse, error) {
|
||||
|
||||
rsp := &CollectionsResponse{}
|
||||
return rsp, t.client.Call("nft", "Collections", request, rsp)
|
||||
|
||||
}
|
||||
|
||||
// Create your own NFT (coming soon)
|
||||
func (t *NftService) Create(request *CreateRequest) (*CreateResponse, error) {
|
||||
|
||||
@@ -90,6 +98,15 @@ type Collection struct {
|
||||
Slug string `json:"slug"`
|
||||
}
|
||||
|
||||
type CollectionsRequest struct {
|
||||
Limit int32 `json:"limit"`
|
||||
Offset int32 `json:"offset"`
|
||||
}
|
||||
|
||||
type CollectionsResponse struct {
|
||||
Collections []Collection `json:"collections"`
|
||||
}
|
||||
|
||||
type Contract struct {
|
||||
// ethereum address
|
||||
Address string `json:"address"`
|
||||
|
||||
Reference in New Issue
Block a user