# Javascript SDK

Find the published SDK [here](https://www.npmjs.com/package/ergonames).

First, we need to import the SDK.

```
npm install ergonames
```

#### resolve\_ergoname()

```javascript
let name = "~balb";
let address = await ergonames.resolve_ergoname(name);
```

#### check\_already\_registered()

```javascript
let name = "~balb";
let registered = await ergonames.check_already_registered(name);
```

#### check\_name\_valid()

```javascript
let name = "~balb";
let valid = await ergonames.check_name_valid(name);
```

#### reformat\_name()

```javascript
let name = "~balb";
let reformated_name = await ergonames.reformat_name(name);
```

#### check\_name\_price()

```javascript
let name = "~balb";
let price = await ergonames.check_name_price(name);
```

#### get\_block\_id\_registered()

```javascript
let name = "~balb";
let block_id = await ergonames.get_block_id_registered(name);
```

#### get\_block\_registered()

```javascript
let name = "~balb";
let block = await ergonames.get_block_registered(name);
```

#### get\_timestamp\_registered()

```javascript
let name = "~balb";
let timestamp = await ergonames.get_timestamp_registered(name);
```

#### get\_date\_registered()

```javascript
let name = "~balb";
let date = await ergonames.get_date_registered(name);
```

#### reverse\_search()

```javascript
let address = "3WwKzFjZGrtKAV7qSCoJsZK9iJhLLrUa3uwd4yw52bVtDVv6j5TL";
let token_list = await ergonames.reverse_search(address);
```

#### get\_total\_amount\_owned()

```javascript
let address = "3WwKzFjZGrtKAV7qSCoJsZK9iJhLLrUa3uwd4yw52bVtDVv6j5TL";
let amount_owned = await ergonames.get_total_amount_owned(address);
```
