Search content
Sort by

Showing 20 of 26 results by jdeepee
Post
Topic
Board Bitcoin Technical Support
Re: Updating a database when my wallet receives a payment.
by
jdeepee
on 12/10/2015, 12:00:49 UTC
Hi guys I want to create a simple linux cloud server which contains a database and some kind of script which updates the database when my BTC wallet receives a payment. It would be able to update the database with information such as the public key of the person who paid the BTC and the amount paid. Blockchain.info offers a service like this: https://blockchain.info/api/api_receive However the only libraries available are in PHP and Java both of which are foreign languages to me. I am a Python developer. Does anyone have any suggestions on how to do this or whether I am thinking about this completely wrong.

Thanks!

Hello jdeepee,

i strongly recommend you to NOT USE blockchain.info API for deposit/accounting stuff.
You should use a own local node (bitcoin daemon) on your project. You can of course use python
for communication with your wallet over rpc-calls.

more informations:
https://github.com/jgarzik/python-bitcoinrpc
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Python

ca333



If your project is experimental and no user funds are affected you can also use python to communicate
with the API of blockchain.info. This is not limited on php/Java.
For example in my project r-scan i use python and simply make http requests and then parse json data (API-response). see https://github.com/ca333/rng-scanner


Sorry for all the questions, but what is your opinion on CoinBase API? Is that okay to use. I know of a few websites using this.
Post
Topic
Board Bitcoin Technical Support
Re: Updating a database when my wallet receives a payment.
by
jdeepee
on 12/10/2015, 11:32:19 UTC
Hi guys I want to create a simple linux cloud server which contains a database and some kind of script which updates the database when my BTC wallet receives a payment. It would be able to update the database with information such as the public key of the person who paid the BTC and the amount paid. Blockchain.info offers a service like this: https://blockchain.info/api/api_receive However the only libraries available are in PHP and Java both of which are foreign languages to me. I am a Python developer. Does anyone have any suggestions on how to do this or whether I am thinking about this completely wrong.

Thanks!

Hello jdeepee,

i strongly recommend you to NOT USE blockchain.info API for deposit/accounting stuff.
You should use a own local node (bitcoin daemon) on your project. You can of course use python
for communication with your wallet over rpc-calls.

more informations:
https://github.com/jgarzik/python-bitcoinrpc
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Python

ca333



If your project is experimental and no user funds are affected you can also use python to communicate
with the API of blockchain.info. This is not limited on php/Java.
For example in my project r-scan i use python and simply make http requests and then parse json data (API-response). see https://github.com/ca333/rng-scanner


If I want to send bitcoins to multiple wallets is it recommended I do this through the Bitcoin daemon as-well or can I just use blockchain.info's API?
Post
Topic
Board Bitcoin Technical Support
Re: Updating a database when my wallet receives a payment.
by
jdeepee
on 12/10/2015, 11:24:14 UTC
Hi guys I want to create a simple linux cloud server which contains a database and some kind of script which updates the database when my BTC wallet receives a payment. It would be able to update the database with information such as the public key of the person who paid the BTC and the amount paid. Blockchain.info offers a service like this: https://blockchain.info/api/api_receive However the only libraries available are in PHP and Java both of which are foreign languages to me. I am a Python developer. Does anyone have any suggestions on how to do this or whether I am thinking about this completely wrong.

Thanks!

Hello jdeepee,

i strongly recommend you to NOT USE blockchain.info API for deposit/accounting stuff.
You should use a own local node (bitcoin daemon) on your project. You can of course use python
for communication with your wallet over rpc-calls.

more informations:
https://github.com/jgarzik/python-bitcoinrpc
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Python

ca333



If your project is experimental and no user funds are affected you can also use python to communicate
with the API of blockchain.info. This is not limited on php/Java.
For example in my project r-scan i use python and simply make http requests and then parse json data (API-response). see https://github.com/ca333/rng-scanner


Okay great thanks for the advice I spent some time in the Bitcoin daemon so it shouldn't be too hard. I will let you know if I run into any problems! Smiley
Post
Topic
Board Bitcoin Technical Support
Re: how my wallet contacts the bitcoin network?
by
jdeepee
on 11/10/2015, 21:46:46 UTC
thanks for that.

yes, i know all that, BUT how my wallet knows which Nodes to contact?


Like bit torrent, when i load a torrent in my Mac, it goes to a server/tracker and that tracker connects me to all the peers sharing that torrent; that tracker knows who are the peers/nodes because i don't!

in bitcoin who is this tracker? who plays this role? how my wallet knows who are the NODES?

Read this link: http://bitcoin.stackexchange.com/questions/3536/how-do-bitcoin-clients-find-each-other
Post
Topic
Board Bitcoin Technical Support
Topic OP
Updating a database when my wallet receives a payment.
by
jdeepee
on 11/10/2015, 19:28:52 UTC
Hi guys I want to create a simple linux cloud server which contains a database and some kind of script which updates the database when my BTC wallet receives a payment. It would be able to update the database with information such as the public key of the person who paid the BTC and the amount paid. Blockchain.info offers a service like this: https://blockchain.info/api/api_receive However the only libraries available are in PHP and Java both of which are foreign languages to me. I am a Python developer. Does anyone have any suggestions on how to do this or whether I am thinking about this completely wrong.

Thanks!
Post
Topic
Board Web Wallets
Re: Blockchain.info's send many payments API problem - Invalid JSON recipients
by
jdeepee
on 09/10/2015, 17:35:20 UTC
It seems blockchain.info is having problems: https://bitcointalk.org/index.php?topic=1204476.0

I will update the status in this thread when I get news. But I don't know if it's related to your issue.



Im not sure if there is an issue with their API. I can send a single payment through their API. It is something in my code I would imagine but I have no idea....
Post
Topic
Board Web Wallets
Topic OP
Blockchain.info's send many payments API problem - Invalid JSON recipients
by
jdeepee
on 09/10/2015, 15:22:48 UTC
Hi guys. I am using Blockchain.info's API to send multiple payments. I believe I have everything how it should be however when I run the code I get the following Error: RuntimeError: ERROR: Invalid Recipients JSON. Please make sure it is url encoded and consult the docs. The docs can be found here: https://blockchain.info/api/blockchain_wallet_api

The Python library I am using can be found here: https://github.com/p4u/blockchain.py/blob/master/blockchain.py

The only other post on this issue is posted by the original creator of the library, he said the problem was that the amounts cannot be a decimal, mine are not however.Post can be found here: https://bitcointalk.org/index.php?topic=600870.0

Code:
from __future__ import print_function
from itertools import islice, imap
import csv, requests, json, math
from collections import defaultdict
import requests
import urllib
import json
from os.path import expanduser
import configparser


class Wallet:
    guid        = 'g'
    isAccount   = 0
    isKey       = 0
    password1   = 'x'
    password2   = 'y'
    url         = ''

def __init__(self, guid = 'g', password1 = 'x', password2 = 'y'):

    if guid.count('-') > 0:
        self.isAccount = 1
        if password1 == '': # wallet guid's contain -
            raise ValueError('No password with guid.')
    else:
        self.isKey = 1

    self.guid = guid
    self.url = 'https://blockchain.info/merchant/' + guid + '/'

    self.password1 = password1
    self.password2 = password2

    r = requests.get('http://api.blockcypher.com/v1/btc/main/addrs/A/balance')
    balance = r.json()['balance']

    with open("Entries#x1.csv") as f,open("winningnumbers.csv") as nums:
        nums = set(imap(str.rstrip, nums))
        r = csv.reader(f)
        results = defaultdict(list)
        for row in r:
            results[sum(n in nums for n in islice(row, 1, None))].append(row[0])

    self.number_matched_0 = results[0]
    self.number_matched_1 = results[1]
    self.number_matched_2 = results[2]
    self.number_matched_3 = results[3]
    self.number_matched_4 = results[4]
    self.number_matched_5 = results[5]

    self.number_matched_5_json = json.dumps(self.number_matched_5, sort_keys = True, indent = 4)

    print(self.number_matched_5_json)

    if len(self.number_matched_3) == 0:
        print('Nobody matched 3 numbers')
    else:
        self.tx_amount_3 = int((balance*0.001)/ len(self.number_matched_3))

    if len(self.number_matched_4) == 0:
        print('Nobody matched 4 numbers')
    else:
        self.tx_amount_4 = int((balance*0.1)/ len(self.number_matched_4))

    if len(self.number_matched_5) == 0:
        print('Nobody matched 3 numbers')
    else:
        self.tx_amount_5 = int((balance*0.4)/ len(self.number_matched_5))

    self.d = {el: self.tx_amount_5 for el in json.loads(self.number_matched_5_json)}
    print(self.d)

    self.d_url_enc = urllib.urlencode(self.d)

def Call(self, method, data = {}):
    if self.password1 != '':
        data['password'] = self.password1
    if self.password2 != '':
        data['second_password'] = self.password2

    response = requests.post(self.url + method,params=data)

    json = response.json()
    if 'error' in json:
        raise RuntimeError('ERROR: ' + json['error'])

    return json

def SendPayment(self, toaddr, amount, fromaddr = 'A', shared = 0, fee = 0.0001, note = True):
    data = {}
    data['to'] = toaddr
    data['amount'] = self.tx_amount_5
    data['fee'] = fee
    data['recipients'] = self.d_url_enc

    if fromaddr:
        data['from'] = fromaddr

    if shared:
        data['shared'] = 'true'

    if note:
        data['note'] = 'n'

    response = self.Call('payment',data)

def SendManyPayment(self, fromaddr = True, shared = False, fee = 0.0001, note = True):
    data = {}
    recipients = self.d_url_enc
    data['recipients'] = recipients.__str__().replace("'",'"')
    data['fee'] = str(fee)
    if fromaddr:
        data['from'] = 'A'
    if shared:
        data['shared'] = 'true'
    else:
        data['shared'] = 'false'
    if note:
        data['note'] = 'n'
    response = self.Call('sendmany',data)

    return response

print(Wallet().SendManyPayment())
Post
Topic
Board Bitcoin Technical Support
Re: Python script to send BTC to any given address.
by
jdeepee
on 01/10/2015, 21:38:57 UTC
Sorry forgot to mention ideally it would be a multi-sig wallet so bitcoin core wont work for what I want to do right?
Post
Topic
Board Bitcoin Technical Support
Topic OP
Python script to send BTC to any given address.
by
jdeepee
on 01/10/2015, 20:50:18 UTC
Hi guys. I am messing around in Python to send some coins to any given bitcoin address. I would like to propagate and push a Bitcoin transaction to the network within the same script. I would prefer to send the coins from a local wallet, unless there is an API out there such as this: https://www.bitgo.com/api/?javascript#send-coins-to-multiple-addresses ,but for Python. Does anyone have any suggestions as to where to look? Sorry for any stupidity I am new to this side of this kind of stuff Wink


Cheers!

Post
Topic
Board Project Development
Re: Searching for a team of Co-Founders/developers for a Bitcoin Lottery!
by
jdeepee
on 08/09/2015, 20:06:36 UTC
If you are generally interested in the idea then send me an email and we can discuss from there. Im not sure who you are referring too when you say "their lottery" I assume you mean mine. Like I said if you are generally interested and have the capacity to develop something like this then send me an email and all will be explained. 
Post
Topic
Board Project Development
Topic OP
Searching for a team of Co-Founders/developers for a Bitcoin Lottery!
by
jdeepee
on 08/09/2015, 20:03:30 UTC
Hi Guys,

I am currently in the process of developing a Bitcoin lottery which will be leaps and bounds better than what is already out there. The planning is done and some of the back end work is done. However I need more team members/co founders. If you are a web developer or any kind of dev who believes they can contribute towards this project then email me at: joshuadparkin@gmail.com and I will tell you more about the idea and the stages of the idea. I truly believe this will be an evolution for gambling in Bitcoin, I am sure you will too. When emailing me please include your skills/portfolio.

Thanks for your time and I look forward to hearing from you.
Post
Topic
Board Project Development
Re: Looking for a team of talented developers for a Bitcoin lottery.
by
jdeepee
on 04/09/2015, 10:54:01 UTC
Okay no worries skype works, my skype is: jdeepee
Post
Topic
Board Project Development
Topic OP
Looking for a team of talented developers for a Bitcoin lottery.
by
jdeepee
on 03/09/2015, 12:05:15 UTC
Hi Guys,

I am currently in the process of developing a Bitcoin lottery which will be leaps and bounds better than what is already out there. The planning is done and some of the back end work is done. However I need some more team members/co founders. If you are a web developer or any kind of dev who believes they can contribute towards this project then email me at: joshuadparkin@gmail.com and I will tell you more about the idea and the stages of the idea. I truly believe this will be an evolution for gambling in Bitcoin, I am sure you will too. When emailing me please include your skills/portfolio.

Thanks for your time and I look forward to hearing from you.
Post
Topic
Board Project Development
Re: Looking for a team of developers for a Bitcoin lottery.
by
jdeepee
on 21/08/2015, 12:39:35 UTC
Please check your e-mail

I have replied, if you are the person I am thinking of.
Post
Topic
Board Project Development
Re: Looking for a web/python developer for a Bitcoin lottery.
by
jdeepee
on 18/08/2015, 13:14:55 UTC
As of now I am looking for anyone I can get. Like I said if you believe you can contribute towards this project then get in touch and I will find something for you I am sure. It is currently just me working on the project, other team members dropped out due to other commitments etc...
Post
Topic
Board Project Development
Re: BitTeaser - How to profit from Wi-Fi and get Bitcoins?
by
jdeepee
on 17/08/2015, 14:09:46 UTC
Really awesome project, definitely keeping track of this one. Look forward to seeing the progress.
Post
Topic
Board Project Development
Topic OP
Looking for a team of developers for a Bitcoin lottery.
by
jdeepee
on 15/08/2015, 12:00:45 UTC
Hi Guys,

I am currently in the process of developing a Bitcoin lottery which will be leaps and bounds better than what is already out there. The planning is done and some of the back end work is done. However I need some more team members/co founders. If you are a web developer or any kind of dev who believes they can contribute towards this project then email me at: joshuadparkin@gmail.com and I will tell you more about the idea and the stages of the idea. I truly believe this will be an evolution for gambling in Bitcoin, I am sure you will too. When emailing me please include your skills/portfolio.

Thanks for your time and I look forward to hearing from you.
Post
Topic
Board Project Development
Re: BitShop, Creating an ebay like website that accepts bitcoin?
by
jdeepee
on 14/08/2015, 18:35:00 UTC
Okay I am interested in hearing some more about the idea. Contact me if you are looking to take it forward, I may be able to help Smiley
Post
Topic
Board Project Development
Re: BitShop, Creating an ebay like website that accepts bitcoin?
by
jdeepee
on 14/08/2015, 13:34:56 UTC
Isnt this website idea kind of like this: https://cryptothrift.com/  This website also only has 2.5% fee`s.
Post
Topic
Board Project Development
Topic OP
Looking for web/python developer for a Bitcoin Lottery.
by
jdeepee
on 21/07/2015, 12:09:57 UTC
Hi Guys!

Me and my team are currently part way through creating the back end of a Bitcoin lottery. However we are in desperate need of a web developer. I am ideally looking for a developer who Is a similar age to me and my team (17&18) as I believe it will help the team dynamics however it is not essential. If you are at all interested in this pm me and I will explain the idea and the current stages of it and hopefully we can go from there! Also if you know anyone who is interested send me there details and I will shoot them an email! Smiley

*EDIT* At this point I am looking for any web/python developer no matter the age. There is just simply to few people my age doing this stuff. If you are interested then PM me and I will send you my skype/email so we can talk from there.

Regards,

Josh