blockcypher-opreturn

node v6.17.1
version: 3.0.0
endpointsharetweet
// get op-return values with blockcypher // // notes: fork https://runkit.com/makevoid/eternity-wall-json-opreturn const http = require('axios') const url_base = "api.blockcypher.com/v1/btc/main" // specify your address // const address = "12RXhCqxnXgJyfJLL2mvcqT3jCQ2o6rMAR" const endpoint = `/addrs/${address}/full` const url = `https://${url_base}/${endpoint}${address}` const c = console const DEBUG = true // enables console.log // const DEBUG = false const resp = await http.get(url) c.log(`URL: ${url}`) // API returns only the first message - TODO FIXME api resp.data.messages.map((message) => { return message })
Loading…

no comments

    sign in to comment