Closed edmlbox closed 5 years ago
Hey, please check the following link: https://www.npmjs.com/package/bitcoin-core#methods
All RPC methods are exposed on the client interface as a camelcase'd version of those available on bitcoind
Exampes:
client.createRawTransaction([{ txid: '1eb590cd06127f78bf38ab4140c4cdce56ad9eb8886999eb898ddf4d3b28a91d', vout: 0 }], { 'mgnucj8nYqdrPFh2JfZSB1NmUThUGnmsqe': 0.13 });
client.sendMany('test1', { mjSk1Ny9spzU2fouzYgLqGUD8U41iR35QN: 0.1, mgnucj8nYqdrPFh2JfZSB1NmUThUGnmsqe: 0.2 }, 6, 'Example Transaction');
client.sendToAddress('mmXgiR6KAhZCyQ8ndr2BCfEq1wNG2UnyG6', 0.1, 'sendtoaddress example', 'Nemo From Example.com');
Hope it helps, Florin
Closing this as it seems to be already answered.
In console i receive next error: TypeError: client.getnetworkinfo is not a function.
What I do wrong? I follow your example tutorial; The only command that work is client.stop();