Developers

Send transactions

Learn how to send transactions on Syncport

Send a transaction on Syncport


Step 1: Install dependencies
Make sure ethers is installed and run this once if you haven't already:

#Using npm 
install -g ethers

#Using yarn 


Step 2: Set Environment Variables
Hardcode the Syncport testnet RPC url and your wallet's private key so you can send a transaction.

ROLLUP_RPC_URL="https://rpc.devnet.alchemy.com/e4b92df2-b462-4839-a79d-f982a3e5757b"
PRIVATE_KEY="0xYOUR_TEST_PRIVATE_KEY"

Step 3: Run the Transaction Script
Use our pre-written send-txn.js script to send ETH (or your rollup's base token) to any address of your choice!

curl -sSL https://gist.githubusercontent.com/pileofscraps/dc90dac8b8763a783cfe4d3a489504e9/raw/send-txn.js | node -



Step 4: Confirm transaction
Confirm that your transaction has landed on chain. If successful, you'll see this:

Sent XXXX ETH to 0xabc123...
🔗 Tx hash: 0xdab12f