noah-js-sdk v0.19.4
Noah js sdk
Send transactions
command: npm run send --
**arguments**
--amount
--adress
--coin
--msg
private key is set in the file config.js
example npm run send -- --address NOAHx76D5EAfF52Fd57c381b7821126d6Ac74fbb79750 --amount 100 --coin NOAH --msg "hello world"
Create coin
command: npm run create --
**arguments**
--name
--symbol
--initialAmount
--initialReserve
--crr
private key is set in the file config.js
example npm run create -- --name "testtest" --symbol "testetest" --initialAmount 100 --initialReserve 50 --crr 30
Buy coin
command: npm run buy --
**arguments**
--coinFrom
--coinTo
--amount
private key is set in the file config.js
example npm run buy -- --coinFrom NOAH --coinTo ANTONCOIN --amount 100
Declare Candidacy
command: npm run declare-candidacy --
**arguments**
--address
--publicKey
--coin
--stake
private key is set in the file config.js
example npm run declare-candidacy -- --coin NOAH --address NOAHx76D5EAfF52Fd57c381b7821126d6Ac74fbb79750 --publicKey Np59ee6baed4b03a9cc4ab2736ef25e80dcf1840f60e0f8c0559692719f505a0c4 --stake 500
Delegate
command: npm run delegate --
**arguments**
--address
--publicKey
--coin
--stake
private key is set in the file config.js
example npm run delegate -- --coin NOAH --address NOAHx76D5EAfF52Fd57c381b7821126d6Ac74fbb79750 --publicKey Np59ee6baed4b03a9cc4ab2736ef25e80dcf1840f60e0f8c0559692719f505a0c4 --stake 500
Edit Candidate
command: npm run edit-candidate --
**arguments**
--publicKey
--rewardAddress
--ownerAddress
private key is set in the file config.js
example npm run edit-candidate --
--publicKey Np59ee6baed4b03a9cc4ab2736ef25e80dcf1840f60e0f8c0559692719f505a0c4
--rewardAddress NOAHx7633980c000139dd3bd24a3f54e06474fa941e16
--ownerAddress NOAHx7633980c000139dd3bd24a3f54e06474fa941e16
Sell
command: npm run edit-candidate --
**arguments**
--coin
private key is set in the file config.js
example npm run sell --
--coin TESTCOIN
--amount 100
Set candidate off
command: npm run set-candidate-off --
**arguments**
--publicKey
private key is set in the file config.js
example npm run set-candidate-off -- --publicKey Np59ee6baed4b03a9cc4ab2736ef25e80dcf1840f60e0f8c0559692719f505a0c4
Set candidate on
command: npm run set-candidate-on --
**arguments**
--publicKey
private key is set in the file config.js
example npm run set-candidate-on -- --publicKey Np59ee6baed4b03a9cc4ab2736ef25e80dcf1840f60e0f8c0559692719f505a0c4
Unbond
command: npm run unbond --
**arguments**
--publicKey
--coin
--stake
private key is set in the file config.js
example npm run unbond -- --publicKey Np59ee6baed4b03a9cc4ab2736ef25e80dcf1840f60e0f8c0559692719f505a0c4