> For the complete documentation index, see [llms.txt](https://doc.cess.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.cess.network/developer/cess-sdk/sdk-golang/chain_related/deoss/updateoss.md).

# UpdateOss

This is the interface for the gateway to update its own information.

```golang
// UpdateOss update oss's peerId or domain
//   - domain: domain name
//
// Return:
//   - string: block hash
//   - error: error message
func (c *ChainClient) UpdateOss(domain string) (string, error)
```

For example code, please refer to [run.go](https://github.com/CESSProject/DeOSS/blob/main/cmd/cmd/run.go)
