Created
February 9, 2015 18:50
-
-
Save charleyhine/5457d2d3a36b17f7f820 to your computer and use it in GitHub Desktop.
Receive Chain.com Notification (Address)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def result | |
tx = JSON.parse(request.raw_post) | |
type = tx['payload']['type'] | |
confs = tx['payload']['confirmations'] | |
amount_s = tx['payload']['received'] | |
tx_id = tx['payload']['transaction_hash'] | |
addr = tx['payload']['address'] | |
render nothing: true, status: 200 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment