Before you start
Set up your project and get an API key.
Create a treasury wallet
See all supported chains here.Key Points:
index.ts
- The
ownerfield must be set to"COMPANY"for treasury wallets to ensure the wallet appears under Company in the console - The
signermust be a non-custodial type (external-walletorpasskey) - The
aliasfield is set to"treasury"to identify this as your treasury wallet
Check treasury wallet balance
For newly created or unfunded wallets, the balance will be
"0". This is expected behavior - you will need to fund the wallet before seeing a non-zero balance.index.ts
Run the code
Execute your Or compile and run with Node.js:You should see the wallet address printed to the console after successful execution.
index.ts file using one of the following methods:Using ts-node:Verify in the console
After creating your treasury wallet, you can verify it was created correctly in the Crossmint Console:
- Navigate to Wallets in the left sidebar
- Click on the Company tab
- Your treasury wallet should appear in the list with the alias “treasury”
Launching in Production
Enterprise feature. Contact us for access.
- Create a developer account on the production console
- Create a production client API key on the API Keys page with the API scopes
wallets.read,wallets.create,wallets:transactions.create,wallets:transactions.sign,wallets:balance.read,wallets.fund - Replace your test API key with the production key
- Discuss with your Crossmint Customer Success Engineering (CSE) team the best signer configuration for your expected usage, and recovery mechanisms
Learn More
Check Balances
Check the balance of a wallet.
Funding the Wallet
Learn how to fund your treasury wallet.
Withdrawals
Withdraw stablecoins to your bank account.
Making Payments
Make payments from your treasury.
Other Links
API Reference
Deep dive into API reference docs.
Talk to an expert
Contact our sales team for support.

