Skip to main content

Prerequisites

  • Ensure you have a wallet created.
  • API Key: Ensure you have an API key with the scopes: wallets:transactions.create.

What is sending a custom transaction?

Sending a custom transaction lets you interact with any smart contract on the blockchain beyond simple transfers. Common use cases include minting free tokens, claiming rewards, or registering for allowlists—all without needing to manage private keys yourself.

Sending a Transaction

import { useWallet, EVMWallet } from '@crossmint/client-sdk-react-ui';

const { wallet } = useWallet();

const evmWallet = EVMWallet.from(wallet);

const { hash, explorerLink } = await evmWallet.sendTransaction({
    to: '0x...',
    value: BigInt('0x1234abcd'),
    data: '0x1234abcd...',
});
See the React SDK reference for more details.