Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Receive 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment