Description
Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts
TheWalletScriptingInterface
API provides functions related to the user's wallet and verification of certified
avatar entities.Properties
Name | Type | Summary |
---|---|---|
walletStatus | WalletScriptingInterface.WalletStatus |
The status of the user's wallet. Read-only. |
limitedCommerce | boolean |
|
Methods
Name | Return Value | Summary |
---|---|---|
getWalletStatus
|
WalletScriptingInterface.WalletStatus |
Gets the current status of the user's wallet. |
proveAvatarEntityOwnershipVerification
|
None |
Check that a certified avatar entity is owned by the avatar whose entity it is. The result of the check is provided via the ownershipVerificationSuccess and ownershipVerificationFailed signals. Warning: Neither of these signals are triggered if the entity is not an avatar entity or is not certified. |
refreshWalletStatus
|
None |
Checks and updates the user's wallet status. |
Signals
Name | Summary |
---|---|
limitedCommerceChanged
|
Triggered when the user's limited commerce status changes. |
ownershipVerificationFailed
|
Triggered when a certified avatar entity's ownership check requested via proveAvatarEntityOwnershipVerification or ContextOverlay.requestOwnershipVerification fails. |
ownershipVerificationSuccess
|
Triggered when a certified avatar entity's ownership check requested via proveAvatarEntityOwnershipVerification or ContextOverlay.requestOwnershipVerification succeeds. |
walletNotSetup
|
Triggered when the user rezzes a certified entity but the user's wallet is not ready. So the certified location of the entity cannot be updated in the metaverse. |
walletStatusChanged
|
Triggered when the user's wallet status changes. |
Type Definitions
WalletStatus Type: number |
|||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A
Wallets used to be stored locally but now they're only stored on the server. A wallet is present in both places if your computer previously stored its information locally. |
Method Details
(static) getWalletStatus( ) → {WalletScriptingInterface.WalletStatus}
Returns: WalletScriptingInterface.WalletStatus |
---|
Gets the current status of the user's wallet. Example
|
(static) proveAvatarEntityOwnershipVerification( entityID ) | ||||||
---|---|---|---|---|---|---|
Check that a certified avatar entity is owned by the avatar whose entity it is. The result of the check is provided via the ownershipVerificationSuccess and ownershipVerificationFailed signals. Warning: Neither of these signals are triggered if the entity is not an avatar entity or is not certified. Parameters
Example
|
(static) refreshWalletStatus( ) |
---|
Checks and updates the user's wallet status. |
Signal Details
limitedCommerceChanged(
)
Returns: Signal |
---|
Triggered when the user's limited commerce status changes. |
ownershipVerificationFailed(
entityID
)
Returns: Signal |
||||||
---|---|---|---|---|---|---|
Triggered when a certified avatar entity's ownership check requested via proveAvatarEntityOwnershipVerification or ContextOverlay.requestOwnershipVerification fails. Parameters
|
ownershipVerificationSuccess(
entityID
)
Returns: Signal |
||||||
---|---|---|---|---|---|---|
Triggered when a certified avatar entity's ownership check requested via proveAvatarEntityOwnershipVerification or ContextOverlay.requestOwnershipVerification succeeds. Parameters
|
walletNotSetup(
)
Returns: Signal |
---|
Triggered when the user rezzes a certified entity but the user's wallet is not ready. So the certified location of the entity cannot be updated in the metaverse. |
walletStatusChanged(
)
Returns: Signal |
---|
Triggered when the user's wallet status changes. Example
|