- Installation
- Your First Workflow Using Crossmint
- Supported Operations
- API Reference
- Understanding Wallet Locators
- Example Workflows
- Local Development Setup
- License
This community node for n8n provides a complete integration with Crossmint's Wallet and Checkout APIs. It allows users and AI agents to program digital money inside wallets, and automate the purchase of physical products all within your n8n workflows.
Note: to run Crossmint nodes, you must be using the self hosted version of n8n. Follow this guide to set it up.
Then, install the latest Crossmint node from npm:
- Open your local n8n
- From the menu, go to Settings > Community Nodes.
- Click on Install a community node.
- Enter the npm package name:
n8n-nodes-crossmint
. - Click Install.
Once installed, the "Crossmint" node will appear in your workflow editor.
Once you've installed the community node, here's how to add and configure your first Crossmint node:
- In your n8n workflow editor, click the "+" button to add a new node
- Search for "Crossmint" in the node library
- Select the Crossmint node from the results
- For this example, we'll use "Get or Create Wallet" operation:
- Set Resource to "Wallet"
- Set Operation to "Get or Create Wallet"
- First, create a Crossmint project in Staging:
- Go to Crossmint Staging Console
- Create a new project or select an existing one
- Copy your server-side API key from the project settings
-
Back in n8n, in your Crossmint node, click on "Credential for Crossmint API" dropdown
-
Select "Create New" to add your Crossmint credentials (this will be available for all future Crossmint nodes)
-
In the credential configuration:
- Enter your Crossmint API Key (must be a server-side API key)
- Set Environment to "Staging" for testing
- Click "Save"
- Complete the wallet configuration (e.g., set Owner Type to "Email" and enter an email address)
β οΈ Important: Always use server-side API keys from Crossmint. Client-side keys will not work. For initial testing, always use Staging environment.
To test transactions in staging, you'll need test USDC tokens. You can get them from:
- Circle Faucet: https://faucet.circle.com/ - Get free testnet USDC
- Crossmint Telegram: https://t.me/crossmintdevs - Request USDC from Crossmint
The node is organized into two primary resources: Wallet and Checkout.
Operations for managing blockchain wallets which can hold and transfer money (in cryptocurrencies like USDC).
- Get or Create Wallet: Creates a non-custodial smart wallet or retrieves an existing one. You maintain full control via a private key that authorizes all transactions. This operation is idempotent.
- Get Wallet: Retrieves wallet details using its
walletLocator
. - Create Transfer: Sends tokens (like USDC) between wallets. Requires the wallet's private key to digitally sign and authorize the transfer.
- Get Balance: Checks token balances for a wallet across one or more blockchain networks.
Operations to automate the purchase of products using digital money (e.g. tokens like USDC). This is a two-step process.
-
1. Create Order:
- Function: Creates a purchase order for a product from Amazon or Shopify.
- Key Input: Product URL or identifier, recipient details (name, email, physical address), and payment details (which cryptocurrency to use and from which wallet to pay).
- Key Output: Returns an order object containing the final price and, most importantly, a
serializedTransaction
. This serialized transaction is the "payment authorization" needed for the next step.
-
2. Pay Order:
- Function: Executes the payment for a previously created order.
- Key Input: The
serializedTransaction
obtained from the "Create Order" step and the private key to authorize the payment. Among other parameters. - Key Output: The transaction confirmation once it's submitted to the blockchain, with a
pending
status.
For detailed information about each operation, parameters, and response formats, refer to the official Crossmint API documentation:
- Get or Create Wallet: Crossmint Wallets API
- Get Wallet: Crossmint Wallets API - Get Wallet
- Create Transfer: Crossmint Wallets API - Transfer Tokens
- Get Balance: Crossmint Wallets API - Get Balance
- Create Order: Crossmint Checkout API - Create Order
- Pay Order: Crossmint Checkout API - Submit Transaction
Wallet locators are a key concept used throughout all Crossmint node operations. They provide a flexible way to identify and reference wallets using different types of identifiers.
Type | Format | Example | Use Case |
---|---|---|---|
Wallet Address | 0x... |
0x1234567890123456789012345678901234567890 |
Direct blockchain address reference |
email:{email}:{chainType}:smart |
email:user@example.com:evm:smart |
User identification by email | |
User ID | userId:{id}:{chainType}:smart |
userId:user-123:evm:smart |
Custom user identifier |
Phone Number | phoneNumber:{phone}:{chainType}:smart |
phoneNumber:+1234567890:evm:smart |
SMS-based identification |
Twitter Handle | twitter:{handle}:{chainType}:smart |
twitter:username:evm:smart |
Social media identification |
X Handle | x:{handle}:{chainType}:smart |
x:username:evm:smart |
X (formerly Twitter) identification |
For more detailed information about wallet locator formats and specifications, see: Crossmint Wallet Locators Documentation
- EVM: Ethereum Virtual Machine compatible chains (Ethereum, Polygon, Base, Arbitrum, etc.)
- Solana: Solana blockchain
- Email locators are ideal for user-friendly identification
- Wallet addresses provide direct blockchain access
- User ID locators work well with existing user management systems
- Always specify the correct chain type for non-address locators
Ready-to-use workflow examples are available in the workflows-examples/
folder:
crossmint-nodes-examples.json
: Complete workflow demonstrating all wallet operations (create wallet, get wallet details, check balance) followed by a checkout flow (create order and pay order).
buy-items-from-amazon.json
: Advanced workflow with AI-powered order processing that accepts free-form messages via Telegram, extracts order details using OpenAI, and automatically purchases Amazon products.
To use these examples:
- Import the JSON file into your n8n instance
- Configure your Crossmint API credentials
- Update any personal information (email addresses, wallet addresses, etc.)
- Execute the workflow
If you wish to run the Crossmint node from source:
-
Clone the repository:
git clone [https://github.com/YourUsername/n8n-nodes-crossmint.git](https://github.com/YourUsername/n8n-nodes-crossmint.git) cd n8n-nodes-crossmint
-
Install dependencies and build:
npm install npm run build
-
Link your node for testing:
npm link cd ~/.n8n/custom npm link n8n-nodes-crossmint
See more detailed instructions and troubleshooting here.
-
Start n8n in a separate terminal (
n8n start
) and your node will appear.
MIT