Send Transactions
Send transactions from your wallet
This guide will walk you through the process of sending transactions from your wallet using the Crossmint transactions API with custodial signers. Custodial signers enable secure transaction signing without managing private keys directly.
Note: This guide currently only works for wallets set up with a custodial admin signer. We will soon update it to cover all types of signers.
Prerequisites
Ensure you have created a wallet with a custodial signer by following the Server Wallets Quickstart. You will need:
- API Key: Ensure you have an API key with the scope:
wallets:transactions.create
- Wallet Address: The address of your wallet created via the quickstart.
Sending a Transaction
You can send various types of transactions using the Create Transaction API. Here’s how to do it for different chains:
For EVM-based chains like Ethereum, Polygon, Base, etc., you can send transactions as follows:
Encoding Contract Function Calls
When interacting with smart contracts, you need to encode your function calls as data. Here’s how to do it:
For EVM-based chains like Ethereum, Polygon, Base, etc., you can send transactions as follows:
Encoding Contract Function Calls
When interacting with smart contracts, you need to encode your function calls as data. Here’s how to do it:
For Solana, you’ll need to prepare the transaction first, then send it to the API:
Prepare Transaction
Create a transaction with placeholders that Crossmint will replace:
The transaction will be properly configured on Crossmint’s servers with the correct blockhash and payer before execution. Crossmint will also handle signing the transaction with your wallet’s custodial signer.
Send Transaction
Now send the transaction to the Crossmint API:
For more complex Solana transactions, such as token transfers or interactions with programs, you’d add the appropriate instructions to the transaction message before serializing it.
Transaction Status
After sending a transaction, you can check its status by querying the transaction endpoint:
Learn More
For specific transaction types, check out these detailed guides: