import { useWallet, SolanaWallet } from '@crossmint/client-sdk-react-ui';
const { wallet } = useWallet();
const solanaWallet = SolanaWallet.from(wallet);
const { hash, explorerLink } = await solanaWallet.sendTransaction({
transaction: versionedTransaction,
additionalSigners: additionalSigners,
});
Parameters
transaction
VersionedTransaction
required
The transaction to send.
The additional signers to sign the transaction with.
Returns
The hash of the transaction.
The explorer link of the transaction.