Files
Vanillae/sidekick_examples
pharpend 6e1189a789 version bump sk/awcp/parasite to add tx_sign_yesprop
There is now an explicit function to have superhero sign the transaction *and*
propagate it into the network.  JR will simply reject these requests.
2023-07-20 14:34:19 -06:00
..

sidekick examples

TODO

  • form a spend transaction
  • transfer money on testnet
  • retrieve transaction info

Build Prereqs

Assuming Ubuntu 18.04. Adapt these instructions for your own system.

You need

  • npm to build TypeScript
  • tsc to compile
  • jx to orchestrate the build properly
  • [sidekick][sk] as a dependency
  • Python 3.6 or later to run jx

Steps

# install node and tsc
sudo snap refresh
sudo snap install node --channel 18/stable
npm install -g typescript
# install dependencies
mkdir vanillae && cd vanillae
git clone https://gitlab.com/pharpend/jx
git clone https://gitlab.com/pharpend/sidekick
chmod u+x ~/.local/bin/jx
git clone https

Protip: avoid using sudo npm install -g

If you want to avoid using sudo

mkdir ~/.npm-packages
npm config set prefix "${HOME}/.npm-packages"

Edit ~/.bashrc or ~/.zshrc with

NPM_PACKAGES="${HOME}/.npm-packages"
export PATH=$NPM_PACKAGES/bin:$PATH

How to build

You need

Build

You need to build sidekick separately

make

View

Many of the examples assume there is an HTTP server at localhost:8841 which responds positively to POST requests at /

vlogd is such a server, but you can roll your own if you want.

make serve
firefox localhost:8001

Build

make