Search…
Introduction
Network
SXP
Staking
Governance
API
Swap
Smart Contract
Subgraph API
Reference
Swipechain
Introduction
Swipe Nodes
Run SwipeChain
Build on Source Code
Build with Script
Developers
Staking
Staking Details
Metamask
Trust Wallet
Ledger
View your Rewards
Claim Your Rewards
Governance
Vote
Proposals
FAQ
Frequently Asked Questions
Powered By
GitBook
Build on Source Code
Download SwipeNode source code from Github
1
sudo
apt-get
update
2
sudo
apt-get
-y upgrade
3
sudo
apt
install
-y
curl
vim
git
build-essential jq
4
​
5
wget
https://dl.google.com/go/go1.15.5.linux-amd64.tar.gz
6
tar
-xvf go1.15.5.linux-amd64.tar.gz
7
mv
go /usr/local
8
rm
go1.15.5.linux-amd64.tar.gz
# cleanup
9
​
10
export
GOROOT
=
/usr/local/go
11
export
GOPATH
=~
/go
12
export
GOBIN
=
$GOPATH
/bin
13
export
PATH
=
$GOBIN
:
$GOROOT
/bin:
$PATH
14
​
15
git
clone https://github.com/SwipeWallet/swipechain-node.git
16
​
17
cd
swipechain-node
18
make
install
tools
Copied!
Ensure you have a recent version of go (ie
1.15
) and enabled go modules And have
GOBIN
in your
PATH
1
export GOBIN=$GOPATH/bin
Copied!
Automated Install Locally
Install via this
make
command.
1
make
install
Copied!
Once you've installed
swipecli
and
swiped
, check that they are there {GOBIN} folder swipecli and swiped generated.
1
swipecli
help
2
swiped
help
Copied!
Start Standalone Full Stack
For development and running a full chain locally (your own separate network), use the following
make
command.
1
make
-C build/docker reset-mocknet-standalone
Copied!
Format code
1
make
format
Copied!
Build all
1
make
all
Copied!
Test
Run tests
1
make
test
2
# test with NATIVE SXP
3
NATIVE
=
true
make
test
Copied!
To run test live when you change a file, use...
1
go get -u github.com/mitranim/gow
2
make test-watch
Copied!
Swipechain - Previous
Run SwipeChain
Next
Build with Script
Last modified
10mo ago
Copy link
Contents