Prerequisites
Before you begin, ensure that you’ve:- Installed Node.js v22+.
- Created an Arc Testnet wallet and funded it with testnet USDC and testnet native tokens.
Step 1. Set up the project
This step shows you how to prepare your project and environment.1.1. Set up your development environment
Create a new directory and install App Kit and its dependencies:Shell
1.2. Configure TypeScript (optional)
This step is optional. It helps prevent missing types in your IDE or editor.
tsconfig.json file:
Shell
tsconfig.json file:
Shell
1.3. Configure environment variables
Create an.env file in the project directory:
Shell
YOUR_PRIVATE_KEY with the private
key for your wallet:
.env
Step 2. Send tokens to recipient
This step shows you how to set up your script, send tokens from your wallet to a recipient on the same blockchain, and check the result.2.1. Create the script
Create anindex.ts file in the project directory and add the following code.
This code sends 1.00 USDC from your wallet to a recipient on Arc Testnet:
Using another
token or
blockchain? Change the
token and
chain values in kit.send() and use an adapter for that chain.TypeScript
2.2. Run the script
Save theindex.ts file and run the script in your terminal:
Shell
2.3. Verify the transaction
After the script finishes, find the returned result in the terminal output. Use the transaction explorer URL to verify the amount and recipient on the blockchain. The following is an example of how the result of a successful send might look in the terminal output. The values are used in this example only and are not a real transaction:Shell
Next steps
- Review the Send overview for more on the Send capability.
- Try Bridge or Swap to move value across chains or swap tokens on the same chain.
- See Adapter setups to use different wallet adapters, or the SDK reference for the full API.