Skip to content

Instantly share code, notes, and snippets.

View kaustubhkapatral's full-sized avatar

Kaustubh K kaustubhkapatral

  • Hyderabad, India
View GitHub Profile
wget https://golang.org/dl/go1.18.5.linux-amd64.tar.gz
sudo tar -xvf go1.18.5.linux-amd64.tar.gz
sudo mv go /usr/local
mkdir -p go/src/github.com
mkdir go/bin
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:/usr/local/go/bin:$GOBIN
echo "" >> ~/.bashrc
#!/bin/bash
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install build-essential jq -y
sudo apt install libseccomp-dev
@kaustubhkapatral
kaustubhkapatral / delegation.sh
Last active April 24, 2022 19:43
Auto-delegation for cosmos based networks
#!/bin/bash -e
BINARY="" #Name of the cli binary to execute. eg - gaiacli, akashctl etc.
KEY="" #Name of the the key name
DENOM="" #Denomination of the token. eg - uatom, uakt etc.
MINIMUM_AMOUNT="" #Min amount to be delegated. If the reward is less than this number deleagtion will not ake place
VALIDATOR="" #Validator address to deleagte to
CHAIN_ID="" #Chain id of the nework
NODE="" #External node to connect to
FEE=""$DENOM #Fees to attach with the transaction.

{"claims":[{"timestamp":1578923234,"type":"ACCOUNT","address":"0xAF8911392621C7881F4EF1A83021c651e0656f2a"}],"meta":{"address":"0x7b8CE1EFC66FB0730b95436d66D89A5B0888D656","signature":"0x57415d011a5dd765856ef75934a5ddcb8b439e2053e7079ffdca3f3e0c047c29042bd397408397d060bcce9068f67e9c428ffaf39659ed2ce0bd10566f4e02a01c"}}

{"claims":[{"timestamp":1578392737,"type":"ACCOUNT","address":"0xAF8911392621C7881F4EF1A83021c651e0656f2a"}],"meta":{"address":"0x7b8CE1EFC66FB0730b95436d66D89A5B0888D656","signature":"0xf9cdd484527d942ed64768344c0e10f22442046b4c1dd6765240741d5e1852c870402502e783dc79e22380c485a5eec69248cacebf1cdbc60ee9e749e029ca8c1b"}}

@kaustubhkapatral
kaustubhkapatral / celo-stake-off.md
Created December 6, 2019 04:43
Celo verification

CELO_VALIDATOR_GROUP_ADDRESS=7b8ce1efc66fb0730b95436d66d89a5b0888d656 CELO_VALIDATOR_ADDRESS=af8911392621c7881f4ef1a83021c651e0656f2a

Keybase proof

I hereby claim:

  • I am kaustubhkapatral on github.
  • I am k_kappa (https://keybase.io/k_kappa) on keybase.
  • I have a public key ASAQNWlD2egDSz5Q49GDDMpB8_aRg1_7KRAsgpWJTpvABQo

To claim this, I am signing this object: