Bitcoin Forum
May 14, 2024, 05:48:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Altcoin Discussion / Re: ETH - Pre-Paid smart contract so user don't pay transactions on: October 12, 2020, 01:56:49 PM

if you plan to you it just for your corporation, i would suggest to use private network, not public Ethereum network, so you can send them ETH for transactions, but these would be worthless on public network, and you can create it without expense

of course, this would not help if you want public transactions

thank you for your suggestion, but I will need to use public Ethereum because ultimately, the blockchain tracking data will be accessible by anyone in "read only"....
2  Alternate cryptocurrencies / Altcoin Discussion / ETH - Pre-Paid smart contract so user don't pay transactions on: October 12, 2020, 07:18:19 AM
Hello all,

I'm developing a "corporate" DApp, therefore the employee don't have any reason to "spend" their ether/gas for interacting with the contract...

Is there any way to enable each transaction to be Auto-paid by the contract itself? If not how would you address this problem? I cannot pass ETH to employee, because they might "spend it" and at the same time why they would use their own ETH?

Thank you all for any suggestion

Cheers
3  Bitcoin / Development & Technical Discussion / Re: Architecture and code for retrieving Wallet Address balance and transactions on: February 16, 2020, 10:04:40 AM
it depends on what you you want to do with all that. you may be better off installing a decent wallet and use that. wallets usually show your transaction history with all the additional info such as fees.


Thank you for your suggestion, but I need it programmatically on a server and the address might as well change, therefore the info from a wallet cannot work...

other wise you have to read the documentation and learn how to use the command line or JSON RPC. i suppose you can do it both with your bitcoin core full node and also with using remote Electrum nodes.
core: https://bitcoin.org/en/developer-reference#bitcoin-core-apis
electrum: https://electrumx.readthedocs.io/en/latest/

in bitcoin core listaddressgroupings and listtransactions commands return list of addresses and transactions.
in electrum blockchain.scripthash.get_balance and blockchain.scripthash.get_history return address balance and transaction history (only hashes you have to get the tx separately).

this si exactly what I would need, and at the same time I would prefer not to host a full node, therefore I like the idea of connecting to an available ElectrumX node...

now the challenge starts (for me, because I am a newbie Smiley)

how do I get going about this? in a "for dummies" series, how would you start this?

I mean, lets assume I have Visual Studio Code (as my IDE), which library should I download, use,,, is there any "example" as step by step?

Thank you heaps!
4  Bitcoin / Development & Technical Discussion / Architecture and code for retrieving Wallet Address balance and transactions on: February 07, 2020, 05:14:06 AM
Hello,

I am trying to build a simple app that retrieve Bitcoin balance, transactions and fee for a given Public Wallet Address...

for example, if we get the following Address: 1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH btc.com api woudl give me exactly what I need with two API calls:

- Balance: https://chain.api.btc.com/v3/address/1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH
- Transactions/fees: https://chain.api.btc.com/v3/address/1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH/tx

Because these services changes and often have some limitations (e.g. # of API calls per second/per IP), I would prefer to build the same results on my infrastructure...

my next steps are:

1) install a bitcoin Node in my infrastructure (do I need a full node? I would prefer to have something "lighter" to save data storage and bandwidth)....

2) create a code that interact with the node and retrieve what I need...

Because I am a newbie, is there anyone who can address me how to achieve my end goal? Smiley

sorry, I am not sure where to start....

Thank you all!
5  Bitcoin / Development & Technical Discussion / Re: how to read blockexplorer on: January 21, 2020, 06:07:16 AM
If the fee is not explicitly stated by the API, you can calculate it yourself very easily as it is simply the difference between the total of vIn amouts and vOut amounts for a transaction.

In the example above:

vIn = 0.03602039
VOut = 0.01 + 0.02601813 = 0.03601813

Fee = vIn - vOut = 0.03602039 - 0.03601813 = 0.00000226

great! thank you for your help!

which block explorer api would you recommend? I have found that https://blockexplorer.com/ has been down lately... so not very reliable...

Thank you so much!
6  Economy / Service Discussion / Re: Is https://blockexplorer.com/ down? on: January 21, 2020, 05:54:58 AM
I just need a simple API that return wallet balance based on wallet address, list of transactions and individual transaction fees...
What do you exactly mean by 'individual transaction fees' ? I can't also understand the kind of API you are looking for and how you across blockexplorer.com while searching for it .
Most of the exemples mentioned by moccacino doesn't offer an api based on a specific need, but you may be can contact them closely and ask for what you exactly want .
You have to explain for what use you want an/this API in simple words so we can help you .

thank you coupable:

to make it simple, lets assume I have one public Wallet address, I want to be able to retrieve:

- Wallet balance
- Wallet transactions (that the sum should make up the balance) and relative transaction fees... (I might be wrong, but it seems that blockexplorer and btc.com provides "overall block fee", therefore how can I "deduct" what I have actually paid for my transactions?)

in the following case: https://btc.com/1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH

address 1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH has three transactions:

1) - 0.03602039
2) + 0.03086609
3) + 0.03602039

I am not sure how much each transaction costed in terms of fee...

thank you Smiley
7  Alternate cryptocurrencies / Altcoin Discussion / Best way to query Ethereum? on: January 20, 2020, 06:44:11 PM
Hello All,

What is the best way to query Ethereum wallet balances and transactions? I am new to the blockchain game and I am building a personal portfolio app that should:

1) read ETH balance
2) read ETH transaction history (including transaction fees)
3) read individual token balances
4) read individual token transaction history (including transaction fees)

I have an ETH node, therefore I can query directly the blockchain... I am using the following reference: https://web3js.readthedocs.io/en/v1.2.4/index.html# but I am kind of confused where to start...

Thank you all
8  Economy / Service Discussion / Re: Is https://blockexplorer.com/ down? on: January 20, 2020, 04:13:35 PM
It's probably connected with the website, it couldn't sync, just like in the screenshot you gave. I thought maybe something is wrong with the internet but I'm in a different country with good internet, so probably it's not anywhere with the connection. Maybe just like mocacinno said, just try the things on his list.

Is there something specific about why you want blockexplorer.com? Maybe the listed sites above are okay unless there's another functionality that other explorers should have?

thank you for your support!

I just need a simple API that return wallet balance based on wallet address, list of transactions and individual transaction fees... any suggestion?

Thank you
9  Bitcoin / Development & Technical Discussion / Re: how to read blockexplorer on: January 20, 2020, 04:05:59 PM
Here is how the JSON looks like:



The picture above represents the three transactions you received. They are ordered by date (descending), meaning, that #0 is the last one you received.

As an example, I selected the last transaction. Here is the JSON and the equivalent in the explorer:



I've used the same colors to highlight the addresses and amount in both screenshots, so it's easier to read and understand.

The fees can be found on the bottom as you can see on the first screenshot.

vIn represent the address(es) the funds are coming out from:

  • 1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH

While the vOut is where the BTCs are being sent to:

  • 15eeUWLYneRUr5KQYRgcTG4WRRQ1DJMSTc
  • 1ASKLKCZ3SKV2Ky5A2ncFxMxdGLRE9Y3Vv

And based on that, if 1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH is on the vIn field, it's an outgoing transaction, otherwise it's incoming.



Thank you so much for this! this make much more sense to me now!


just a note,   the transaction fees are for the overall block, right? is there a transaction fee for each one of the transactions? how do I know how much each transaction costed me?


while doing some research and testing, I have found that blockchain.info have a different way to represent the same transactions.... see below...

https://blockchain.info/rawaddr/1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH

would anybody know why I cannot frn the transaction fees on blockchain.info?

if you would choose a reliable service, which one would you choose? (to read balance, transactions and transactions fee)

thank you all
10  Economy / Service Discussion / Is https://blockexplorer.com/ down? on: January 20, 2020, 01:38:40 PM
Hello,

Apologies in advance it it is a OT, but I was wondering if anybody has experienced any downtime of blockexplorer...

I am trying to access their services, but I cannot get any block info back:



Is there something that happen frequently?

Thank you all
11  Bitcoin / Development & Technical Discussion / how to read blockexplorer on: December 31, 2019, 12:41:34 PM
hello all,

first of all sorry for the silly request... I am trying to understand the outcome of blockexplores api

for example if I check the followign address: 1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH https://blockexplorer.com/address/1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH I get three transaction:

two deposit: 0.03086609 and 0.03602039

and one withdraw: 0.03602039

if instead I use the API, I get the overall block data https://blockexplorer.com/api/txs/?address=1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH

I am unsure how to read the JSON I get back from the API... how do I know what is the incoming and outgunning transaction? how do I know what was paid in fees?

can anyone illuminate me Smiley  (below extract of JSON)

Code:
{
                    "txid": "4c26a643aa025a2320eee133cf553949d71bd9cb180071c152d753903645d221",
                    "vout": 24,
                    "sequence": 4294967293,
                    "n": 0,
                    "scriptSig": {
                        "hex": "47304402203ec5248f97b98b7e860c0b46ffd44f7f5ccd04c2f97f78c5a960e1abc5b705c702201251677c5adab0ad032b049408df02f8e91225c6cc6594a901540e09baf6d94a012102d79ba705aac9f43d8f1d629a9f12838a1ee04c5398c3ed89054694fd7bbd6f9a",
                        "asm": "304402203ec5248f97b98b7e860c0b46ffd44f7f5ccd04c2f97f78c5a960e1abc5b705c702201251677c5adab0ad032b049408df02f8e91225c6cc6594a901540e09baf6d94a[ALL] 02d79ba705aac9f43d8f1d629a9f12838a1ee04c5398c3ed89054694fd7bbd6f9a"
                    },
                    "addr": "1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH",
                    "valueSat": 3602039,
                    "value": 0.03602039,
                    "doubleSpentTxID": null
                }


Code:
{
                    "value": "0.03086609",
                    "n": 0,
                    "scriptPubKey": {
                        "hex": "76a914a66f0c9c8e60898f4b7b8a25d21437a223e0cab988ac",
                        "asm": "OP_DUP OP_HASH160 a66f0c9c8e60898f4b7b8a25d21437a223e0cab9 OP_EQUALVERIFY OP_CHECKSIG",
                        "addresses": [
                            "1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH"
                        ],
                        "type": "pubkeyhash"
                    },
                    "spentTxId": null,
                    "spentIndex": null,
                    "spentHeight": null
                }


Code:
{
                    "value": "0.03602039",
                    "n": 24,
                    "scriptPubKey": {
                        "hex": "76a914a66f0c9c8e60898f4b7b8a25d21437a223e0cab988ac",
                        "asm": "OP_DUP OP_HASH160 a66f0c9c8e60898f4b7b8a25d21437a223e0cab9 OP_EQUALVERIFY OP_CHECKSIG",
                        "addresses": [
                            "1GB2CgZ9a4yXFaaN2YfmTKuhZbomkpUfbH"
                        ],
                        "type": "pubkeyhash"
                    },
                    "spentTxId": "75ccef7cfd58cb9b3cd24d3d31a4405b423efbffd21dcf46e0b0b63419236e05",
                    "spentIndex": 0,
                    "spentHeight": 609868
                }
12  Bitcoin / Electrum / Summary of Wallet balance and transactions -> grouping wallet addresses on: December 30, 2019, 06:52:20 AM
Hello,

I am a noob on using electrum wallet... It seems to me that for each transaction in exit (withdraw), Electrum generate a "change" transaction on a "change" address...

I do understand the concepts of "multiple-wallet addresses", including the "change wallet addresses", but I was wondering if there is a way that I can simply request the holding and all transaction of the entire wallet (not by querying each individual address)...

Lets assume that I use https://blockexplorer.com/ is there any way I can simply check the overall wallet balance and transaction history?

I am building an app, and it is annoying for me to check each wallet address in order to get the total balance and the overall transaction list...

thank you all
13  Bitcoin / Bitcoin Discussion / Re: Building an ATM: what are the steps? on: July 18, 2018, 12:43:04 PM
...
But I do not find any wrong if ATMS for bitcoin are installed.  There may be many shopkeepers who may not be accepting bitcoin or may not be having much knowledge about it.  ATMs will deliever fiat currency.  So for payment to them fiat currency will be required and ATMS I think are must for this purpose.  
Maybe it's easier to start to have a look at currency exchange shops how do they operate, how they handle cach, because they do a really similar activity when they exchange fiat for foreign fiat...
But usually bitcoin is not legally accepted as a currency in most countries, except for some lucky ones...

I am not thinking of people buying BTC via ATM to use them for other purchases... at the moment (and please correct me if I am wrong), people are Hodling BTC and Crypto in the dream of "getting rich".... an ATM, in this point and time, help people not so much techy, getting BTC just simply by with cash.... probably in 10 years time none will ever see/use an ATM, but now I see it as a critical step to increase adoption....
14  Bitcoin / Bitcoin Discussion / Re: Building an ATM: what are the steps? on: July 18, 2018, 12:36:41 PM
Hi All,

First of all, apologies if I am posting this in the wrong forum; @Admin, please move this topic in the appropriate category in case it is necessarily.

I am embarking on a DIY project, building a multy-coin ATM, starting with Bitcoin...

I am more focused on the SW than the HW (Hardware is easy to find even in Amazon) was wondering if anyone here has some good resources for this project and in particular:

1) Open Source Projects; so far I have found:

2) What are the Steps to get CKY and AML embedded into the ATM

3) Can a BTC ATM have also Credit Card Reader (I have seen only Cash machine so far)

4) what is the best way to provide liquidity? (hot-wallet, bitcoin exchange connection, others?)

many thanks all

Regards

Ivan
I don't think so that building ATM is a good idea when it comes to bitcoin because in the other hand we all known that bitcoin was created with the purpose of giving a much easiest and fastest way of making transactions so why building or creating ATM. Is there difference with the bank and to bitcoins when that happens. I think and I believe that we don't need ATM if we wanted a much convenient way of doing any transactions.

I agree in the long run.... but the problem now is "adoption".... short/medium time ATM can "sky-rocket" adoption, in a bull run (I have so many friends who would have use an ATM last November-Feb....)
15  Bitcoin / Bitcoin Discussion / Re: Building an ATM: what are the steps? on: July 17, 2018, 01:30:33 PM
ATMs Bitcoin (ATM) are growing around the world. They are a convenient way to buy bitcoins with cash without going online or interacting with another person.


I would say that BTC ATM are for the "non-tech people"... every mobile phone could work as good as an ATM (with Credit/Debit card instead of cash)... but many people still do not trust "digital tech"... therefore I see a good potential in BTC ATM....

anyone has experience in legal obligation for the installation?
16  Bitcoin / Bitcoin Discussion / Re: Building an ATM: what are the steps? on: July 14, 2018, 05:52:16 PM
I don't know in which country you will install that ATM, but at first I would check the legal background of it.
Do you need to obtain special licences for installing and operating the ATM but as it would work with real fiat notes it's really possible that you have to, but you should check it.
If the legal background is clear after you can start thinking about building the ATM. Or you can check if there's a second hand ATM available for you somewhere to start with... maybe it's easier to have a working one and see how it works than to start it from scratch...

Great Suggestions!

I am in Italy, I am sure that there are already few installations in the main cities (Milan, Rome etc...)... but I am not sure what are the "rules" from government point of view.... I would need to check! would you have any suggestion where to start?

Cheers

FiNaR
17  Bitcoin / Bitcoin Discussion / Building an ATM: what are the steps? on: July 11, 2018, 09:45:33 AM
Hi All,

First of all, apologies if I am posting this in the wrong forum; @Admin, please move this topic in the appropriate category in case it is necessarily.

I am embarking on a DIY project, building a multy-coin ATM, starting with Bitcoin...

I am more focused on the SW than the HW (Hardware is easy to find even in Amazon) was wondering if anyone here has some good resources for this project and in particular:

1) Open Source Projects; so far I have found:

2) What are the Steps to get CKY and AML embedded into the ATM

3) Can a BTC ATM have also Credit Card Reader (I have seen only Cash machine so far)

4) what is the best way to provide liquidity? (hot-wallet, bitcoin exchange connection, others?)

many thanks all

Regards

Ivan
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!