Class ContractQuery
Rpc query to access contract data
Namespace: Netmavryk.Rpc.Queries
Assembly: Netmavryk.dll
Syntax
public class ContractQuery : RpcObject
Properties
| Improve this Doc View SourceAllTicketBalances
Gets the query to the 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 balance of a contract
Declaration
public RpcObject Balance { get; }
Property Value
| Type | Description |
|---|---|
| RpcObject |
BalanceAndFrozenBonds
Gets the query to the sum of the spendable balance and frozen bonds of a contract.
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 |
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 of a contract, including frozen bonds and stake.
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 flag, indicating if the contract tokens can be spent by the manager
Declaration
public RpcObject Spendable { get; }
Property Value
| Type | Description |
|---|---|
| RpcObject |
StakedBalance
Gets the query to the staked balance of a contract. 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 |