Class ContractQuery
Rpc query to access contract data
Namespace: Netezos.Rpc.Queries
Assembly: Netezos.dll
Syntax
public class ContractQuery : RpcObject
Properties
| Improve this Doc View SourceAllTicketBalances
Gets the query to the complete list of tickets owned by the given contract by scanning the contract's storage.
Declaration
public RpcObject AllTicketBalances { get; }
Property Value
Type | Description |
---|---|
RpcObject |
Balance
Gets the query to the spendable balance of a contract (in mutez), also known as liquid balance. Corresponds to tez owned by the contract that are neither staked, nor in unstaked requests, nor in frozen bonds. Identical to the 'spendable' RPC.
Declaration
public RpcObject Balance { get; }
Property Value
Type | Description |
---|---|
RpcObject |
BalanceAndFrozenBonds
Gets the query to the sum (in mutez) of the spendable balance and frozen bonds of a contract. Corresponds to the contract's full balance from which staked funds and unstake requests have been excluded. Identical to the 'spendable_and_frozen_bonds' RPC.
Declaration
public RpcObject BalanceAndFrozenBonds { get; }
Property Value
Type | Description |
---|---|
RpcObject |
BigMap
Gets the query to the value associated with a key in the big map storage of the contract
Declaration
public BigMapQuery BigMap { get; }
Property Value
Type | Description |
---|---|
BigMapQuery |
Counter
Gets the query to the counter of a contract, if any
Declaration
public RpcObject Counter { get; }
Property Value
Type | Description |
---|---|
RpcObject |
Delegatable
Gets the query to the flag, indicating if the contract delegate can be changed
Declaration
public RpcObject Delegatable { get; }
Property Value
Type | Description |
---|---|
RpcObject |
Delegate
Gets the query to the delegate of a contract, if any
Declaration
public RpcObject Delegate { get; }
Property Value
Type | Description |
---|---|
RpcObject |
Entrypoints
Return the list of entrypoints of the contract
Declaration
public EntrypointsQuery Entrypoints { get; }
Property Value
Type | Description |
---|---|
EntrypointsQuery |
EstimatedOwnPendingSlashedAmount
Gets the query to the estimated own pending slashed amount (in mutez) of a contract.
Declaration
public RpcObject EstimatedOwnPendingSlashedAmount { get; }
Property Value
Type | Description |
---|---|
RpcObject |
FrozenBonds
Gets the query to the frozen bonds of a contract.
Declaration
public RpcObject FrozenBonds { get; }
Property Value
Type | Description |
---|---|
RpcObject |
FullBalance
Gets the query to the full balance (in mutez) of the contract. Includes its spendable balance, staked tez, unstake requests, and frozen bonds. Even if the contract is a delegate, it does not include any staked or delegated tez owned by external delegators.
Declaration
public RpcObject FullBalance { get; }
Property Value
Type | Description |
---|---|
RpcObject |
Manager
Gets the query to the manager of a contract
Declaration
public RpcObject Manager { get; }
Property Value
Type | Description |
---|---|
RpcObject |
ManagerKey
Gets the query to the manager of a contract and his key
Declaration
public RpcObject ManagerKey { get; }
Property Value
Type | Description |
---|---|
RpcObject |
Script
Gets the query to the code and data of the contract
Declaration
public ScriptQuery Script { get; }
Property Value
Type | Description |
---|---|
ScriptQuery |
Spendable
Gets the query to the spendable balance of a contract (in mutez), also known as liquid balance. Corresponds to tez owned by the contract that are neither staked, nor in unstaked requests, nor in frozen bonds. Identical to the 'balance' RPC.
Declaration
public RpcObject Spendable { get; }
Property Value
Type | Description |
---|---|
RpcObject |
SpendableAndFrozenBonds
Gets the query to the sum (in mutez) of the spendable balance and frozen bonds of a contract. Corresponds to the contract's full balance from which staked funds and unstake requests have been excluded. Identical to the 'balance_and_frozen_bonds' RPC.
Declaration
public RpcObject SpendableAndFrozenBonds { get; }
Property Value
Type | Description |
---|---|
RpcObject |
StakedBalance
Gets the query to the staked balance of a contract (in mutez). Returns None if the contract is originated, or neither delegated nor a delegate.
Declaration
public RpcObject StakedBalance { get; }
Property Value
Type | Description |
---|---|
RpcObject |
Storage
Gets the query to the data of the contract's storage
Declaration
public StorageQuery Storage { get; }
Property Value
Type | Description |
---|---|
StorageQuery |
TicketBalance
Gets the contract's balance of ticket with specified ticketer, content type, and content.
Declaration
public TicketBalanceQuery TicketBalance { get; }
Property Value
Type | Description |
---|---|
TicketBalanceQuery |
UnstakedFinalizableBalance
Gets the balance of a contract that was requested for an unstake operation, and is no longer frozen, which means it will appear in the spendable balance of the contract after any stake/unstake/finalize_unstake operation. Returns None if the contract is originated.
Declaration
public RpcObject UnstakedFinalizableBalance { get; }
Property Value
Type | Description |
---|---|
RpcObject |
UnstakedFrozenBalance
Gets the balance of a contract that was requested for an unstake operation, but is still frozen for the duration of the slashing period. Returns None if the contract is originated.
Declaration
public RpcObject UnstakedFrozenBalance { get; }
Property Value
Type | Description |
---|---|
RpcObject |
UnstakeRequests
Gets the unstake requests of the contract. The requests that appear in the finalizable field can be finalized, which means that the contract can transfer these (no longer frozen) funds to their spendable balance with a [finalize_unstake] operation call.
Declaration
public RpcObject UnstakeRequests { get; }
Property Value
Type | Description |
---|---|
RpcObject |