You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having issues with custom namespaces. When a user create account with a custom namespace, the GraphQL API returns the username as null. This is not the case when i omit the namespace argument, which defaults to the lens/ namespace.
Are namespaces blocked for the testnet?
here is my code for creating namespaces
constmetadata=username({description: 'Username Namespace for SproutsVille',collection: {name: 'SproutsVille Usernames',description: 'The official sproutsville/ usernames',},});constsessionClient=awaitgetSessionClient('builder');// Get a session client with Builder Authenticationconsturi=awaituploadObject(metadata);// Upload Metadataconstres=awaitcreateUsernameNamespace(sessionClient,{symbol: 'SPROUTS',namespace: 'sproutsville',metadataUri: uri,admins: [address],});
and this for creating accounts
constsessionClient=awaitgetSessionClient('onboardingUser');constmetadata=account({
name,});const{ uri }=awaituploadObject(metadata);constres=awaitcreateAccountWithUsername(sessionClient,{accountManager: [evmAddress(address)],username: {namespace: evmAddress(Constants.SPROUTSVILLE_NAMESPACE_ADDRESS),
localName,},metadataUri: uri,});
I am having issues with custom namespaces. When a user create account with a custom namespace, the GraphQL API returns the username as
null
. This is not the case when i omit the namespace argument, which defaults to thelens/
namespace.Are namespaces blocked for the testnet?
here is my code for creating namespaces
and this for creating accounts
here are some already deployed namespaces
The text was updated successfully, but these errors were encountered: