skills/nexus-one-send/SKILL.md
Scaffolding, configuration, and integration of the Nexus One component in send mode (config.mode = "send"). Used to send tokens to an external recipient address cross-chain.
npx skillsauth add availproject/nexus-elements nexus-one-sendInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use the Nexus One component with config.mode = "send" to enable cross-chain transfers directly to a recipient address. The user chooses the asset and amount to send, and Nexus automatically finds and routes from their available balances on different source chains.
Install dependencies and the component via the shadcn CLI:
npx shadcn@latest add @nexus-elements/nexus-one
Make sure peer dependencies are installed:
npm install @avail-project/[email protected] decimal.js lucide-react viem wagmi class-variance-authority clsx tailwind-merge
Wrap the component with NexusProvider. Render NexusOne with config.mode = "send".
import { NexusOne } from "@/components/nexus-one/nexus-one";
export function SendWidget({ address }: { address?: `0x${string}` }) {
return (
<NexusOne
config={{
mode: "send",
}}
connectedAddress={address}
/>
);
}
You can pre-populate the token, amount, and recipient address to speed up checkout.
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913const sendConfig = {
mode: "send",
prefill: {
token: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", // USDC on Base
chain: 8453,
amount: "25.5", // Prefilled amount
recipient: "0xRecipientWalletAddressHere" as `0x${string}`, // Prefilled recipient
},
};
<NexusOne config={sendConfig} connectedAddress={address} />;
Configure allowedSourcePairs (to restrict what tokens can be used to pay) or allowedDestinationPairs (to restrict what tokens can be sent to the recipient).
const sendConfig = {
mode: "send",
allowedDestinationPairs: [
{ token: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", chain: 8453 }, // Only allow sending USDC on Base
],
};
Wire lifecycle callbacks for notifications or analytics:
<NexusOne
config={{ mode: "send" }}
connectedAddress={address}
onStart={() => console.log("Transfer started")}
onComplete={(explorerUrl) => console.log("Transfer succeeded!", explorerUrl)}
onError={(message) => console.error("Transfer failed:", message)}
/>
data-ai
Scaffolding, configuration, and integration of the Nexus One component in swap mode (config.mode = "swap"). Handles cross-chain swaps and bridges.
data-ai
Scaffolding, configuration, and integration of the Nexus One component in deposit mode (config.mode = "deposit"). Handles swapping assets and executing custom smart contract calls on the destination chain.
development
Detailed guidelines for LLMs and developer agents on migrating codebases from legacy standalone Nexus Elements widgets (swaps, fast-bridge, transfer, deposit) to the unified Nexus One component.
development
DEPRECATED — ViewHistory has been removed. Intent history is not included in Nexus One V1. Use sdk.getMyIntents() directly for programmatic history access. Refer to the nexus-sdk-* agent skills for guidance.