blockcypher / ruby-client Goto Github PK
View Code? Open in Web Editor NEWRuby SDK for BlockCypher
License: Apache License 2.0
Ruby SDK for BlockCypher
License: Apache License 2.0
My ruby on rails model 'user' has a method addpaymentaddress but the blockcypher object cannot be initialized inside the active record model.
NameError: uninitialized constant User::BlockCypher
Not sure if this gem is still being maintained, but are there plans to support other currencies?
I'm looking at using Blockcypher's Ethereum API, and it made sense to add the capability to this gem. Looking at the code, it looks like there was work at the beginning to support other currencies, but this effort seems to have stopped -- there are a bunch of hard-coded references to Bitcoin::Key
. Do the other currencies work?
When I use send_money() method, and pass a negative amount, it sends all I have in my wallet in the transaction.
I realize this would help beginner ruby devs a lot. @matthieu, do you want to sign up to publish to ruby gems? http://guides.rubygems.org/publishing/#publishing-to-rubygemsorg
I would, but it's probably best if I'm not the owner/maintainer of the SDK on there.
Also, right now there's an unofficial blockcypher sdk listed there, and it might help to have our official sdk listed as well (and the other developer may not mind removing their sdk if they see we have an official one listed).
The Rubygems version is out of date. The current version is 0.2.5, but Rubygems lists it at 0.2.4.
When I use send_money() method and pass all of required params (from_address as string
, to_address as string
, satoshi_amount as integer
, private_key as string
), then get an error:
objc[62090]: +[NSString initialize] may have been in progress in another thread when fork() was called.
objc[62090]: +[NSString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
It looks like the reason for the error is in the nested method signer(). The same error when I call it through the console
def signer(private_key, tosign)
key = Bitcoin::Key.new(private_key, nil, compressed = true)
signatures = []
tosign.each do |to_sign_hex|
to_sign_binary = [to_sign_hex].pack('H*')
sig_binary = key.sign(to_sign_binary)
sig_hex = sig_binary.unpack1('H*')
signatures << sig_hex
end
signatures
end
Hello,
The rubygems version of blockcypher-ruby is a little out of date: https://rubygems.org/gems/blockcypher-ruby
The current version is 0.2.3, though rubygems lists it at 0.2.2.
:)
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.