Menu

1 / 2

payx3: Multi-Chain Crypto Payment SDK You've Been Waiting For

DEV Community·susheel kumar·6 months ago
#Mw5gniRT
#blockchain#javascript#showdev#watch#payment
Reading 0:00
15s threshold

The Problem

Every crypto payment integration follows the same painful pattern:

Read blockchain docs for each chain

Implement RPC calls

Handle WebSocket reconnections

Parse transaction data

Calculate correct decimals (looking at you, BSC USDT with 18 decimals while everyone else uses 6)

Build block explorer URLs

Write confirmation logic

And that's just one chain. What about the other 8 your client wants?

The Solution: payx3

const { watchAll } = require ( " payx3 " );

await watchAll ({ btcAddress : " bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq " , evmAddress : " 0xb2C65C9C98C2216099A37AF7FE12A93b8A37AFBd " , solAddress : " CbWki5xkrnde7TYj11jDWNEJ3h7bRTmk5Q22uANNfEt " , infuraKey : " YOUR_KEY " ,

onPayment : ( payment ) => { console . log ( ` ${ payment . amount } ${ payment . symbol } received on ${ payment . chain } ` ); // Fires for EVERYTHING: BTC, ETH, BNB, SOL, USDT, USDC... }, });

Enter fullscreen mode

Exit fullscreen mode

One call. All chains. All tokens.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.