import { useWallet } from '@crossmint/client-sdk-react-ui';
const { wallet } = useWallet();
const { hash, explorerLink } = await wallet.send("2CE1gtMSFEKLvtXeD1mmUKNxMTQXe3TaNsexBTd4jApJ", "solana:usdc", "3.14");
Parameters
The recipient of the tokens, represented by a wallet locator.
A wallet locator can be of the format:
<walletAddress>
email:<email>:<walletType>
userId:<userId>:<walletType>
userId:<userId>:<walletType> (white label user example)
phoneNumber:<phoneNumber>:<walletType>
twitter:<handle>:<walletType>
x:<handle>:<walletType>
The token to be transferred, represented as a token locator.A token locator that supports native tokens, fungible tokens, and NFTs across different chains. It can be of the format: The amount of tokens to send in decimal format (e.g. 42.69).
Returns
The hash of the transaction.
The explorer link of the transaction.
import { CrossmintWallets, createCrossmint } from "@crossmint/wallets-sdk";
const crossmint = createCrossmint({
apiKey: "<your-server-api-key>",
});
const crossmintWallets = CrossmintWallets.from(crossmint);
const wallet = await crossmintWallets.getWallet(
"email:[email protected]:solana",
{ chain: "solana", signer: { type: "email" } }
);
const { hash, explorerLink } = await wallet.send("2CE1gtMSFEKLvtXeD1mmUKNxMTQXe3TaNsexBTd4jApJ", "solana:usdc", "3.14");
Parameters
The recipient of the tokens, represented by a wallet locator.
A wallet locator can be of the format:
<walletAddress>
email:<email>:<walletType>
userId:<userId>:<walletType>
userId:<userId>:<walletType> (white label user example)
phoneNumber:<phoneNumber>:<walletType>
twitter:<handle>:<walletType>
x:<handle>:<walletType>
The token to be transferred, represented as a token locator.A token locator that supports native tokens, fungible tokens, and NFTs across different chains. It can be of the format: The amount of tokens to send in decimal format (e.g. 42.69).
Returns
The hash of the transaction.
The explorer link of the transaction.
import { useWallet } from '@crossmint/client-sdk-react-native-ui';
const { wallet } = useWallet();
const { hash, explorerLink } = await wallet.send("2CE1gtMSFEKLvtXeD1mmUKNxMTQXe3TaNsexBTd4jApJ", "solana:usdc", "3.14");
Parameters
The recipient of the tokens, represented by a wallet locator.
A wallet locator can be of the format:
<walletAddress>
email:<email>:<walletType>
userId:<userId>:<walletType>
userId:<userId>:<walletType> (white label user example)
phoneNumber:<phoneNumber>:<walletType>
twitter:<handle>:<walletType>
x:<handle>:<walletType>
The token to be transferred, represented as a token locator.A token locator that supports native tokens, fungible tokens, and NFTs across different chains. It can be of the format: The amount of tokens to send in decimal format (e.g. 42.69).
Returns
The hash of the transaction.
The explorer link of the transaction.
import CrossmintClient
import Wallet
let sdk = CrossmintSDK.shared
let wallet = try await sdk.crossmintWallets.getOrCreateWallet(
chain: .solana,
signer: .email("[email protected]")
)
let result = try await wallet.send("2CE1gtMSFEKLvtXeD1mmUKNxMTQXe3TaNsexBTd4jApJ", "solana:usdc", 3.14)
Parameters
The recipient of the tokens, represented by a wallet locator.
The token to be transferred, represented as a token locator.
The amount of tokens to send in decimal format (e.g. 42.69).
Returns
The hash of the transaction.
The explorer link of the transaction.