Check balances of bitcoin adress

I want to check balances of bitcoin address. I cant find the way so i must use output value - inputs value = Balance value now. Somebody told me How can i make the best querry?

{
bitcoin(network: bitcoin) {
inputs(inputAddress: {is: “34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo”}) {
value
}
outputs(outputAddress: {is: “34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo”}) {
value
}
}
}

1 Like

Yes

Output - Input = Balance

Example query

{
  bitcoin {
    inputs(
      inputAddress: {is: "18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX"}) {
      value
    }
    outputs( outputAddress: {is: "18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX"}) {
      value
    }
  }
}

Hi Ad
i can’t run this query, please show to us check list inputAddress BTC incorrect
{
bitcoin {
inputs(
inputAddress: {in: [“18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX”]}) {
value
}
outputs( outputAddress: {in:[ “18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX”]}) {
value
}
}
}
Thank You

Working fine for me

1 Like

I want to check two or more inputAddress
Expect: inputAddress: {in: [“18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX”,“18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX”]})
but not working
How to built query use inputAddress with para In

1 Like

i want this too, what query can check muti adress of bitcoin

1 Like

@gaurav check for me this issue, thank a lot

Can you answer this for me?
I want to check two or more inputAddress
Expect: inputAddress: {in: [“18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX”,“18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX”]})
but not working
How to built query use inputAddress with para In

So This list is string …not a list,

Screenshot 2021-06-06 at 9.08.30 AM

So this works

  {in: "18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX"})

But when i am trying to do more than 1, it’s not taking it, I have raised it with Dev team and reply, once i get the answer

oke thanks Gaurav. I will follow this thread

when this issue done?

Sorry not yet picked up by devs. Let me nudge it again with the team.

P:S - Related Issue - AddressSelector Type should be an array?