Bako Safe SDK
Safe Code

Getting current version

import { Vault } from 'bakosafe'
 
const currentVersion = await Vault.BakoSafeGetCurrentVersion()

Getting a specific version

import { Vault } from 'bakosafe'
 
// safe_code is a unique string that identifies your predicate contract
const safe_code = 'real_code'
 
const version = await Vault.BakoSafeGetVersionByCode(safe_code)

Listing versions

import { Vault } from 'bakosafe'
 
const versions = await Vault.BakoSafeGetVersions()