Найти ошибку в подключении к ноде Bitcoin
bitcoin-cli работает под ней, но из под root не работает. Надо чтоб заработал.
И чтобы было подключение из проекта NodeJS.
const response = await fetch('http://localhost:8332', {
method: 'post',
headers: {
'Content-Type': 'text/plain',
'Authorization': 'Basic ' + Buffer.from(cookie).toString('base64')
},
body: JSON.stringify({ jsonrpc: '1.0', id: '0', method: method, params: params || [] })