Bitcoin Forum
May 10, 2024, 03:38:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  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
2  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!
3  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
4  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
5  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
                }
6  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
7  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!