Skip to content

Instantly share code, notes, and snippets.

@matiu
Last active August 29, 2015 14:02
Show Gist options
  • Save matiu/f17cacfdf9b3ae73619e to your computer and use it in GitHub Desktop.
Save matiu/f17cacfdf9b3ae73619e to your computer and use it in GitHub Desktop.
insight-api

Sample return:

[
    {
    address: "n2PuaAguxZqLddRbTnAoAuwKYgN2w2hZk7",
    txid: "dbfdc2a0d22a8282c4e7be0452d595695f3a39173bed4f48e590877382b112fc",
    vout: 0,
    ts: 1401276201,
    scriptPubKey: "76a914e50575162795cd77366fb80d728e3216bd52deac88ac",
    amount: 0.001,
    confirmations: 3
    },
    {
    address: "n2PuaAguxZqLddRbTnAoAuwKYgN2w2hZk7",
    txid: "e2b82af55d64f12fd0dd075d0922ee7d6a300f58fe60a23cbb5831b31d1d58b4",
    vout: 0,
    ts: 1401226410,
    scriptPubKey: "76a914e50575162795cd77366fb80d728e3216bd52deac88ac",
    amount: 0.001,
    confirmation: 6,
    confirmationsFromCache: true,
    }
]

Please note that in case confirmations are cached (because the number of confirmations if bigger that INSIGHT_SAFE_CONFIRMATIONS) the return will include the pair confirmationsFromCache:true, and confirmations will equal INSIGHT_SAFE_CONFIRMATIONS. See noCache and INSIGHT_IGNORE_CACHE options for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment