This directory contains examples demonstrating how to use ChainSig.js for multi-chain transactions using NEAR's Chain Signatures (MPC).
-
Copy the environment template:
cp .env.example .env
-
Edit the .env file with your NEAR account credentials:
- Replace
ACCOUNT_IDwith your NEAR testnet account (e.g.,yourname.testnet) - Replace
PRIVATE_KEYwith your actual ed25519 private key
- Replace
-
Install dependencies:
npm install
npm run send-aptDemonstrates sending APT tokens using NEAR Chain Signatures on Aptos testnet.
npm run send-btcDemonstrates sending BTC using NEAR Chain Signatures on Bitcoin testnet.
npm run send-ethDemonstrates sending ETH using NEAR Chain Signatures on Ethereum Sepolia testnet.
npm run send-solDemonstrates sending SOL tokens using NEAR Chain Signatures on Solana devnet.
npm run send-suiDemonstrates sending SUI tokens using NEAR Chain Signatures on Sui testnet.
npm run send-xrpDemonstrates sending XRP using NEAR Chain Signatures on XRP Ledger testnet.
- Funding Required: The derived addresses need to be funded with native tokens for gas fees
- Testnet Only: These examples are configured for testnet networks
- NEAR Account: You need a NEAR testnet account with some NEAR tokens for MPC signing fees