bitgo / bitgod Goto Github PK
View Code? Open in Web Editor NEWDrop-in replacement for bitcoind JSON-RPC which proxies to BitGo API
Home Page: https://app.bitgo.com/docs
License: Apache License 2.0
Drop-in replacement for bitcoind JSON-RPC which proxies to BitGo API
Home Page: https://app.bitgo.com/docs
License: Apache License 2.0
After a clean install, either using yarn
or npm
; the software doesn't work because their dependency for bitgo
is also 4.3.1
, which doesn't explicitly state[1] bluebird
as dependency since it uses it[2] in src/v2/baseCoin.js
1- https://github.com/BitGo/BitGoJS/blob/4.3.1/package.json#L69
2- https://github.com/BitGo/BitGoJS/blob/4.3.1/src/v2/baseCoin.js#L9
--- ~ » bitgod -h
module.js:471
throw err;
^
Error: Cannot find module 'bluebird'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/test/.npm-global/lib/node_modules/bitgod/node_modules/bitgo/src/v2/baseCoin.js:9:17)
I have a BitGo wallet, I have create a token, I have been able to successfully authenticate with bitcoin-cli -rpcport=19332 settoken
but when I try to set the wallet using bitcoin-cli -rpcport=19332 setwallet
I get the following error:
error: {"code":-32603,"message":"Error: not found"}
Any idea why I'm getting this error or what the problem could be?
Alloha!
I try to use bitgod with bch wallet id, but getting error :
deployer @ app ➜ bitcoin-cli -rpcport=9332 setwallet 5a320e714054ad371affca98a47bed1f
error code: -32603
error message:
Error: invalid wallet id
But bitgo api v2 allows you to work with a bch wallet.
How i can use BCH wallet with bitgod ?
This is particularly annoying in docker. For example when running interactively (docker run -it
) ctrl-c
does not exit the container.
Otherwise all RPC functions seem to work perfectly so far. This is a standalone bitgod without proxy enabled. Installed bitgod with npm.
2016-10-29T21:48:42.751Z - info: RPC call: getinfo []
2016-10-29T21:48:42.754Z - error: Error: invalid argument
at BitGo.estimateFee (/usr/lib/node_modules/bitgod/node_modules/bitgo/src/bitgo.js:1006:13)
at BitGoD.handleEstimateFee (/usr/lib/node_modules/bitgod/src/bitgod.js:1286:21)
at BitGoD.handleGetInfo (/usr/lib/node_modules/bitgod/src/bitgod.js:1466:24)
at /usr/lib/node_modules/bitgod/src/bitgod.js:1550:21
From previous event:
at null. (/usr/lib/node_modules/bitgod/src/bitgod.js:1549:16)
at handleCall (/usr/lib/node_modules/bitgod/node_modules/json-rpc2/src/endpoint.js:69:18)
at handle (/usr/lib/node_modules/bitgod/node_modules/json-rpc2/src/server.js:239:16)
at IncomingMessage.requestEnd (/usr/lib/node_modules/bitgod/node_modules/json-rpc2/src/server.js:247:11)
at emitNone (events.js:86:13)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
error: {"code":-32603,"message":"Error: invalid argument"}
I am trying to access a bitgod installation that is on a remote server. Is there a line I have to add to my configuration file to make bitgod accessible remotely?
I have tried to access it with the following command:
curl --user <user> --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' <ip address:port>
"WARNING: getinfo is deprecated and will be fully removed in 0.16. Projects should transition to using
getblockchaininfo
,getnetworkinfo
, andgetwalletinfo
before upgrading to 0.16"
From PR #8780:
Some of the more serious problems with it are:
- It combines information from different subsystems (wallet, networking, blockchain, ...), so its implementation is messy by definition and has to lock all over the place
- It is ill-defined and without focus - what information should be added, what shouldn't
- It behaves differently with and without wallet (and what should it do with multiple wallets)
How can I use bitgod
with other currencies, like BCH
I am having a problem sending funds to other Test BTC addresses that do not belong to any of the wallets of my BitGo account, through the API.
F.e., in my account I have 3 wallets, and it's all alright when I send funds between them. But if I want to do it to another address, I get the following error:
"error": {
"name": "AssertionError",
"actual": false,
"expected": true,
"operator": "==",
"message": "value has a fractional component",
"generatedMessage": false
}
I tried doing it through the BitGo website and it worked. So, the problem lies in my code, I guess. Here's where I get the error:
wallet.sendCoins(params, function (err, response) {
if (err || !response) {
return res.serverError({
'error': err
})
}
return res.ok({
'response': response
})
});
The wallet object is correct. The params are also correct (since it works with the address of my own wallets).
How can I run the bitgod -env prod
command & have bitgod run in the background as a daemon?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.