@plark/changelly-client
v1.3.0
Published
The JavaScript client for Changelly Exchange. TypeScript inside.
Downloads
1
Readme
Make it possible to exchange cryptocurrency via Changelly or ChangeHero services in your application, based on JavaScript
Current library provide your with Changelly Client on JavaScript for Browser or NodeJS.
Works well with ChangeHero and Changelly.
Current library is used at Plark Wallet
import ChangellyClienty from '@plark/changelly-client';
const client = new ChangellyClienty('<API KEY>', '<SECRET KEY>');
client.createTransaction({
from: 'btc',
to: 'ltc',
amount: 2.14,
address: 'Lapj4BwSx5bTCD3R8L4J3MAxUsFP2s4VGe',
}).then(
transaction => {
console.log(transaction); // show your transaction
}
);
Make with ❤ by Plark Team