CryptoFly.us | CRYPTOCURRENCY BITCOIN SHIRTS CLOTHING APPAREL HATS

CRYPTO NEWS

How can I monetize my online app with ERC-20 tokens?

I guess I have a very common use case, but I don’t know how to implement it right:

Consider, I have a simple online app that users can use to do something (e.g. create a badge by users data, convert one document format to another, etc.). Now I want to monetize this app. For this, I’m going to create a ERC-20 token and sell the use of the app for these tokens: one token per one app usage.

There are alot of articles on the internet on how to write smart contracts, but I couldn’t find much info on how to bind the real world app to the token.

For instance, how will app know that a particular user paid a token and he can now use it? How a token sender address could be matched to the app user account? How can I withdraw ETH from the smart contract?

Any references to ready-to-use solutions, articles and examples are welcome.

bitcoin-cli very slow to respond to RPC calls (Raspberry Pi)

Running Bitcoin 0.11 on Raspberry Pi 2 (Quad core 900MHz 1GB RAM, 128GB Flash Drive for blockchain, 8GB SD Card for OS and software). Blockchain is fully synced, 13 connections. In htop, I see I’m around 700/862MB RAM, 1/99MB Swap. 1 processor is up around 90% but the other 3 are down in the <5%::Listen

Running Bitcoin 0.11 on Raspberry Pi 2 (Quad core 900MHz 1GB RAM, 128GB Flash Drive for blockchain, 8GB SD Card for OS and software).

Blockchain is fully synced, 13 connections. In htop, I see I’m around 700/862MB RAM, 1/99MB Swap. 1 processor is up around 90% but the other 3 are down in the <5% range.

I SSH into the pi (running bitcoind, no GUI) and some commands take forever to get a response. Sometimes getinfo or getpeerinfo will take 30-60 seconds to print out. gettxoutsetinfo takes way longer: almost ten minutes!! I don’t see any resources being maxed out in htop during this time.

I know this is a low-power machine, maybe the UTXO set hash in the gettxoutsetingo command is what’s specifically taking so long in that case.

Can I adjust any settings either in the RPi OS or bitcoin.conf to get snappier performance? Ideally I would like to run a few python scripts that use RPC, triggered by bitcoin’s blocknotify=...

Crypto Hats, Crypto Shirts, Crypto Socks, Crypto Clothing

How can I monetize my online app with ERC-20 tokens?

Shopping cart
There are no products in the cart!
Continue shopping
0