-
Notifications
You must be signed in to change notification settings - Fork 0
/
holaplex.graphql
1503 lines (1338 loc) · 49.3 KB
/
holaplex.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
schema {
query: Query
mutation: Mutation
}
"""Input required for accepting an invitation to the organization."""
input AcceptInviteInput {
"""The ID of the invitation."""
invite: UUID!
}
"""The response returned after accepting an invitation to the organization."""
type AcceptInvitePayload {
"""The invitation to the organization that has been accepted."""
invite: Invite!
}
"""An access token used to authenticate and authorize access to the Hub API."""
type AccessToken {
"""A string representing the access token used to authenticate requests."""
accessToken: String!
"""A timestamp indicating when the access token will expire."""
expiresAt: NaiveDateTime!
"""A string indicating the type of access token, such as "Bearer"."""
tokenType: String!
}
enum Action {
CREATE_DROP
CREATE_WALLET
MINT_EDITION
RETRY_DROP
RETRY_MINT
TRANSFER_ASSET
CREATE_COLLECTION
RETRY_COLLECTION
MINT
MINT_COMPRESSED
UPDATE_MINT
}
"""Represents the cost of performing a certain action on different blockchains"""
type ActionCost {
"""enum that represents the type of action being performed."""
action: Action!
"""a vector of BlockchainCost structs that represents the cost of performing the action on each blockchain."""
blockchains: [BlockchainCost!]!
}
"""An enum type named Affiliation that defines a user's association to an organization. The enum is derived using a Union attribute. It has two variants, each containing an associated data type:"""
union Affiliation = Owner | Member
"""Fireblocks-defined blockchain identifiers."""
enum AssetType {
"""Mainnet Solana"""
SOL
"""Mainnet Polygon"""
MATIC
"""Ethereum Mainnet"""
ETH
}
enum Blockchain {
ETHEREUM
POLYGON
SOLANA
}
"""Represents the cost of performing an action on a specific blockchain"""
type BlockchainCost {
"""enum that represents the blockchain on which the action is being performed."""
blockchain: Blockchain!
"""represents the cost in credits for performing the action on the blockchain. If nil then the action is not supported on the blockchain."""
credits: Int
}
type Collection {
"""The unique identifier for the collection."""
id: UUID!
"""The blockchain of the collection."""
blockchain: Blockchain!
"""The total supply of the collection. Setting to `null` implies unlimited minting."""
supply: Int
"""The creation status of the collection. When the collection is in a `CREATED` status you can mint NFTs from the collection."""
creationStatus: CreationStatus!
projectId: UUID!
"""The date and time in UTC when the collection was created."""
createdAt: DateTime!
"""The user id of the person who created the collection."""
createdById: UUID!
creditsDeductionId: UUID
"""
The blockchain address of the collection used to view it in blockchain explorers.
On Solana this is the mint address.
On EVM chains it is the concatenation of the contract address and the token id `{contractAddress}:{tokenId}`.
"""
address: String
"""The current number of NFTs minted from the collection."""
totalMints: Int!
"""The transaction signature of the collection."""
signature: String
"""The royalties assigned to mints belonging to the collection expressed in basis points."""
sellerFeeBasisPoints: Int!
"""
The metadata json associated to the collection.
## References
[Metaplex v1.1.0 Standard](https://docs.metaplex.com/programs/token-metadata/token-standard)
"""
metadataJson: MetadataJson
"""The list of minted NFTs from the collection including the NFTs address and current owner's wallet address."""
mints: [CollectionMint!]
"""The list of attributed creators for the collection."""
creators: [CollectionCreator!]
"""The list of current holders of NFTs from the collection."""
holders: [Holder!]
"""A list of all NFT purchases from the collection, including both primary and secondary sales."""
purchases: [MintHistory!] @deprecated(reason: "Use `mint_histories` instead")
"""A list of all NFT mints from the collection, including both primary and secondary sales."""
mintHistories: [MintHistory!]
drop: Drop
}
type CollectionCreator {
collectionId: UUID!
address: String!
verified: Boolean!
share: Int!
}
"""Represents a single NFT minted from a collection."""
type CollectionMint {
"""The unique ID of the minted NFT."""
id: UUID!
"""The ID of the collection the NFT was minted from."""
collectionId: UUID!
"""
The address of the NFT
On Solana this is the mint address.
On EVM chains it is the concatenation of the contract address and the token id `{contractAddress}:{tokenId}`.
"""
address: String
"""The wallet address of the owner of the NFT."""
owner: String!
"""The status of the NFT creation."""
creationStatus: CreationStatus!
"""The unique ID of the creator of the NFT."""
createdBy: UUID!
"""The date and time when the NFT was created."""
createdAt: DateTime!
"""The transaction signature associated with the NFT."""
signature: String
"""The unique edition number of the NFT."""
edition: Int!
"""The seller fee basis points (ie royalties) for the NFT."""
sellerFeeBasisPoints: Int!
"""credits deduction id"""
creditsDeductionId: UUID
"""Indicates if the NFT is compressed. Compression is only supported on Solana."""
compressed: Boolean!
"""The collection the NFT was minted from."""
collection: Collection
"""
The metadata json associated to the collection.
[Metaplex v1.1.0 Standard](https://docs.metaplex.com/programs/token-metadata/token-standard)
"""
metadataJson: MetadataJson
"""The update history of the mint."""
updateHistories: [UpdateHistory!]
}
type CollectionsMembers {
count: Float
project_id: String
name: String
blockchain: String
timestamp: TimeDimension
}
input CollectionsOrderByInput {
count: OrderBy
project_id: OrderBy
name: OrderBy
blockchain: OrderBy
timestamp: OrderBy
}
input CollectionsWhereInput {
AND: [CollectionsWhereInput!]
OR: [CollectionsWhereInput!]
count: FloatFilter
project_id: StringFilter
name: StringFilter
blockchain: StringFilter
timestamp: DateTimeFilter
}
input CreateCollectionInput {
project: UUID!
blockchain: Blockchain!
creators: [CreatorInput!]!
metadataJson: MetadataJsonInput!
}
type CreateCollectionPayload {
collection: Collection!
}
"""This struct represents the input for creating a new API credential, including the ID of the organization that the credential will be associated with and the friendly name assigned to the credential."""
input CreateCredentialInput {
"""The ID of the organization that the new API credential will be associated with."""
organization: UUID!
"""The friendly name assigned to the new API credential."""
name: String!
}
"""The response payload returned after successfully creating an API credential. It includes the newly created Credential object, which represents the API credential, as well as an `AccessToken` object that can be used to authenticate requests to the Hub API."""
type CreateCredentialPayload {
"""A `Credential` object representing the newly created API credential."""
credential: Credential!
"""An `AccessToken` object that can be used to authenticate requests to the Hub API."""
accessToken: AccessToken!
}
"""This input object is used for creating a customer and associated treasury for holding custodial wallets on behalf of the user."""
input CreateCustomerInput {
"""The unique identifier of the project to which the customer is associated."""
project: UUID!
}
"""This response represents the payload returned after successfully creating a new `customer` record. It contains a single field customer which is a `Customer` object representing the newly created customer record."""
type CreateCustomerPayload {
"""The customer record created by the create customer mutation."""
customer: Customer!
}
"""Input for creating a customer wallet."""
input CreateCustomerWalletInput {
"""The customer ID."""
customer: UUID!
"""Blockchain for wallet creation."""
assetType: AssetType!
}
"""Response after wallet creation."""
type CreateCustomerWalletPayload {
wallet: Wallet!
}
input CreateDropInput {
project: UUID!
price: Int
sellerFeeBasisPoints: Int
supply: Int
startTime: DateTime
endTime: DateTime
blockchain: Blockchain!
creators: [CreatorInput!]!
metadataJson: MetadataJsonInput!
}
type CreateDropPayload {
drop: Drop!
}
input CreateOrganizationInput {
name: String!
profileImageUrl: String
}
type CreateOrganizationPayload {
organization: Organization!
}
"""The input used for creating a project."""
input CreateProjectInput {
"""The ID of the organization the project belongs to."""
organization: UUID!
"""The friendly name to denote the project from others belonging to the organization."""
name: String!
"""The URL of the project's profile image."""
profileImageUrl: String
}
"""* The payload returned by the `createProject` mutation."""
type CreateProjectPayload {
"""* The project that was created."""
project: Project!
}
input CreateWebhookInput {
url: String!
organization: UUID!
description: String!
projects: [UUID!]!
filterTypes: [FilterType!]!
}
type CreateWebhookPayload {
webhook: Webhook!
secret: String!
}
enum CreationStatus {
BLOCKED
CANCELED
CREATED
FAILED
PENDING
REJECTED
}
"""An attributed creator for a collection or mint."""
input CreatorInput {
"""The wallet address of the creator."""
address: String!
"""
This field indicates whether the creator has been verified. This feature is only supported on the Solana blockchain.
## References
[Metaplex Token Metadata - Verify creator instruction](https://docs.metaplex.com/programs/token-metadata/instructions#verify-a-creator)
"""
verified: Boolean
"""The share of royalties payout the creator should receive."""
share: Int!
}
"""An `OAuth2` client application used for authentication with the Hub API."""
type Credential {
"""A user-friendly name assigned to the credential."""
name: String!
"""A unique identifier for the credential."""
clientId: String!
"""The ID of the user who created the credential."""
createdById: UUID!
"""The ID of the organization the credential belongs to."""
organizationId: UUID!
"""The datetime in UTC when the credential was created."""
createdAt: NaiveDateTime!
"""This field represents the user who created the credential."""
createdBy: User
}
type CreditDeposit {
id: UUID!
organization: UUID!
initiatedBy: UUID!
credits: Int!
cost: Float!
reason: DepositReason!
createdAt: DateTime!
perCreditCost: Float!
}
type Credits {
id: UUID!
balance: Int!
deposits: [CreditDeposit!]
}
"""A customer record represents a user in your service and is used to group custodial wallets within a specific project. This allows for easy management of wallets and associated assets for a particular customer within your service."""
type Customer {
"""The unique identifier for the customer record."""
id: UUID!
"""The ID of the project to which the customer record belongs."""
projectId: UUID!
"""The datetime when the customer record was created."""
createdAt: NaiveDateTime!
"""An optional datetime indicating the last time the customer record was updated. If the customer record has not been updated, this field will be `null`."""
updatedAt: NaiveDateTime
"""
Returns all the wallet addresses associated with the customer. The blockchain of the address is not included and they are in no particular order. In the future, the blockchain may be indicated with a pattern of {blockchain}:{address}.
This field returns null when there is no treasury assigned to the customer yet.
"""
addresses: [String!]
"""The NFTs owned by any of the customers' wallets."""
mints: [CollectionMint!]
"""The NFTs minted by the customer."""
mintHistories: [MintHistory!]
"""The treasury assigned to the customer, which contains the customer's wallets."""
treasury: Treasury
wallet(assetId: AssetType): [Wallet!]
}
type CustomersMembers {
count: Float
project_id: String
timestamp: TimeDimension
}
input CustomersOrderByInput {
count: OrderBy
project_id: OrderBy
timestamp: OrderBy
}
input CustomersWhereInput {
AND: [CustomersWhereInput!]
OR: [CustomersWhereInput!]
count: FloatFilter
project_id: StringFilter
timestamp: DateTimeFilter
}
"""
Implement the DateTime<FixedOffset> scalar
The input/output is a string in RFC3339 format.
"""
scalar DateTime
input DateTimeFilter {
equals: [String]
notEquals: [String]
in: [String]
notIn: [String]
inDateRange: [String]
notInDateRange: [String]
beforeDate: String
afterDate: String
set: Boolean
}
input DeactivateMemberInput {
id: UUID!
}
type DeductionTotals {
action: Action!
spent: Int!
}
"""The input for deleting a credential."""
input DeleteCredentialInput {
"""The unique identifier assigned to the credential to be deleted."""
credential: String!
}
"""The response for deleting a credential."""
type DeleteCredentialPayload {
"""The unique identifier assigned to the deleted credential."""
credential: String!
}
input DeleteWebhookInput {
webhook: UUID!
}
type DeleteWebhookPayload {
webhook: UUID!
}
enum DepositReason {
GIFTED
PURCHASED
}
type Drop {
"""The unique identifier for the drop."""
id: UUID!
"""The identifier of the project to which the drop is associated."""
projectId: UUID!
"""The creation status of the drop."""
creationStatus: CreationStatus!
"""The date and time in UTC when the drop is eligible for minting. A value of `null` means the drop can be minted immediately."""
startTime: DateTime
"""The end date and time in UTC for the drop. A value of `null` means the drop does not end until it is fully minted."""
endTime: DateTime
"""The cost to mint the drop in US dollars. When purchasing with crypto the user will be charged at the current conversion rate for the blockchain's native coin at the time of minting."""
price: Int!
"""The user id of the person who created the drop."""
createdById: UUID!
"""The date and time in UTC when the drop was created."""
createdAt: DateTime!
pausedAt: DateTime
"""
The shutdown_at field represents the date and time in UTC when the drop was shutdown
If it is null, the drop is currently not shutdown
"""
shutdownAt: DateTime
"""The collection for which the drop is managing mints."""
collection: Collection!
"""The current status of the drop."""
status: DropStatus!
"""A list of all NFT purchases from this drop."""
purchases: [MintHistory!] @deprecated(reason: "Use `mint_histories` under `Collection` Object instead.")
}
"""The different phases of a drop."""
enum DropStatus {
"""Actively minting."""
MINTING
"""The minting process for the collection is complete."""
MINTED
"""The drop is scheduled for minting."""
SCHEDULED
"""The drop has expired and its end time has passed."""
EXPIRED
"""The drop is still being created and is not ready to mint."""
CREATING
"""The drop is temporarily paused and cannot be minted at the moment."""
PAUSED
"""The drop is permanently shut down and can no longer be minted."""
SHUTDOWN
"""The creation process for the drop has failed"""
FAILED
}
"""The input for editing the name of an existing credential by providing the `client_id` of the credential and the new `name` to be assigned."""
input EditCredentialInput {
"""A unique string identifier assigned to the credential during creation."""
clientId: String!
"""The new name to be assigned to the credential."""
name: String!
}
"""The response for editing the name of a credential."""
type EditCredentialPayload {
"""The updated credential with the edited name."""
credential: Credential!
}
input EditOrganizationInput {
id: UUID!
name: String!
profileImageUrl: String
}
type EditOrganizationPayload {
organization: Organization!
}
input EditProjectInput {
id: UUID!
name: String!
profileImageUrl: String
}
type EditProjectPayload {
project: Project!
}
input EditWebhookInput {
webhook: UUID!
url: String!
description: String!
projects: [UUID!]!
filterTypes: [FilterType!]!
disabled: Boolean
}
type EditWebhookPayload {
webhook: Webhook!
}
"""An event to which an external service can subscribe."""
type EventType {
"""Whether the event is archived or not."""
archived: Boolean
"""The date and time when the event was created, in string format."""
createdAt: String!
"""A description of the event."""
description: String!
"""The name of the event."""
name: String!
"""The JSON schema for the event payload."""
schemas: JSON!
"""The date and time when the event was last updated, in string format."""
updatedAt: String!
}
"""An enumeration of event types that can be subscribed to by a webhook."""
enum FilterType {
"""Event triggered when a new project is created"""
PROJECT_CREATED
"""Event triggered when a new customer is created"""
CUSTOMER_CREATED
"""Event triggered when a new customer treasury is created"""
CUSTOMER_TREASURY_CREATED
"""Event triggered when a new wallet is created for a project"""
PROJECT_WALLET_CREATED
"""Event triggered when a new wallet is created for a customer"""
CUSTOMER_WALLET_CREATED
"""Event triggered when a new drop is created"""
DROP_CREATED
"""Event triggered when a new drop is minted"""
DROP_MINTED
"""Event triggered when a mint has been successfully transfered"""
MINT_TRANSFERED
"""Event triggered when a new collection is created"""
COLLECTION_CREATED
"""Event triggered when an NFT is minted to a collection"""
MINTED_TO_COLLECTION
}
input FloatFilter {
equals: Float
notEquals: Float
in: [Float]
notIn: [Float]
set: Boolean
gt: Float
lt: Float
gte: Float
lte: Float
}
"""The holder of a collection."""
type Holder {
"""The collection ID that the holder owns."""
collectionId: UUID!
"""The wallet address of the holder."""
address: String!
"""The number of NFTs that the holder owns in the collection."""
owns: Int!
"""The specific mints from the collection that the holder owns."""
mints: [UUID!]!
}
"""Input object for importing a collection."""
input ImportCollectionInput {
project: UUID!
collection: String!
}
"""Represents the result of a successful import collection mutation."""
type ImportCollectionPayload {
"""The status of the collection import."""
status: CreationStatus!
}
"""An invitation sent to join a Holaplex organization."""
type Invite {
"""The ID of the invitation."""
id: UUID!
"""The email address of the user being invited to become a member of the organization."""
email: String!
"""The status of the invitation."""
status: InviteStatus!
"""The ID of the organization to which the invitation belongs."""
organizationId: UUID!
"""The ID of the user who created the invitation."""
createdBy: UUID!
"""The datetime, in UTC, when the invitation to join the organization was created."""
createdAt: DateTime!
"""The datetime, in UTC, when the invitation status was updated."""
updatedAt: DateTime
"""The member record that is generated after the invitation to join the organization is accepted. When the user has not accepted the invitation, this field returns `null`."""
member: Member
"""The organization to which the invitation to join belongs."""
organization: Organization
}
"""Input required for inviting a member to the organization."""
input InviteMemberInput {
"""The ID of the organization."""
organization: UUID!
"""The email address of the invited user."""
email: String!
}
"""The status of a member invitation."""
enum InviteStatus {
"""The member invitation has been accepted by the invited user."""
ACCEPTED
"""The member invitation has been revoked by an existing member of the organization and is no longer valid."""
REVOKED
"""The member invitation has been sent to the invited user."""
SENT
}
"""A scalar that can represent any JSON value."""
scalar JSON
"""A member of a Holaplex organization, representing an individual who has been granted access to the organization."""
type Member {
"""The ID of the user who has been granted access to the Holaplex organization as a member."""
userId: UUID!
"""The user identity who is a member of the organization."""
user: User
"""The unique identifier of the member."""
id: UUID!
"""The ID of the Holaplex organization to which the user has been granted access."""
organizationId: UUID!
"""The datetime, in UTC, when the member joined the organization."""
createdAt: DateTime!
"""The datetime, in UTC, when the member was revoked from the organization."""
revokedAt: DateTime
"""The ID of the invitation that the member accepted to join the organization."""
inviteId: UUID!
"""The datetime, in UTC, when the member was deactivated from the organization."""
deactivatedAt: DateTime
"""The Holaplex organization to which the member belongs, representing an individual who has been granted access to the organization."""
organization: Organization
"""The invitation to join the Holaplex organization that the member accepted in order to gain access to the organization."""
invite: Invite
}
"""
The collection's associated metadata JSON.
## References
[Metaplex v1.1.0 Standard](https://docs.metaplex.com/programs/token-metadata/token-standard)
"""
type MetadataJson {
id: UUID!
identifier: String!
"""The assigned name of the NFT."""
name: String!
"""The URI for the complete metadata JSON."""
uri: String!
"""The symbol of the NFT."""
symbol: String!
"""The description of the NFT."""
description: String!
"""The image URI for the NFT."""
imageOriginal: String!
"""An optional animated version of the NFT art."""
animationUrl: String
"""An optional URL where viewers can find more information on the NFT, such as the collection's homepage or Twitter page."""
externalUrl: String
attributes: [MetadataJsonAttribute!]
image: String!
}
"""An attribute of the NFT."""
type MetadataJsonAttribute {
id: UUID!
metadataJsonId: UUID!
"""The name of the attribute."""
traitType: String!
"""The value of the attribute."""
value: String!
}
input MetadataJsonAttributeInput {
traitType: String!
value: String!
}
input MetadataJsonCollectionInput {
name: String
family: String
}
input MetadataJsonFileInput {
uri: String
fileType: String
}
input MetadataJsonInput {
name: String!
symbol: String!
description: String!
image: String!
animationUrl: String
collection: MetadataJsonCollectionInput
attributes: [MetadataJsonAttributeInput!]!
externalUrl: String
properties: MetadataJsonPropertyInput
}
input MetadataJsonPropertyInput {
files: [MetadataJsonFileInput!]
category: String
}
"""Represents input data for `mint_edition` mutation with a UUID and recipient as fields"""
input MintDropInput {
"""The ID of the drop to mint to"""
drop: UUID!
"""The recipient of the mint"""
recipient: String!
}
"""Represents payload data for the `mint_edition` mutation"""
type MintEditionPayload {
collectionMint: CollectionMint!
}
"""A record of a minted NFT."""
type MintHistory {
id: UUID!
"""The ID of the NFT minted."""
mintId: UUID!
"""The wallet address of the buyer."""
wallet: String!
"""The signature of the transaction, if any."""
txSignature: String
"""The status of the creation of the NFT."""
status: CreationStatus!
"""The date and time when the purchase was created."""
createdAt: DateTime!
"""The ID of the collection that facilitated the mint, if any."""
collectionId: UUID!
"""The minted NFT."""
mint: CollectionMint
}
"""Represents input data for `mint_to_collection` mutation with a collection ID, recipient, metadata, and optional seller fee basis points as fields"""
input MintToCollectionInput {
"""The ID of the collection to mint to"""
collection: UUID!
"""The recipient of the mint"""
recipient: String!
"""The metadata of the mint"""
metadataJson: MetadataJsonInput!
"""The optional seller fee basis points"""
sellerFeeBasisPoints: Int
"""
The creators to be assigned to the NFT.
For Solana, this can be up to five creators. If the project treasury wallet is set as a creator and verified set to true the creator will be verified on chain.
For Polygon, this can be only 1 creator.
"""
creators: [CreatorInput!]!
compressed: Boolean
}
"""Represents payload data for `mint_to_collection` mutation"""
type MintToCollectionPayload {
"""The minted NFT"""
collectionMint: CollectionMint!
}
type Mutation {
"""Create an API credential to authenticate and authorize API requests to the Holaplex Hub."""
createCredential(input: CreateCredentialInput!): CreateCredentialPayload!
"""Edit the name assigned to the API credential."""
editCredential(input: EditCredentialInput!): EditCredentialPayload!
"""Delete the OAuth2 API credential."""
deleteCredential(input: DeleteCredentialInput!): DeleteCredentialPayload!
"""This mutation creates a customer record and a corresponding treasury that holds custodial wallets on behalf of a user. The treasury serves as a way to group the customer's wallets together. This makes it easier to manage wallets and associated assets for the user within a specific project. The customer and treasury are associated with the specified project ID. The response includes the newly created customer record. If there is an error connecting to the database or unable to emit a customer created event, the mutation will fail and an error will be returned."""
createCustomer(input: CreateCustomerInput!): CreateCustomerPayload!
"""
This mutation creates a new NFT collection. The collection returns immediately with a creation status of CREATING. You can [set up a webhook](https://docs.holaplex.dev/hub/For%20Developers/webhooks-overview) to receive a notification when the collection is ready to be minted.
For Solana, the collection is a sized Metaplex certified collection.
"""
createCollection(input: CreateCollectionInput!): CreateCollectionPayload!
"""This mutation tries to re-create a failed collection."""
retryCollection(input: RetryCollectionInput!): CreateCollectionPayload!
"""This mutation imports a Solana collection. See the [guide](https://docs.holaplex.com/hub/Guides/import-collection) for importing instructions."""
importSolanaCollection(input: ImportCollectionInput!): ImportCollectionPayload!
"""Update a collection attributes or creators."""
patchCollection(input: PatchCollectionInput!): PatchCollectionPayload!
"""
This mutation mints an NFT edition for a specific drop ID. The mint returns immediately with a creation status of CREATING. You can [set up a webhook](https://docs.holaplex.dev/hub/For%20Developers/webhooks-overview) to receive a notification when the mint is accepted by the blockchain.
# Errors
If the mint cannot be saved to the database or fails to be emitted for submission to the desired blockchain, the mutation will result in an error.
"""
mintEdition(input: MintDropInput!): MintEditionPayload!
"""
This mutation retries a mint which failed or is in pending state. The mint returns immediately with a creation status of CREATING. You can [set up a webhook](https://docs.holaplex.dev/hub/For%20Developers/webhooks-overview) to receive a notification when the mint is accepted by the blockchain.
# Errors
If the mint cannot be saved to the database or fails to be emitted for submission to the desired blockchain, the mutation will result in an error.
"""
retryMintEdition(input: RetryMintEditionInput!): RetryMintEditionPayload!
"""
This mutation mints either a compressed or standard NFT to a collection.
For Solana, the mint is verified and the collection size incremented.
"""
mintToCollection(input: MintToCollectionInput!): MintToCollectionPayload!
"""
This mutation updates a mint.
# Errors
If the mint cannot be saved to the database or fails to be emitted for submission to the desired blockchain, the mutation will result in an error.
"""
updateMint(input: UpdateMintInput!): UpdateMintPayload!
"""
This mutation retries updating a mint that failed by providing the ID of the `update_history`.
# Errors
If the mint cannot be saved to the database or fails to be emitted for submission to the desired blockchain, the mutation will result in an error.
"""
retryUpdateMint(input: RetryUpdateMintInput!): RetryUpdateMintPayload!
retryMintToCollection(input: RetryMintEditionInput!): RetryMintEditionPayload!
"""
Transfers an asset from one user to another on a supported blockchain network.
The mutation supports transferring standard or compressed NFTs.
The mutation is rejected if the wallet address is not managed by HUB.
"""
transferAsset(input: TransferAssetInput!): TransferAssetPayload!
"""
This mutation creates a new NFT drop and its associated collection. The drop returns immediately with a creation status of CREATING. You can [set up a webhook](https://docs.holaplex.dev/hub/For%20Developers/webhooks-overview) to receive a notification when the drop is ready to be minted.
Error
If the drop cannot be saved to the database or fails to be emitted for submission to the desired blockchain, the mutation will result in an error.
"""
createDrop(input: CreateDropInput!): CreateDropPayload!
"""
This mutation retries an existing drop.
The drop returns immediately with a creation status of CREATING.
You can [set up a webhook](https://docs.holaplex.dev/hub/For%20Developers/webhooks-overview) to receive a notification when the drop is ready to be minted.
Errors
The mutation will fail if the drop and its related collection cannot be located,
if the transaction response cannot be built,
or if the transaction event cannot be emitted.
"""
retryDrop(input: RetryDropInput!): CreateDropPayload!
"""This mutation allows for the temporary blocking of the minting of editions and can be resumed by calling the resumeDrop mutation."""
pauseDrop(input: PauseDropInput!): PauseDropPayload!
"""This mutation resumes a paused drop, allowing minting of editions to be restored"""
resumeDrop(input: ResumeDropInput!): ResumeDropPayload!
"""
Shuts down a drop by writing the current UTC timestamp to the shutdown_at field of drop record.
Returns the `Drop` object on success.
# Errors
Fails if the drop or collection is not found, or if updating the drop record fails.
"""
shutdownDrop(input: ShutdownDropInput!): ShutdownDropPayload!
"""
This mutation allows updating a drop and it's associated collection by ID.
It returns an error if it fails to reach the database, emit update events or assemble the on-chain transaction.
Returns the `PatchDropPayload` object on success.
"""
patchDrop(input: PatchDropInput!): PatchDropPayload!
"""
This mutation creates a new Holaplex organization, with the user triggering the mutation automatically assigned as the owner of the organization.
# Errors
This mutation produces an error if it is unable to connect to the database, emit the organization creation event, or if the user is not set in the X-USER-ID header.
"""
createOrganization(input: CreateOrganizationInput!): CreateOrganizationPayload!
"""This mutation edits the name or profile image of the organization."""
editOrganization(input: EditOrganizationInput!): EditOrganizationPayload!
"""
This mutation creates a new project under the specified organization.
# Errors
This mutation produces an error if it is unable to connect to the database, emit the project creation event, or if the user is not set in the X-USER-ID header.
"""
createProject(input: CreateProjectInput!): CreateProjectPayload!
"""This mutations edits the name and profile image of the project."""
editProject(input: EditProjectInput!): EditProjectPayload!
"""
To invite a person to the organization, provide their email address.
# Error
This mutation will produce an error if it is unable to connect to the database or if there is no associated user set in the X-USER-ID header.
"""
inviteMember(input: InviteMemberInput!): Invite!
"""
Accept an invite to the organization.
# Error
This mutation will produce an error if it is unable to connect to the database or if the user's email does not match the invitation.
"""
acceptInvite(input: AcceptInviteInput!): AcceptInvitePayload!
"""
Returns member object on success
# Errors
This code may result in an error if the update to the database fails or if it fails to produce an event.
"""
deactivateMember(input: DeactivateMemberInput!): Member!
"""
Returns member object on success
# Errors
This code may result in an error if the update to the database fails or if it fails to produce an event.
"""
reactivateMember(input: ReactivateMemberInput!): Member!
"""
Create a wallet for a customer and assign it to the customer's treasury account.
# Errors
The mutation will result in an error if it is unable to interact with the database or communicate with Fireblocks.
"""
createCustomerWallet(input: CreateCustomerWalletInput!): CreateCustomerWalletPayload!
"""
Res
# Errors
This function fails if ...
"""
createWebhook(input: CreateWebhookInput!): CreateWebhookPayload!
"""
Res
# Errors
This function fails if ...
"""
deleteWebhook(input: DeleteWebhookInput!): DeleteWebhookPayload!
"""
Res
# Errors
This function fails if ...
"""
editWebhook(input: EditWebhookInput!): EditWebhookPayload!
}
"""
ISO 8601 combined date and time without timezone.
# Examples
* `2015-07-01T08:59:60.123`,
"""
scalar NaiveDateTime
enum OrderBy {
asc
desc
}
"""A Holaplex organization is the top-level account within the Holaplex ecosystem. Each organization has a single owner who can invite members to join. Organizations use projects to organize NFT campaigns or initiatives."""
type Organization {