Skip to main content
function useTransfer(): UseTransferResult;
Hook for executing token transfers using Grid SDK Works with both email and passkey authentication. Automatically detects the authentication method and uses the appropriate signing flow.

Returns

UseTransferResult

Example

import { useTransfer } from '@sqds/grid-react';

function SendMoney() {
  const { transfer, isLoading, signature, error } = useTransfer();

  const handleSend = async () => {
    await transfer({
      to: "9ajD8h...f0bEb",
      amount: "1000000",
      currency: "usdc"
    });
  };

  if (signature) return <div>Success! Signature: {signature}</div>;
  return <button onClick={handleSend} disabled={isLoading}>Send</button>;
}