Skip to content

Instantly share code, notes, and snippets.

@rubensayshi rubensayshi/evmparty.md
Last active Nov 22, 2016

Embed
What would you like to do?

Setup Counterparty using Federated Node Docker builds

Follow the documentatation with the below exceptions; http://counterparty.io/docs/federated_node/

After doing

git clone https://github.com/CounterpartyXCP/federatednode.git
cd federatednode

do;

git checkout evmparty

And when you're at the part where you run fednode install <CONFIG> <BRANCH> you run fednode install base evmparty.

After this you should stop the mainnet bitcoin and counterparty processes by running:

fednode stop counterparty
fednode stop bitcoin

And we'll have to wait for testnet to sync:

fednode tail bitcoin-testnet

Then start the testnet counterparty process fednode start counterparty-testnet

and again we wait for the sync to finish:

fednode tail counterparty-testnet

Now we can open a shell in the counterparty-testnet instance:

fednode shell counterparty-testnet

And open one to the bitcoin-testnet as well (different tab in your terminal):

fednode shell bitcoin-testnet

In the bitcoin-testnet let's create a new address

bitcoin-cli -testnet getnewaddress

Copy the address and put it in a var in the counterparty-testnet shell:

SOURCE="ADDRESSGOESHERE"

Go load that address with some BTC and XCP somewhere external.

now follow https://github.com/CounterpartyXCP/counterparty-lib/blob/evmparty/examples/contracts/crowdfund/EXAMPLE.md for your first smart contract.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.