This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const baseUrl = "https://staging.crossmint.com/api"; | |
| const chain = "polygon"; | |
| const wallet = "0x1234abcde..."; | |
| const options = { | |
| method: "GET", | |
| headers: { "X-API-KEY": "YOUR_API_KEY" }, | |
| }; | |
| fetch( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const options = { | |
| method: "POST", | |
| headers: { "X-API-KEY": "YOUR_API_KEY", "Content-Type": "application/json" }, | |
| body: JSON.stringify({ | |
| message: "The message to be signed", | |
| }), | |
| }; | |
| const baseUrl = "https://staging.crossmint.com/api"; | |
| const chain = "polygon"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { CrossmintPayButton } from "@crossmint/client-sdk-react-ui"; | |
| // Add this component next to your minting button | |
| <CrossmintPayButton | |
| projectId="YOUR_PROJECT_ID" | |
| collectionId="YOUR_COLLECTION_ID" | |
| environment="ENVIRONMENT" | |
| mintConfig={{ | |
| type: "erc-721", | |
| totalPrice: "0.001", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { CrossmintPaymentElement } from "@crossmint/client-sdk-react-ui"; | |
| <CrossmintPaymentElement | |
| projectId="YOUR_PROJECT_ID" | |
| collectionId="YOUR_COLLECTION_ID" | |
| environment="staging" | |
| mintConfig={{ | |
| type: "erc-721", | |
| totalPrice: "0.001", | |
| quantity: "1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const options = { | |
| method: "PATCH", | |
| headers: { | |
| "X-API-KEY": "YOUR_API_KEY", | |
| "Content-Type": "application/json", | |
| }, | |
| body: JSON.stringify({ | |
| metadata: { | |
| name: "Crossmint NFT #1", | |
| description: "Super Awesome NFT #1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const options = { | |
| method: "POST", | |
| headers: { | |
| "X-API-KEY": "YOUR_API_KEY", | |
| "Content-Type": "application/json", | |
| }, | |
| body: JSON.stringify({ | |
| metadata: { | |
| name: "Crossmint NFT #1", | |
| description: "Awesome NFT #1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const options = { | |
| method: "POST", | |
| headers: { | |
| "X-API-KEY": "YOUR_API_KEY", | |
| "Content-Type": "application/json", | |
| }, | |
| body: JSON.stringify({ | |
| chain: "polygon", | |
| metadata: { | |
| name: "Crossmint NFT", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const options = { | |
| method: "POST", | |
| headers: { | |
| "X-API-KEY": "YOUR_API_KEY", | |
| "Content-Type": "application/json", | |
| }, | |
| body: JSON.stringify({ | |
| chain: "polygon", | |
| contractAddress: "0x_CONTRACT_ADDRESS", | |
| from: "0x_FROM_ADDRESS", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const baseUrl = "https://staging.crossmint.com/api"; | |
| const chain = "polygon"; | |
| const wallet = "0x1234abcde..."; | |
| const options = { | |
| method: "GET", | |
| headers: { "X-API-KEY": "YOUR_API_KEY" }, | |
| }; | |
| fetch( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const options = { | |
| method: "POST", | |
| headers: { | |
| "X-API-KEY": "YOUR_API_KEY", | |
| "Content-Type": "application/json", | |
| }, | |
| body: JSON.stringify({ | |
| chain: "ethereum", | |
| email: "testy@test.xyz", | |
| }), |
NewerOlder