Skip to content

Instantly share code, notes, and snippets.

@jimpick
Created February 17, 2019 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimpick/be713bc633afb29e22919d56fd4a3e57 to your computer and use it in GitHub Desktop.
Save jimpick/be713bc633afb29e22919d56fd4a3e57 to your computer and use it in GitHub Desktop.
#! /bin/bash
HEAD=`go-filecoin show block $(go-filecoin chain head | jq .[0]['"/"'] | tr -d \") | sed -n 's/Height: //p'`
go-filecoin client list-asks --enc=json | jq -C -s "map(select(.Expiry > $HEAD) | {Miner,ID, Price: .Price | tonumber, Expiry}) | sort_by(.Price) | reverse"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment