Splice.Api.Token.HoldingV2
Types and interfaces for retrieving an investor’s holdings.Interfaces
Interface Holding
Holding interface.
View Type: HoldingView
Choices:
Choice Archive
Controllers: Signatories of implementing template
Returns: ()
Data Types
data Account
A data type to represent an on-chain managed account,
For example a traditional accounting structure, or simply a delegation to
a provider to perform some services.
Constructors:
Account
Optional Party
The party that owns the account, which MUST be set for regular accounts.
None is reserved for special accounts managed by the instrumentadmin. Special accounts are for example used to represent the sourceaccount for mints and the target account for burns.Optional Party
The provider of the account.Account providers MUST have visibility on all asset movementsand holdings. Asset implementations are free to determine howauthorization for asset movements is split between providers andowners. For example, providers MAY have to authorize all movementsrequested by the owner.
Text
Account number or similar.Use the empty string ("") as the default account identifier.
- instance
EqAccount - instance
OrdAccount - instance
ShowAccount - instance
GetFieldaccountHoldingViewAccount - instance
GetFieldidAccountText - instance
GetFieldownerAccount(OptionalParty) - instance
GetFieldproviderAccount(OptionalParty) - instance
SetFieldaccountHoldingViewAccount - instance
SetFieldidAccountText - instance
SetFieldownerAccount(OptionalParty) - instance
SetFieldproviderAccount(OptionalParty)
data HoldingView
View for Holding.
Constructors:
HoldingView
Account
Account in which the holding is held.
InstrumentId
Instrument being held.
Decimal
Size of the holding.
Optional Lock
Lock on the holding.Registries SHOULD allow holdings with expired locks as inputs totransfers to enable a combined unlocking + use choice.
Metadata
Metadata.
- instance
EqHoldingView - instance
ShowHoldingView - instance
HasFromAnyViewHoldingHoldingView - instance
HasInterfaceViewHoldingHoldingView - instance
GetFieldaccountHoldingViewAccount - instance
GetFieldamountHoldingViewDecimal - instance
GetFieldinstrumentIdHoldingViewInstrumentId - instance
GetFieldlockHoldingView(OptionalLock) - instance
GetFieldmetaHoldingViewMetadata - instance
SetFieldaccountHoldingViewAccount - instance
SetFieldamountHoldingViewDecimal - instance
SetFieldinstrumentIdHoldingViewInstrumentId - instance
SetFieldlockHoldingView(OptionalLock) - instance
SetFieldmetaHoldingViewMetadata
data InstrumentId
A globally unique identifier for instruments.
Constructors:
InstrumentId
Party
The party representing the registry app that administers the instrument.
Text
The identifier used for the instrument by the instrument admin.This identifier MUST be unique and unambiguous per instrument admin.
- instance
EqInstrumentId - instance
OrdInstrumentId - instance
ShowInstrumentId - instance
GetFieldadminInstrumentIdParty - instance
GetFieldidInstrumentIdText - instance
GetFieldinstrumentIdHoldingViewInstrumentId - instance
SetFieldadminInstrumentIdParty - instance
SetFieldidInstrumentIdText - instance
SetFieldinstrumentIdHoldingViewInstrumentId
data Lock
Details of a lock.
Constructors:
Lock
[Party]
Unique list of parties which are locking the contract.(Represented as a list, as that has the better JSON encoding.)
Optional Time
Absolute, inclusive deadline as of which the lock expires.
Optional RelTime
Duration after which the created lock expires. Measured relativeto the ledger time that the locked holding contract was created.If both
expiresAt and expiresAfter are set, the lock expires atthe earlier of the two times.Optional Text
Short, human-readable description of the context of the lock.Used by wallets to enable users to understand the reason for the lock.Note that the visibility of the content in this field might be widerthan the visibility of the contracts in the context. You should thuscarefully decide what information is safe to put in the lock context.
- instance
EqLock - instance
OrdLock - instance
ShowLock - instance
GetFieldcontextLock(OptionalText) - instance
GetFieldexpiresAfterLock(OptionalRelTime) - instance
GetFieldexpiresAtLock(OptionalTime) - instance
GetFieldholdersLock[Party] - instance
GetFieldlockHoldingView(OptionalLock) - instance
SetFieldcontextLock(OptionalText) - instance
SetFieldexpiresAfterLock(OptionalRelTime) - instance
SetFieldexpiresAtLock(OptionalTime) - instance
SetFieldholdersLock[Party] - instance
SetFieldlockHoldingView(OptionalLock)