StakedIota
Represents a 0x3::staking_pool::StakedIota
Move object on-chain.
type StakedIota implements IMoveObject, IObject, IOwner {
address: IotaAddress!
objects(
first: Int
after: String
last: Int
before: String
filter: ObjectFilter
): MoveObjectConnection!
balance(
type: String
): Balance
balances(
first: Int
after: String
last: Int
before: String
): BalanceConnection!
coins(
first: Int
after: String
last: Int
before: String
type: String
): CoinConnection!
stakedIotas(
first: Int
after: String
last: Int
before: String
): StakedIotaConnection!
version: UInt53!
status: ObjectKind!
digest: String
owner: ObjectOwner
previousTransactionBlock: TransactionBlock
storageRebate: BigInt
receivedTransactionBlocks(
first: Int
after: String
last: Int
before: String
filter: TransactionBlockFilter
scanLimit: Int
): TransactionBlockConnection!
bcs: Base64
contents: MoveValue
display: [DisplayEntry!]
dynamicField(
name: DynamicFieldName!
): DynamicField
dynamicObjectField(
name: DynamicFieldName!
): DynamicField
dynamicFields(
first: Int
after: String
last: Int
before: String
): DynamicFieldConnection!
stakeStatus: StakeStatus!
activatedEpoch: Epoch
requestedEpoch: Epoch
poolId: IotaAddress
principal: BigInt
estimatedReward: BigInt
}
Fields
StakedIota.address
● IotaAddress!
non-null scalar
StakedIota.objects
● MoveObjectConnection!
non-null object
Objects owned by this object, optionally filter
-ed.
StakedIota.objects.first
● Int
scalar
StakedIota.objects.after
● String
scalar
StakedIota.objects.last
● Int
scalar
StakedIota.objects.before
● String
scalar
StakedIota.objects.filter
● ObjectFilter
input
StakedIota.balance
● Balance
object
Total balance of all coins with marker type owned by this object. If
type is not supplied, it defaults to 0x2::iota::IOTA
.
StakedIota.balance.type
● String
scalar
StakedIota.balances
● BalanceConnection!
non-null object
The balances of all coin types owned by this object.
StakedIota.balances.first
● Int
scalar
StakedIota.balances.after
● String
scalar
StakedIota.balances.last
● Int
scalar
StakedIota.balances.before
● String
scalar
StakedIota.coins
● CoinConnection!
non-null object
The coin objects for this object.
type
is a filter on the coin's type parameter, defaulting to
0x2::iota::IOTA
.
StakedIota.coins.first
● Int
scalar
StakedIota.coins.after
● String
scalar
StakedIota.coins.last
● Int
scalar
StakedIota.coins.before
● String
scalar
StakedIota.coins.type
● String
scalar
StakedIota.stakedIotas
● StakedIotaConnection!
non-null object
The 0x3::staking_pool::StakedIota
objects owned by this object.
StakedIota.stakedIotas.first
● Int
scalar
StakedIota.stakedIotas.after
● String
scalar
StakedIota.stakedIotas.last
● Int
scalar
StakedIota.stakedIotas.before
● String
scalar
StakedIota.version
● UInt53!
non-null scalar
StakedIota.status
● ObjectKind!
non-null enum
The current status of the object as read from the off-chain store. The possible states are: NOT_INDEXED, the object is loaded from serialized data, such as the contents of a genesis or system package upgrade transaction. LIVE, the version returned is the most recent for the object, and it is not deleted or wrapped at that version. HISTORICAL, the object was referenced at a specific version or checkpoint, so is fetched from historical tables and may not be the latest version of the object. WRAPPED_OR_DELETED, the object is deleted or wrapped and only partial information can be loaded."
StakedIota.digest
● String
scalar
32-byte hash that identifies the object's contents, encoded as a Base58 string.
StakedIota.owner
● ObjectOwner
union
The owner type of this object: Immutable, Shared, Parent, Address
StakedIota.previousTransactionBlock
● TransactionBlock
object
The transaction block that created this version of the object.
StakedIota.storageRebate
● BigInt
scalar
The amount of IOTA we would rebate if this object gets deleted or mutated. This number is recalculated based on the present storage gas price.
StakedIota.receivedTransactionBlocks
● TransactionBlockConnection!
non-null object
The transaction blocks that sent objects to this object.
scanLimit
restricts the number of candidate transactions scanned when
gathering a page of results. It is required for queries that apply
more than two complex filters (on function, kind, sender, recipient,
input object, changed object, or ids), and can be at most
serviceConfig.maxScanLimit
.
When the scan limit is reached the page will be returned even if it has
fewer than first
results when paginating forward (last
when
paginating backwards). If there are more transactions to scan,
pageInfo.hasNextPage
(or pageInfo.hasPreviousPage
) will be set to
true
, and PageInfo.endCursor
(or PageInfo.startCursor
) will be set
to the last transaction that was scanned as opposed to the last (or
first) transaction in the page.
Requesting the next (or previous) page after this cursor will resume the
search, scanning the next scanLimit
many transactions in the
direction of pagination, and so on until all transactions in the
scanning range have been visited.
By default, the scanning range includes all transactions known to
GraphQL, but it can be restricted by the after
and before
cursors, and the beforeCheckpoint
, afterCheckpoint
and
atCheckpoint
filters.
StakedIota.receivedTransactionBlocks.first
● Int
scalar
StakedIota.receivedTransactionBlocks.after
● String
scalar
StakedIota.receivedTransactionBlocks.last
● Int
scalar
StakedIota.receivedTransactionBlocks.before
● String
scalar
StakedIota.receivedTransactionBlocks.filter
● TransactionBlockFilter
input
StakedIota.receivedTransactionBlocks.scanLimit
● Int
scalar
StakedIota.bcs
● Base64
scalar
The Base64-encoded BCS serialization of the object's content.
StakedIota.contents
● MoveValue
object
Displays the contents of the Move object in a JSON string and through GraphQL types. Also provides the flat representation of the type signature, and the BCS of the corresponding data.
StakedIota.display
● [DisplayEntry!]
list object
The set of named templates defined on-chain for the type of this object, to be handled off-chain. The server substitutes data from the object into these templates to generate a display string per template.
StakedIota.dynamicField
● DynamicField
object
Access a dynamic field on an object using its name. Names are arbitrary
Move values whose type have copy
, drop
, and store
, and are
specified using their type, and their BCS contents, Base64 encoded.
Dynamic fields on wrapped objects can be accessed by using the same API under the Owner type.
StakedIota.dynamicField.name
● DynamicFieldName!
non-null input
StakedIota.dynamicObjectField
● DynamicField
object
Access a dynamic object field on an object using its name. Names are
arbitrary Move values whose type have copy
, drop
, and store
,
and are specified using their type, and their BCS contents, Base64
encoded. The value of a dynamic object field can also be accessed
off-chain directly via its address (e.g. using Query.object
).
Dynamic fields on wrapped objects can be accessed by using the same API under the Owner type.
StakedIota.dynamicObjectField.name
● DynamicFieldName!
non-null input
StakedIota.dynamicFields
● DynamicFieldConnection!
non-null object
The dynamic fields and dynamic object fields on an object.
Dynamic fields on wrapped objects can be accessed by using the same API under the Owner type.
StakedIota.dynamicFields.first
● Int
scalar
StakedIota.dynamicFields.after
● String
scalar
StakedIota.dynamicFields.last
● Int
scalar
StakedIota.dynamicFields.before
● String
scalar
StakedIota.stakeStatus
● StakeStatus!
non-null enum
A stake can be pending, active, or unstaked
StakedIota.activatedEpoch
● Epoch
object
The epoch at which this stake became active.
StakedIota.requestedEpoch
● Epoch
object
The epoch at which this object was requested to join a stake pool.
StakedIota.poolId
● IotaAddress
scalar
The object id of the validator staking pool this stake belongs to.
StakedIota.principal
● BigInt
scalar
The IOTA that was initially staked.
StakedIota.estimatedReward
● BigInt
scalar
The estimated reward for this stake object, calculated as:
principal * (initial_stake_rate / current_stake_rate - 1.0)
Or 0, if this value is negative, where:
initial_stake_rate
is the stake rate at the epoch this stake was activated at.current_stake_rate
is the stake rate in the current epoch.
This value is only available if the stake is active.
Interfaces
IMoveObject
interface
This interface is implemented by types that represent a Move object on-chain
(A Move value whose type has key
).
IObject
interface
Interface implemented by on-chain values that are addressable by an ID (also referred to as its address). This includes Move objects and packages.
IOwner
interface
Interface implemented by GraphQL types representing entities that can own objects. Object owners are identified by an address which can represent either the public key of an account or another object. The same address can only refer to an account or an object, never both, but it is not possible to know which up-front.
Member Of
MoveObject
object ● StakedIotaConnection
object ● StakedIotaEdge
object