Bitcoin Forum
May 02, 2024, 02:56:02 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 [2] 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 »
21  Bitcoin / Development & Technical Discussion / Re: PowerShell and Bitcoin Core on: January 29, 2018, 11:10:15 PM
Powershell Cmdlets
https://technet.microsoft.com/en-us/library/ff714569.aspx

Powershell Cookbook
http://www.reedbushey.com/86Windows%20Powershell%20Cookbook%203rd%20Edition.pdf

Powershell Videos
https://www.youtube.com/watch?v=wQOONLaozjQ&list=PL8U9xbzeyGGbV8pqFuMK9WZn69IyinIMF
22  Bitcoin / Development & Technical Discussion / Re: PowerShell and Bitcoin Core on: January 29, 2018, 11:00:50 PM
If you are in Windows 7-10, open "My Documents" and the same way you would type in like "www.facebook.com" or something on an internet browser, go to the My Documents address bar and type "Powershell". And it will open a Windows Command line.

This link has a thing that you can Copy and Paste into the Command line (called a Script) that creates a Calculator that you can use. If you put in various things you can make apps that do different things.
https://gallery.technet.microsoft.com/scriptcenter/7e08cb64-f621-44b2-810b-dab3827755ce

Here are some older posts about Bitcoin and Powershell.

Hello All,

I am a hobbyist .Net developer and had been trying (unsuccessfully) to use the "Bitnet" project (http://sourceforge.net/projects/bitnet/) for a while.  I finally got fed up and decided to start from scratch, below you will find the "first-pass"/"proof of concept" implementation of some of the "more commonly" used bitcoind rpc calls.  Most of the work is in the string formatting, and you will still have to handle the json string that gets returned, but its a start, and hopefully someone will find it useful.

It makes use of Invoke-WebRequest command available in Powershell 4.0

Any input would be appreciated!  Feel free to use/distribute to your hearts content, I simply ask that any improvements or extensions make their way back to this thread.

Enjoy:
copy the following text into a new file and save it as PowerCoin.ps1

H07ZmHjToR9k3L6+FtInvboy3TQktffyrVKph2hRnhHmZwOu1zomf9kgVBThEaCLbo0Kb5VfSpesiTvmsCnNBiE= (Signed with my Tip Address)

Code:
##Title: PowerCoin
##Version: 0.01
##Date: 6/7/2014
##Author: jagallout
##Usage: It works best to dot source the .ps1 file (e.g. PS C:\[path to PowerCoin.ps1]> . .\PowerCoin.ps1 )
##This will prompt you for a username/password and for the Uri for the rpc server, then you can just call the methods by name (e.g. getinfo)
##Question: jagallout on bitcointalk.org
##Tips: 1GqrY1LSRD4N99LQn4ULhSSoJ79B7rtC6W


$cred = Get-Credential
$Uri = Read-Host "Specify RPC Server"

$p_jsonrpc = "`"jsonrpc`":2.0"
$p_id = "`"id`":1"

function execute
{

    param
    (
    $json
    );

    $result = Invoke-WebRequest -Uri $Uri -Method Post -ContentType "application/json-rpc" -Credential $cred -Body $json

    return $result.Content
}

function getInfo
{

    $json =
@"
{"method":"getinfo",$p_id, $p_jsonrpc}
"@

    return execute($json)

}

function getblockcount
{

    $json =
@"
{"method":"getblockcount",$p_id, $p_jsonrpc}
"@

    return execute($json)

}

function getbestblockhash
{

    $json =
@"
{"method":"",$p_id, $p_jsonrpc}
"@

    return execute($json)

}

function getdifficulty
{

    $json =
@"
{"method":"getdifficulty",$p_id, $p_jsonrpc}
"@

    return execute($json)

}

function getreceivedbyaddress
{

    Param
    (
    [string]$address,
    [int]$confirmations
    );

    $params = "[`"$address`",$confirmations]"
    
    $json =
@"
{"method":"getreceivedbyaddress","params":$($params.ToString()), $p_id, $p_jsonrpc}
"@

    return execute($json)
    
}

function signmessage
{
    Param
    (
    [parameter(mandatory=$true)][string]$address,
    [parameter(mandatory=$true)][string]$message
    );

    $params = "[`"$address`",`"$message`"]"

    $json =
@"
"@

    return execute($json)
}

function verifymessage
{
    Param
    (
    [parameter(mandatory=$true)][string]$address,
    [parameter(mandatory=$true)][string]$signature,
    [parameter(mandatory=$true)][string]$message
    );

    $params = "[`"$address`",`"$signature`",`"$message`"]"
    
    $json =
@"
{"method":"verifymessage","params":$($params.ToString()), $p_id, $p_jsonrpc}
"@

    return execute($json)
    
}

function getbalance
{

    Param
    (
    [string]$account,
    [int]$confirmations
    );
  
    if (!$account) {$account = ""}
    if (!$confirmations) {$confirmations = 6}
    
    $params = "[`"$account`", $confirmations]"

    $json =
@"
{"method":"getbalance","params":$($params.ToString()), $p_id, $p_jsonrpc}
"@

    return execute($json)

}

function getaccount
{
    Param
    (
    [string]$account
    );

    $params = "[`"$account`"]"

    $json =
@"
{"method":"getaccount","params":$($params.ToString()), $p_id, $p_jsonrpc}
"@

    return execute($json)
}

function getaccountaddress
{
    Param
    (
    [string]$account
    );
    
    $params = "[`"$account`"]"

    $json =
@"
{"method":"getaccountaddress","params":$($params.ToString()), $p_id, $p_jsonrpc}
"@

    return execute($json)
}

function dumpprivkey
{
    Param
    (
    [parameter(mandatory=$true)][string]$address
    );

    $params = "[`"$address`"]"

    $json =
@"
{"method":"dumpprivkey","params":$($params.ToString()), $p_id, $p_jsonrpc}
"@
    
    return execute($json)
}

function getnewaddress
{
    Param
    (
    [string]$account
    );
    
    $params = "[`"$account`"]"

    $json =
@"
{"method":"getnewaddress","params":$($params.ToString()), $p_id, $p_jsonrpc}
"@
    return execute($json)
}

function gettransaction
{
    Param
    (
    [parameter(mandatory=$true)][string]$txid
    );

    $params = "[`"$txid`"]"

    $json =
@"
{"method":"gettransaction","params":$($params.ToString()), $p_id, $p_jsonrpc}
"@

    return execute($json)

}

Hey Guy, i wrote a script to monitor my mining rig by netcat latest log to Seashell because i am too tired to watch every via Teamviewer.

This is also script for auto relaunch Mining ClayMore. It may work with other Miner like ccminer, but i havent tested yet, so feel free to try. All script i wrote is batch, powershell and bash. Everything is clear code. You can check on your own.

Requirement:
- Powershell
- Windows 10 with SubSystem Linux included. ( You can try cygwin)

Why:
- Batch is good, but it is limited. Powershell can reach System Process Level Monitor.
- Windows Pipe is stupid. Command must finish before pipe to other. Linux is line by line pipe.

Step by Step Guide:
1. Install SubSystem Linux by following online guide:
https://msdn.microsoft.com/en-us/commandline/wsl/install-win10

TLD'R:
- Run in Powershell:
   Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Enable Developer Mode:
   https://www.ghacks.net/2015/06/13/how-to-enable-developer-mode-in-windows-10-to-sideload-apps/
- Run cmd and type "bash" (without quotes)

2. Copy all to your claymore directory. Make sure start-eth-edited.bat is same directory with file *Miner.exe

3. Edit file auto.txt. Change your email, Bot_email ,your *Miner.exe and Worker value. ( I use Gmail so if you use anything else, please edit mail config yourself)

4. Create shortcut start-eth-edited.bat to Startup Directory to run with Windows startup.

!!!! Windows file like .txt and .bat is free to edit. but .BASH (or any thing run inside BASH) must be edited by vim inside bash. If you edit .bash file inside windows, please contact me to fix. Linux file cant contain /r charater.

After success, you will receive mail like this. It contains link of seashells.io link.
http://prntscr.com/hii7re

Seashells.io will monitor your rig like this.
http://prntscr.com/hii8ay

Flow:
Start-eth-edited ---Loop---> auto.bat

auto.txt --variable--> auto.bat

auto.bat --call--> script/FindProcessMining.ps1  ; find top 15 process with Highest CPU

auto.bat --excute--> MiningProcess ; excute Mining Process if top process doesnt have Mining Process

auto.bat --call --> script/seashell-mail.bash ; Setup seashell and send to your email. After that, script seashell sleep forever to prevent bash close.


If you need any support or have any feed back, comment or email me: sangvohoang@vnoss.org

TODO Next:
- Fix all remain bug.
- Move from Mail to Messenger Facebook Bot. I am writing a Bot on Facebook Messenger but I dont have enough money to buy a vps contain data.
- Messenger Bot will have lot lot more feature than this. Include manage your own rigs on Messenger.

!!! Script is Free to use. But i need your help to improve the script. Please donate me at ETH Address: 0x0A7721Bef04B491F07cCd02102622E1CdcD84a76

Link: https://drive.google.com/file/d/14pGlf_1Cy-Ilhy4zLrH5Gk0IdICIMtGK/view?usp=sharing

It really is a pain to identify which GPU needs attention based on information available in Windows. 

The closest I have come to identifying a GPU index to its PCI slot is demonstrated in the below Powershell script.  But even then, each Windows install is different so this procedure can't really be reproduced.  I am posting this in case someone has come across a better method or can expand on this script.

The idea behind this script is to identify all PCI devices and their children in Windows.  Then, one has to unplug GPU by GPU and correlate the PCI device to a physical PCI slot.  Once you have this cross reference, you can disable the GPUs you need in order to identify them.  The disabled GPUs will output a ProblemCode other than zero in the script.

Required DeviceManagement Cmdlets:
https://gallery.technet.microsoft.com/Device-Management-7fad2388

Powershell Script:
https://pastebin.com/x3zzzgru

Powershell Output:


/c
23  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][PoW] Aura - smart contract ledger - YouStock - tokenized selfhood on: January 29, 2018, 10:51:21 PM
Btw, Temple Coin is being done under the name of the Shaivite Temple, and on the Shaivite Temple Website. So there will be no Taxes for Religious Trading. No Taxes for Seeds, no Taxes for anything traded for Temple Coins with a Non-Profit Entity, or for Donations. And we may be able to work out Deductions for Cryptocurrency Donations on your Taxes. If they want to Tax it in your average situation, they need to Deduct it when you Donate it also probably.

When people begin making Tokens for their Non-Profit on the Aura Blockchain, and creating Apps that do simple Calculations.
24  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] #Blessed Temple Coin [TMPC] PoS 8% & Shaligram [SGRAM] [SHG] PoW on: January 29, 2018, 10:48:54 PM
Btw, Temple Coin is being done under the name of the Shaivite Temple, and on the Shaivite Temple Website. So there will be no Taxes for Religious Trading. No Taxes for Seeds, no Taxes for anything traded for Temple Coins with a Non-Profit Entity, or for Donations. And we may be able to work out Deductions for Cryptocurrency Donations on your Taxes. If they want to Tax it in your average situation, they need to Deduct it when you Donate it also probably.
25  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][PoW] Aura - smart contract ledger - YouStock - tokenized selfhood on: January 29, 2018, 10:39:16 PM
Everyone should start making Aura Facebook groups, and you can make them General Coin based Groups, and then you can talk about all kinds of Coins in it. Then share the Group here and everyone here can join and we can all post in each others groups.
26  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] #Blessed Temple Coin [TMPC] PoS 8% & Shaligram [SGRAM] [SHG] PoW on: January 29, 2018, 10:20:59 PM
Some Malawi based Seeds will go out soon.

And I will be growing some of them soon also.
27  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] Temple Coin has an International Human Rights Case Against TX, CO & DEA on: January 29, 2018, 10:07:12 PM
My dispute is that the NSA FOIA office claims that if they were to give me my Records (after violating my 4th Amendment, under the guise that they are collecting the records for me, and I can access them; which is what they said when Edward Snowden told us about the PRISM program), then they would also have to give suspected Terrorists their Records.

And my dispute is "Yes", if the suspected terrorist has not had rights taken away by Due Process and Conviction, then they have to give them their records too. That is correct, they are correct about that. And that is not an argument against giving me my Records.

This is from the NSA Website, and is simply being completely ignored by the NSA

https://www.nsa.gov/resources/everyone/foia/
The Privacy Act (PA) protects an individual's privacy by putting controls on federal agencies in the collection, use, maintenance, and dissemination of personal information. In addition, it entitles individuals to access federal agency records or to request an amendment to records that are maintained in a file retrievable by an individual's name or personal identifier, except to the extent that information is exempt from release. Individual, in the context of the Privacy Act, is defined as a U.S. citizen or an alien lawfully admitted for permanent residence. The Privacy Act also requires that agency records be accurate, relevant, timely, and complete, and amendments are limited to these criteria. However, amendments are normally restricted to correcting factual errors and not matters of official judgments, such as performance ratings, or subjective judgments that reflect an individual's observation, evaluation, or opinion.
28  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][PoW] Aura - smart contract ledger - YouStock - tokenized selfhood on: January 29, 2018, 09:49:39 PM
And really, what is Ethereum Classic? And because that exists, what is Ethereum? Aren't they really just Clones of Etheruem with a few Parameter Changes.

EtherZero, what is a 0 Gas Price really but a Parameter change.

No one is really making massive changes to Ethereum, and they are going up to $100+. At least Aura has a new name, that has a meaning that is deeper than Xthereum and all these other random Coin names.

At least Ethereum is kind of an Asatru Spiritual thing, and Greek even. But what does "EtherZero" mean to someone that saw the word "Bitcoin" in a newspaper article.

Aura means something.
29  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][PoW] Aura - smart contract ledger - YouStock - tokenized selfhood on: January 29, 2018, 09:29:10 PM
Good luck.. I reviewed the github and there's nothing new in the source code other than a new word "toauraer" and a few parameter changes. Roll Eyes

This is an Ethereum Clone. That is not being hidden.

The Temple Coin Team is currently working on new Source Code as well though, we will have our own version of Ethereum soon enough.

Aura was not made by Temple Coin, but I had just made my first Ethereum Clone, and was not sure how to make a GUI interface, and then the next day I randomly found that Aura had been created just a day after I first Cloned Ethereum.

And the YouStock is a good Focus, I am the Creator of the Cryptocurrency Towns Concept, so I am using Aura as the base for anyone who wants to make a Town Coin or a State Coin or a Government Coin or a Company Coin or whatever, but wants it to be like a Stock, or Coupon, we will use the Ethereum Token Model on the Aura Blockchain. And I like the name Aura, as it goes with the name Temple Coin.

So we don't really need large Scale Bitcoiner adoption, I already have the plans for what the Temple Community will do with it. And we will accept other Ethereum Clones/Forks as well.

But again, we also already have someone working on one with new Source Code.

Temple Coin is a Coin Network, and we are looking for New Coins.
30  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] Temple Coin has an International Human Rights Case Against TX, CO & DEA on: January 29, 2018, 05:29:34 PM
I just called the NSA Inspector General because I called him when I appealed last year and he said that he couldn't do anything until after the Appeal. And this time, he said "I am just going to leave it with them" because they told me to take it to a Federal Judge.

So I think the issue here is that they just don't know the law, and don't want to do anything until a Judge tells them to, because no one has ever done this before.

I can't believe I am the first person to ever Call the NSA FOIA Liaison office, and not accept the answer that "We exist to tell you that we aren't sure about anything"; but apparently I am the first one to not accept that answer, and my Federal Case against the NSA will be precedent setting.
31  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] #Blessed Temple Coin [TMPC] PoS 8% & Shaligram [SGRAM] [SHG] PoW on: January 29, 2018, 02:46:17 PM
Google "My Wallet Won't Sync" or read these links to see that the mistake is not mine here, you just need to do what I said

https://www.reddit.com/r/Antshares/comments/6o7y4w/my_wallet_isnt_syncingthe_ultimate_guide/
https://www.reddit.com/r/NeutronCoin/comments/6nboyj/wallet_not_syncing/
https://bitcointalk.org/index.php?topic=103167.0
32  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] #Blessed Temple Coin [TMPC] PoS 8% & Shaligram [SGRAM] [SHG] PoW on: January 29, 2018, 02:39:52 PM
I have downloaded the wallet but it says "out of sync" for several hours now. Anyone knows how to fix this or maybe the blockchain still not active? Still working on the translations. Thanks for anyone who can answer.

Hi Dev, my temple coin it has been like that for like more than a day now. It is not syncing. I do hope you can address this one so that you can help me make the wallet work. Also do you have a step by step guide on how to mine using a laptop? And of course the wallet. Thanks.

You may need to take your Wallet.bat file and then redownload the Wallet. Or, load the Blockchain on another Computer, and then send your Balance from the one that is stuck to the one that works.

Ummmm It's like your suggesting that I don't use my computer and instead purchase a new computer and do it there. Surely there must be some other way right? Like adding a .conf file with some nodes on it. Give me the link to download the actual temple wallet maybe the one I downloaded must be obsolete and not working.

No, this happens with tons of Coins. For example, Ethereum has this problem all the time. You simple have to take your Wallet.bat file, redownload the wallet, and put your wallet.bat file in the new Wallet.

It just happens with Blockchains.
33  Alternate cryptocurrencies / Altcoin Discussion / Re: CLONINING ETHEREUM IS EASIER THAN MAKING A CRYPTONOTE OR FORKNOTE (Here is How) on: January 29, 2018, 04:42:12 AM
34  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][PoW] Aura - smart contract ledger - YouStock - tokenized selfhood on: January 29, 2018, 04:41:32 AM
I had not even thought of this until now, but apparently because you can create Smart Contracts (which can be apps) on the Ethereum Blockchain, and the Aura Blockchain...

We can actually create exchanges on the Aura Blockchain
https://www.stateofthedapps.com/dapps/etherdelta

EtherDelta is build on the Ethereum Blockchain apparently, I did not know that until a minute ago.

Here are more.
https://www.stateofthedapps.com/dapps/ico-wizard
https://www.stateofthedapps.com/dapps/decentrex
https://www.stateofthedapps.com/dapps/bitok-dice
https://wizard.oracles.org/
https://decentraland.org/
https://www.stateofthedapps.com/dapps/sportcrypt
https://www.stateofthedapps.com/dapps/blockjack
https://www.stateofthedapps.com/dapps/etherwall
https://www.stateofthedapps.com/dapps/slotthereum
https://www.stateofthedapps.com/dapps/realms-of-ether
https://www.stateofthedapps.com/dapps/ether-rock
https://www.stateofthedapps.com/dapps/tipeth
https://www.stateofthedapps.com/dapps/cryptoface
https://www.stateofthedapps.com/dapps/smartex

And one that many people may have heard about or read articles about, but didn't fully understand.
https://www.stateofthedapps.com/dapps/cryptokitties
35  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][PoW] Aura - smart contract ledger - YouStock - tokenized selfhood on: January 29, 2018, 04:17:37 AM
I am not absolutely positive, but I believe that this game can be played using Aura.
http://www.bspend.com/etherization

Here are some other Decentralized Apps Built on Ethereum, we may be able to use many of them on Aura.
https://www.stateofthedapps.com/
36  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] Ethereum: Welcome to the Beginning on: January 29, 2018, 03:13:12 AM
There is now an Etheruem Clone called Aura, come vote on the [] marker. There is a decision being made between [YOU] and [AYO]
https://bitcointalk.org/index.php?topic=2818598.0
37  Alternate cryptocurrencies / Altcoin Discussion / Graphene and HyperLedger Fabric on: January 29, 2018, 02:53:06 AM
I recently figured out how to Clone Cryptonotes, Scrypt Coins, then Ethereum. Now I am going to start on Graphene and HyperLedger. And I am going to show everyone how to do it as I do it, so that anyone can do it.

Here is the Cryptonote thread
https://bytecointalk.org/showthread.php?tid=1218

Here is the Ethereum thread
https://bitcointalk.org/index.php?topic=2806271.0

Graphene

That is Ethereum, Ethereum allows people to create Smart-Contracts/Tokens, right? Bitshares was the first Coin to do that, and the Bitshares Tokens are called User Issued Assets (UIAs). The OpenLedger Platform is a Decentralized Exchange Platform, where Nodes are held open by people who are Voted for. So no single person or Company really operates it, it exists on a Blockchain.



Here is OpenLedger
https://openledger.info/

Here is the Cryptofresh Blockchain Explorer, which keeps track of the Transactions on OpenLedger.
http://cryptofresh.com/

All of that is on the Blockchain.

Here is the OpenLedger Github Repo
https://github.com/bitshares/bitshares-core

Bitshares UI
https://github.com/bitshares/bitshares-ui

So, that is the Smart Contracts and the Exchange.

Now, more recently Steemit was made. Which is like OpenLedger, but Social. And it is like Reddit, where you can Vote.
https://steemit.com/

Here is an example of a Steemit Fork
https://github.com/Someguy123/understeem

Steemit Copied Synero

Synero
https://bitcointalk.org/index.php?topic=827782.0
https://bitcointalk.org/index.php?topic=2413752.0
http://www.synereo.com/
https://themerkle.com/synereo-bringing-crypto-and-social-media-on-a-revolutionary-platform/

Synereo Git Repo
https://github.com/synereo/synereo

Here is the Graphene Blockchain
https://github.com/cryptonomex/graphene

Here is how to use it
https://objectcomputing.com/resources/publications/sett/march-2017-graphene-an-open-source-blockchain/

And we are just trying to create any kind of Social Media Platform on the Blockchain.

Here are some examples

Social/Social Media Blockchains
https://bitcointalk.org/index.php?topic=2657895.0
https://bitcointalk.org/index.php?topic=2291309.0
https://bitcointalk.org/index.php?topic=2677363.0
https://bitcointalk.org/index.php?topic=2461878.0
https://bitcointalk.org/index.php?topic=2027214.0
https://bitcointalk.org/index.php?topic=2648330.0
https://bitcointalk.org/index.php?topic=2407336.0
https://bitcointalk.org/index.php?topic=2426759.0
https://bitcointalk.org/index.php?topic=2519264.0
https://bitcointalk.org/index.php?topic=2567795.0
https://bitcointalk.org/index.php?topic=2437581.0
https://bitcointalk.org/index.php?topic=2348476.0
https://bitcointalk.org/index.php?topic=2644550.0
https://bitcointalk.org/index.php?topic=2432816.0
https://bitcointalk.org/index.php?topic=2401248.0
https://bitcointalk.org/index.php?topic=2398117.0
https://bitcointalk.org/index.php?topic=2447583.0
https://bitcointalk.org/index.php?topic=2158960.0
https://bitcointalk.org/index.php?topic=2234738.0
https://bitcointalk.org/index.php?topic=2570851.0
https://bitcointalk.org/index.php?topic=2191554.0
https://bitcointalk.org/index.php?topic=2372042.0
https://bitcointalk.org/index.php?topic=2402330.0
https://bitcointalk.org/index.php?topic=2344257.0
https://bitcointalk.org/index.php?topic=2046801.0
https://bitcointalk.org/index.php?topic=2187641.0
https://bitcointalk.org/index.php?topic=2206682.0
https://bitcointalk.org/index.php?topic=2367256.0
https://bitcointalk.org/index.php?topic=2313303.0
https://bitcointalk.org/index.php?topic=2313303.0
https://bitcointalk.org/index.php?topic=2209559.0
https://bitcointalk.org/index.php?topic=2110925.0
https://bitcointalk.org/index.php?topic=2291332.0

Graphene Bots

https://steemit.com/bots/@personz/a-new-voter-bot-newer-smarter-freer
https://steemit.com/cryptocurrency/@steemitprime/steemit-bot-2017-increase-upvote-and-follower-100-working
https://steemit.com/steemit/@cerebralace/how-to-use-the-steemit-voting-bots
https://steemit.com/steemit/@hoschitrooper/bots-bots-and-bots
https://steemit.com/steem/@heimindanger/don-t-use-vote-selling-bots-use-promoted-instead-a-bot-that-upvotes-you-when-you-burn-money
https://steemit.com/guide/@bitcoinparadise/do-you-want-to-run-you-own-voting-bot

reating a new Genesis File

http://docs.bitshares.org/testnet/private-testnet.html

Customizing the Genesis file

http://docs.bitshares.org/testnet/private-testnet.html#customization-of-the-genesis-file

The Bottom 2 Sections here explain creating a New Graphene Blockchain with a new Genesis Block

https://objectcomputing.com/resources/publications/sett/march-2017-graphene-an-open-source-blockchain/

Steemit is a Reddit Clone, and is limited in that fact. Of all the Social Media Websites on the Internet, Reddit is not really the best example. Reddit is almost secondary. Everyone is either on Facebook, Twitter or Instagram, or all of them. But Reddit is Secondary, like YouTube.

Steemit would do much better as a YouTube platform, where videos are uploaded and earn money, instead of Blogs. We will be launching a YouTube Graphene Clone eventually if someone else doesn’t.

That explains Steemit on a superficial level. I am not saying that Steemit is a failure, I am saying that it would be better if there were a YouTube version.

So secondly, Steemit is a platoform connected to a Coin. There is a backend to Steemit, called Steemd, and you can look at Steemd, just google it. And there are other things, like Blocktrades, which actually connects Steemit and Bitshares. The coin called STEEM, is a DPoWS, which stands for Delegated Proof of Work and Stake.

So let me explain what Delegated Proof of Work and Stake means:

Proof of Work is like Bitcoin and Litecoin and Dogecoin, where everyone Mines with Mining Machines.

Proof of Stake is like Temple Coin or PeerCoin or various other Coins. The way Proof of Stake Works in Steemit, is that anyone that has Coins, has Coins that gain value. And they gain value at a very very high rate the first year or something, then they don’t gain as much after that. And you get coins via Proof of Work, or via Delegated Votes on your Steemit posts, which awards you STEEM from the Blockchain.

Delegated means that the Proof of Work is Voted on, this is done through the “Witness” system. And any Computer or Server or Laptop or anything can be a Node and be a Witness. And Witnesses have the Obligation to Hold Open Nodes, and Mine Coins, which processes transactions and keeps the Blockchain moving. And they get a lot of Coins out of that. Delegated also applies to the Voting on Posts. On Steemit, you get paid when you get Votes, you get paid for Voting (more for posts that end up being popular and you voted early), and you can get votes on your Comments on Steemit. So the Delegated part is important to Steemit.

Here is the Witness page on Steemit
https://steemit.com/~witnesses

Witnesses are secretly very important to Steemit, and anyone can become one by being voted for, but they don’t advertise that because they don’t want to get taken over.

So that is the basics of how Steemit works.

Once you have Bitshares and Bitshares UI donwloaded, here is what you are supposed to do

Code:
dhcp19:graphene phil$ cd programs/witness_node
dhcp19:witness_node phil$ ./witness_node --rpc-endpoint 127.0.0.1:8090 --enable-stale-production -w '"1.6.0"'
2560491ms th_a       main.cpp:126                  main                 ] Writing new config file at /tao_builds/phil/projects/blockchain/phil/graphene/programs/witness_node/witness_node_data_dir/config.ini
2560511ms th_a       witness.cpp:89                plugin_initialize    ] witness plugin:  plugin_initialize() begin
2560511ms th_a       witness.cpp:99                plugin_initialize    ] key_id_to_wif_pair: ["GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]
2560511ms th_a       witness.cpp:117               plugin_initialize    ] witness plugin:  plugin_initialize() end
2560512ms th_a       application.cpp:357           startup              ] Replaying blockchain due to version upgrade
2560512ms th_a       application.cpp:254           operator()           ] Initializing database...
2560518ms th_a       db_management.cpp:51          reindex              ] reindexing blockchain
2560518ms th_a       db_management.cpp:104         wipe                 ] Wiping database
2560549ms th_a       object_database.cpp:87        wipe                 ] Wiping object database...
2560549ms th_a       object_database.cpp:89        wipe                 ] Done wiping object databse.
2560549ms th_a       object_database.cpp:94        open                 ] Opening object database from /tao_builds/phil/projects/blockchain/phil/graphene/programs/witness_node/witness_node_data_dir/blockchain ...
2560549ms th_a       object_database.cpp:100       open                 ] Done opening object database.
2560560ms th_a       db_debug.cpp:85               debug_dump           ] total_balances[asset_id_type()].value: 0 core_asset_data.current_supply.value: 1000000000000000
2560560ms th_a       db_management.cpp:58          reindex              ] !no last block
2560560ms th_a       db_management.cpp:59          reindex              ] last_block:  
2560562ms th_a       thread.cpp:95                 thread               ] name:ntp tid:123145365336064
2560562ms th_a       thread.cpp:95                 thread               ] name:p2p tid:123145366409216
2560566ms th_a       application.cpp:143           reset_p2p_node       ] Configured p2p node to listen on 0.0.0.0:64207
2560568ms th_a       application.cpp:195           reset_websocket_serv ] Configured websocket rpc to listen on 127.0.0.1:8090
2560568ms th_a       witness.cpp:122               plugin_startup       ] witness plugin:  plugin_startup() begin
2560568ms th_a       witness.cpp:129               plugin_startup       ] Launching block production for 1 witnesses.
 
********************************
*                              *
*   ------- NEW CHAIN ------   *
*   - Welcome to Graphene! -   *
*   ------------------------   *
*                              *
********************************
 
Your genesis seems to have an old timestamp
Please consider using the --genesis-timestamp option to give your genesis a recent timestamp
 
2560568ms th_a       witness.cpp:140               plugin_startup       ] witness plugin:  plugin_startup() end
2560568ms th_a       main.cpp:179                  main                 ] Started witness node on a chain with 0 blocks.
2560568ms th_a       main.cpp:180                  main                 ] Chain ID is 0e435e3d20d8efa4e47fae56707a460e35c034aa2b0848e760e51beb13b3db04

Code:
dhcp19:graphene phil$ cd program/cli_wallet
dhcp19:cli_wallet phil$ ./cli_wallet
Logging RPC to file: logs/rpc/rpc.log
2838642ms th_a       main.cpp:120                  main                 ] key_to_wif( committee_private_key ): 5KCBDTcyDqzsqehcb52tW5nU6pXife6V2rX9Yf7c3saYSzbDZ5W
2838649ms th_a       main.cpp:124                  main                 ] nathan_pub_key: GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
2838650ms th_a       main.cpp:125                  main                 ] key_to_wif( nathan_private_key ): 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
Starting a new wallet with chain ID 0e435e3d20d8efa4e47fae56707a460e35c034aa2b0848e760e51beb13b3db04 (from egenesis)
2838655ms th_a       main.cpp:172                  main                 ] wdata.ws_server: ws://localhost:8090
2838726ms th_a       main.cpp:177                  main                 ] wdata.ws_user:  wdata.ws_password:  
Please use the set_password method to initialize a new wallet before continuing
2838792ms th_a       thread.cpp:95                 thread               ] name:getline tid:123145506545664
new >>>

At this point, you can use the help command to explore how to use the wallet interface.

Programming with Graphene

The basic API for Graphene is based on remote procedure calls. The specific functions available depend on the terms of the contracts, defined by a particular blockchain instance. A common authentication module is accessed first through the login API. After authenticating, the client application is able to gather other remote object references and make calls to them.

The FC library is used to manage the transport details, allowing the nodes to accept a variety of transport protocols. As currently delivered, the witness_node application is configured to accept HTTP formatted requests. From a C++ application, the Graphene apps library and FC library work together to provide a simple programming model for such access.

Here is an example, taken from the cli_wallet application, showing how to connect to the node server, log in, and make additional calls.
Code:
          fc::http::websocket_client client;
          idump((wdata.ws_server));
          auto con  = client.connect( wdata.ws_server );
          auto apic = std::make_shared<fc::rpc::websocket_api_connection>(*con);
    
          auto remote_api = apic->get_remote_api< login_api >(1);
          edump((wdata.ws_user)(wdata.ws_password) );
          // TODO:  Error message here
          FC_ASSERT( remote_api->login( wdata.ws_user, wdata.ws_password ) );
    
          auto wapiptr = std::make_shared<wallet_api>( wdata, remote_api );
          wapiptr->set_wallet_filename( wallet_file.generic_string() );
          wapiptr->load_wallet_file();
    
          fc::api<wallet_api> wapi(wapiptr);
    
          auto wallet_cli = std::make_shared<fc::rpc::cli>();
          for( auto& name_formatter : wapiptr->get_result_formatters() )
             wallet_cli->format_result( name_formatter.first, name_formatter.second );


Without getting too deep, what is shown here is that wdata is some collection of initialization information collected from the command line, config files, etc. This is then used to create a client connection, log in (asserting that it was successful), creating an instance of the wallet API that communicates through the authenticated reference to make further calls.



Building Graphene on Ubuntu
https://github.com/bitshares/bitshares-core/wiki/BUILD_UBUNTU

Building Graphene on Windows
https://github.com/bitshares/bitshares-core/wiki/BUILD_WIN32

Nodes
https://github.com/bitshares/bitshares-core/wiki/Wallet_Full-Nodes_Witness_Nodes

API
https://github.com/bitshares/bitshares-core/wiki/API

Websocket Subscriptions
https://github.com/bitshares/bitshares-core/wiki/Websocket-Subscriptions

Wallet Cookbook
https://github.com/bitshares/bitshares-core/wiki/CLI-Wallet-Cookbook

How to set up Witness for Testnet
https://github.com/bitshares/bitshares-core/wiki/How-to-setup-your-witness-for-test-net-%28Ubuntu-14.04%29

If you are getting Error Messages while trying to do this, then read here, and if your problem is not solved here, you can post your problem and see if someone else can answer it.
https://github.com/bitshares/bitshares-core/issues

Bitsharestalk threads with helpful info
https://bitsharestalk.org/index.php?topic=22659.0
https://bitsharestalk.org/index.php/topic,18614.0.html
https://bitsharestalk.org/index.php?topic=17962.525
https://bitsharestalk.org/index.php?topic=18635.0
https://bitsharestalk.org/index.php?topic=21532.0
https://bitsharestalk.org/index.php?topic=23627.0
https://bitsharestalk.org/index.php?topic=22125.0
https://bitsharestalk.org/index.php?topic=15138.285
https://bitsharestalk.org/index.php/topic,19507.0.html
https://bitsharestalk.org/index.php/topic,18751.0.html
https://bitsharestalk.org/index.php/topic,22576.0.html

Abstract information about Graphene on Bitsharestalk
https://bitsharestalk.org/index.php?topic=21990.0
https://bitsharestalk.org/index.php?topic=25187.0
https://bitsharestalk.org/index.php?topic=18401.0
https://bitsharestalk.org/index.php/topic,21079.0.html
https://bitsharestalk.org/index.php?topic=23716.0
https://bitsharestalk.org/index.php?topic=23478.0
https://bitsharestalk.org/index.php?topic=23848.0
https://bitsharestalk.org/index.php?topic=18434.0



Fabric



Open Source Blockchains with uses
http://hyperledger.org/projects

This was the intro for HyperLedger fabric before it was created
https://www.youtube.com/watch?v=EKa5Gh9whgU

Video about how to Build Fabric
https://www.youtube.com/watch?v=Ggosz5-kjIA

HyperLedger Fabric
https://media.readthedocs.org/pdf/hyperledger-fabric/latest/hyperledger-fabric.pdf
https://hyperledger-fabric.readthedocs.io/en/release/
http://hyperledger-fabric.readthedocs.io/en/release/getting_started.html
http://hyperledger-fabric.readthedocs.io/en/release/blockchain.html
http://hyperledger-fabric.readthedocs.io/en/release/write_first_app.html
https://www.ibm.com/developerworks/cloud/library/cl-ibm-blockchain-101-quick-start-guide-for-developers-bluemix-trs/index.html
http://hyperledger-fabric.readthedocs.io/en/release/samples.html
https://github.com/CATechnologies/blockchain-tutorials/wiki/Tutorial:-Hyperledger-Fabric-v1.1-%E2%80%93-Create-a-Development-Business-Network-on-zLinux
https://chainhero.io/2017/07/tutorial-build-blockchain-app/
https://medium.com/@gaurangtorvekar/getting-started-with-hyperledger-fabric-ba7efb55b75
https://www.ibm.com/developerworks/cloud/library/cl-add-an-organization-to-your-hyperledger-fabric-blockchain/index.html
https://www.ibm.com/developerworks/library/mw-1705-auberger-bluemix/1705-auberger.html
https://linuxctl.com/2017/08/bootstrapping-hyperledger-fabric-1.0/


You can download Fabric with the Buttons at the top of the page on this link
https://www.hyperledger.org/projects/fabric

HyperLedger Live Chat
https://chat.hyperledger.org/channel/fabric

HyperLedger 7 part video series (after you watch  the first one, the others should automatically come up after each video)
https://www.youtube.com/watch?v=7EpPrSJtqZU

IBMs HyperLedger Blockchain
https://www.youtube.com/watch?v=JuXH9OYXcQQ

Here is an IBM series about HyperLedger
https://www.youtube.com/watch?v=yfpXnl6U3y8
38  Economy / Exchanges / Re: LiveCoin.net > Buy/Sell/Exchange > + New Markets on: January 29, 2018, 02:16:11 AM
Definitely interested in this exchange. Is this Exchange basically Agnostic? Fiat, Crypto, Tokens, etc.

Resources
https://medium.com/@mustwin/building-an-oracle-for-an-ethereum-contract-6096d3e39551
http://www.oraclize.it/
https://www.smartcontract.com/link
39  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][PoW] Aura - smart contract ledger - YouStock - tokenized selfhood on: January 29, 2018, 02:00:40 AM
Here is a Smart Contract someone can make into a YouStock

Code:
pragma solidity ^0.4.11;
 
contract Token {
    string public symbol = "";
    string public name = "";
    uint8 public constant decimals = 18;
    uint256 _totalSupply = 0;
    address owner = 0;
    bool setupDone = false;

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
 
    mapping(address => uint256) balances;
 
    mapping(address => mapping (address => uint256)) allowed;
 
    function Token(address adr) {
owner = adr;        
    }

function SetupToken(string tokenName, string tokenSymbol, uint256 tokenSupply)
{
if (msg.sender == owner && setupDone == false)
{
symbol = tokenSymbol;
name = tokenName;
_totalSupply = tokenSupply * 1000000000000000000;
balances[owner] = _totalSupply;
setupDone = true;
}
}
 
    function totalSupply() constant returns (uint256 totalSupply) {        
return _totalSupply;
    }
 
    function balanceOf(address _owner) constant returns (uint256 balance) {
        return balances[_owner];
    }
 
    function transfer(address _to, uint256 _amount) returns (bool success) {
        if (balances[msg.sender] >= _amount
            && _amount > 0
            && balances[_to] + _amount > balances[_to]) {
            balances[msg.sender] -= _amount;
            balances[_to] += _amount;
            Transfer(msg.sender, _to, _amount);
            return true;
        } else {
            return false;
        }
    }
 
    function transferFrom(
        address _from,
        address _to,
        uint256 _amount
    ) returns (bool success) {
        if (balances[_from] >= _amount
            && allowed[_from][msg.sender] >= _amount
            && _amount > 0
            && balances[_to] + _amount > balances[_to]) {
            balances[_from] -= _amount;
            allowed[_from][msg.sender] -= _amount;
            balances[_to] += _amount;
            Transfer(_from, _to, _amount);
            return true;
        } else {
            return false;
        }
    }
 
    function approve(address _spender, uint256 _amount) returns (bool success) {
        allowed[msg.sender][_spender] = _amount;
        Approval(msg.sender, _spender, _amount);
        return true;
    }
 
    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
        return allowed[_owner][_spender];
    }
}

Code:
[{"constant":true,"inputs":[],"name":"name","outputs":

[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":

[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":

[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":

[],"name":"totalSupply","outputs":[{"name":"totalSupply","type":"uint256"}],"payable":false,"type":"function"},

{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},

{"name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":

[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":

[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},

{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":

[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":

[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},

{"constant":false,"inputs":[{"name":"_to","type":"address"},

{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":

[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":

[{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"},

{"name":"tokenSupply","type":"uint256"}],"name":"SetupToken","outputs":[],"payable":false,"type":"function"},

{"constant":true,"inputs":[{"name":"_owner","type":"address"},

{"name":"_spender","type":"address"}],"name":"allowance","outputs":

[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"inputs":

[{"name":"adr","type":"address"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":

[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},

{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":

[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},

{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]
40  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] #Blessed Temple Coin [TMPC] PoS 8% & Shaligram [SGRAM] [SHG] PoW on: January 29, 2018, 12:26:54 AM
Video about how to create your own Ethereum Blockchain
https://www.youtube.com/watch?v=Vn73EX7zbCc
Pages: « 1 [2] 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!