Skip to content

Instantly share code, notes, and snippets.

@charleyhine
Created February 9, 2015 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charleyhine/5457d2d3a36b17f7f820 to your computer and use it in GitHub Desktop.
Save charleyhine/5457d2d3a36b17f7f820 to your computer and use it in GitHub Desktop.
Receive Chain.com Notification (Address)
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