Search
K
Comment on page

Register UA

Before sending messages on LayerZero you need to register your UA.
public fun register_ua<UA>(account: &signer): UaCapability<UA>
The UA type is an identifier of your application. You can use any type as UA, e.g. 0x1::MyApp::MyApp as a UA.
Only one UA is allowed per address. That means there won't be a case where twoUA types share the same address.
When calling register_ua(), you will get a UaCapability<UA> returned. It is the resource for authenticating any LayerZero functions, such as sending messages and setting configurations.