> For the complete documentation index, see [llms.txt](https://zack-balbin.gitbook.io/ergonames/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zack-balbin.gitbook.io/ergonames/sdks/sdk-functions.md).

# SDK Functions

| Function Name                | Description                                                                             | Current Implementation  |
| ---------------------------- | --------------------------------------------------------------------------------------- | ----------------------- |
| resolve\_ergoname            | gets the current owner address of an ergoname                                           | Python, JS, Rust, Scala |
| check\_already\_registered   | checks if an ergoname is already registered                                             | Python, JS, Rust, Scala |
| check\_name\_valid           | checks to see if name follows ergoname minting standard                                 | Python, JS, Rust, Scala |
| reformat\_name               | converts all uppercase letters to lowercase                                             | Python, JS, Rust, Scala |
| check\_name\_price           | returns the price to register a given ergoname                                          | Python, JS, Rust, Scala |
| get\_block\_id\_registered   | gets the block id ergoname was registered in                                            | Python, JS, Rust, Scala |
| get\_block\_registered       | gets the block height ergoname was registered in                                        | Python, JS, Rust, Scala |
| get\_timestamp\_registered   | gets the timestamp in milliseconds since Unix epoch of block ergoname was registered in | Python, JS, Rust, Scala |
| get\_date\_registered        | gets date of block ergoname was registered in                                           | Python, JS, Rust, Scala |
| reverse\_search              | gets all the owned ergoname tokens of an address                                        | Python, JS, Rust, Scala |
| get\_total\_amount\_owned    | returns a number of owned ergoname NFTs for a given address                             | Python, JS, Rust, Scala |
| check\_pending\_registration | checks if there are any pending registrations for an ergoname                           | Pythonm JS, Rust        |
| available\_for\_registration | checks if an ergoname is available for registration                                     | Python, JS, Rust        |

## Functions Example

#### resolve\_ergoname()

**Parameters:** name, explorer\_api

* **name:** the name of the ergoname you are trying to resolve
* **explorer\_api:** The url of the explorer api is an optional parameter and is the url of thge api you querying for data (Default is **api.ergoplatform.com**)

#### check\_already\_registered()

**Parameters:** name

* **name:** the name of the ergoname you are trying to see is already registered

#### check\_name\_valid()

**Parameters:** name

* **name:** the name of the ergoname you want to see is valid

#### reformat\_name()

**Parameters:** name

* **name:** the name of the ergoname you are trying to reformat

#### check\_name\_price()

**Parameters:** name

* **name:** the name of the ergoname you are trying to get the price for

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

**Parameters:** name, explorer\_api

* **name:** the name of the ergoname you are trying to get the block id registered in
* **explorer\_api:** The url of the explorer api is an optional parameter and is the url of thge api you querying for data (Default is **api.ergoplatform.com**)

#### get\_block\_registered()

**Parameters:** name, explorer\_api

* **name:** the name of the ergoname you are trying to get the block number registered in
* **explorer\_api:** The url of the explorer api is an optional parameter and is the url of thge api you querying for data (Default is **api.ergoplatform.com**)

#### get\_timestamp\_registered()

**Parameters:** name, explorer\_api

* **name:** the name of the ergoname you are trying to get the timestamp registered
* **explorer\_api:** The url of the explorer api is an optional parameter and is the url of thge api you querying for data (Default is **api.ergoplatform.com**)

#### get\_date\_registered()

**Parameters:** name, explorer\_api

* **name:** the name of the ergoname you are trying to get the date registered
* **explorer\_api:** The url of the explorer api is an optional parameter and is the url of thge api you querying for data (Default is **api.ergoplatform.com**)

#### reverse\_search()

**Parameters:** address, explorer\_api

* **address:** The address you want to get the list of owned tokens for
* **explorer\_api:** The url of the explorer api is an optional parameter and is the url of thge api you querying for data (Default is **api.ergoplatform.com**)

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

**Parameters:** address, explorer\_api

* **address:** The address you want to get the list of owned tokens for
* **explorer\_api:** The url of the explorer api is an optional parameter and is the url of thge api you querying for data (Default is **api.ergoplatform.com**)

### check\_pending\_registration()

**Parameters:** name, explorer\_api

* **name:** the name of the ergoname you are trying to get the pending registration for
* **explorer\_api:** The url of the explorer api is an optional parameter and is the url of thge api you querying for data (Default is **api.ergoplatform.com**)

### available\_for\_registration()

**Parameters:** name, explorer\_api

* **name:** the name of the ergoname you are trying to get the pending registration for
* **explorer\_api:** The url of the explorer api is an optional parameter and is the url of thge api you querying for data (Default is **api.ergoplatform.com**)
