UpdateOss

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

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

For example code, please refer to run.go

Last updated