First, we need to add our SDK to our build.sbt file.
libraryDependencies += "TODO"
let name: String = "~balb";
let address: Option[String] = ergonames.resolve_ergoname(name);
check_already_registered()
let name: String = "~balb"
let registered: Booleanean = ergonames.check_already_registered(name);
let name: String = "~balb";
let valid: Boolean = ergonames.check_name_valid(name);
let name: String = "~balb";
let reformated_name: String = ergonames.reformat_name(name);
let name: String = "~balb";
let price: i32 = ergonames.check_name_price(name);
get_block_id_registered()
let name: String = "~balb";
let block_id: Option[String] = ergonames.get_block_id_registered(name);
let name: String = "~balb";
let block: Option[Int] = ergonames.get_block_registered(name);
get_timestamp_registered()
let name: String = "~balb";
let timestamp: Option[Long] = ergonames.get_timestamp_registered(name);
let name: String = "~balb";
let date: Boolean = ergonames.get_date_registered(name);
let address: String = "3WwKzFjZGrtKAV7qSCoJsZK9iJhLLrUa3uwd4yw52bVtDVv6j5TL";
let token_list: Option[Array[BalanceToken]] = ergonames.reverse_search(address);
let address: String = "3WwKzFjZGrtKAV7qSCoJsZK9iJhLLrUa3uwd4yw52bVtDVv6j5TL";
let amount_owned: Option[Int] = ergonames.get_total_amount_owned(address);