checkpointState func main() { //importCheckpointSlabs() decodeSlabsWithBadger() } First import to badger db with importCheckpointSlabs Then decode with decodeSlabsWithBadger