Get a singleton object by its Move type.
Useful for global/singleton objects where there's only one instance of a particular type on-chain.
The full Move type string
Promise resolving to the singleton object address
const result = await getSingletonObjectByType("0xpkg::config::GlobalConfig");const address = result.data?.objects?.nodes[0]?.address; Copy
const result = await getSingletonObjectByType("0xpkg::config::GlobalConfig");const address = result.data?.objects?.nodes[0]?.address;
Get a singleton object by its Move type.
Useful for global/singleton objects where there's only one instance of a particular type on-chain.