Class RawClient
- Namespace
- Concordium.Sdk.Client
- Assembly
- Concordium.Sdk.dll
The raw gRPC client interface exposing wrappers that abstract away connection handling and parameters present in the InternalClient which was generated from the protocol buffer definition files for the Concordium Node gRPC API V2.
public sealed class RawClient : IDisposable
- Inheritance
-
RawClient
- Implements
- Inherited Members
Properties
InternalClient
The "internal" client instance generated from the Concordium gRPC API V2 protocol buffer definition.
public Queries.QueriesClient InternalClient { get; init; }
Property Value
Options
Options used by the client at initialization. Some parameters, like Credentials, may be set if null when given to constructor. Hence properties in this are not neccessary equal to those given to constructor, but they equals those used for client initialization.
public ConcordiumClientOptions Options { get; init; }
Property Value
Methods
BanPeer(PeerToBan, CancellationToken)
Request the node to ban the specified peer. Throws a gRPC exception if the action failed.
public Empty BanPeer(PeerToBan input, CancellationToken token = default)
Parameters
input
PeerToBantoken
CancellationToken
Returns
BanPeerAsync(PeerToBan, CancellationToken)
Requests the node to ban the specified peer. Throws a gRPC exception if the action failed.
public AsyncUnaryCall<Empty> BanPeerAsync(PeerToBan input, CancellationToken token = default)
Parameters
input
PeerToBantoken
CancellationToken
Returns
Dispose()
Dispose the RawClient.
public void Dispose()
DumpStart(DumpRequest, CancellationToken)
Request the node to start dumping network packets into the specified file.
This feature is enabled if the node was built with the network_dump
feature.
Returns a gRPC error if the network dump failed to start.
public Empty DumpStart(DumpRequest input, CancellationToken token = default)
Parameters
input
DumpRequesttoken
CancellationToken
Returns
DumpStartAsync(DumpRequest, CancellationToken)
Requests the node to start dumping network packets into the specified file.
This feature is enabled if the node was built with the network_dump
feature.
Returns a gRPC error if the network dump failed to start.
public AsyncUnaryCall<Empty> DumpStartAsync(DumpRequest input, CancellationToken token = default)
Parameters
input
DumpRequesttoken
CancellationToken
Returns
DumpStop(CancellationToken)
Request the node to stop dumping packets, if configured to do so. This feature is enabled if the node was built with the @network_dump@ feature. Throws a gRPC error if the network dump could not be stopped.
public Empty DumpStop(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
DumpStopAsync(CancellationToken)
Requests the node to stop dumping packets, if configured to do so.
This feature is enabled if the node was built with the network_dump
feature.
Throws a gRPC error if the network dump could not be stopped.
public AsyncUnaryCall<Empty> DumpStopAsync(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
GetAccountInfo(AccountInfoRequest, CancellationToken)
Get information about an account.
public AccountInfo GetAccountInfo(AccountInfoRequest input, CancellationToken token = default)
Parameters
input
AccountInfoRequesttoken
CancellationToken
Returns
GetAccountInfoAsync(AccountInfoRequest, CancellationToken)
Returns information about an account.
public AsyncUnaryCall<AccountInfo> GetAccountInfoAsync(AccountInfoRequest input, CancellationToken token = default)
Parameters
input
AccountInfoRequesttoken
CancellationToken
Returns
GetAccountList(BlockHashInput, CancellationToken)
Get all accounts that exist at the end of a given block.
public AsyncServerStreamingCall<AccountAddress> GetAccountList(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetAccountNonFinalizedTransactions(AccountAddress, CancellationToken)
Get all hashes of non-finalized transactions for a given account.
public AsyncServerStreamingCall<TransactionHash> GetAccountNonFinalizedTransactions(AccountAddress input, CancellationToken token = default)
Parameters
input
AccountAddresstoken
CancellationToken
Returns
GetAncestors(AncestorsRequest, CancellationToken)
Get ancestors of a given block. The first element of the sequence is the requested block itself, and the block immediately following a block in the sequence is the parent of that block. The sequence contains at most @limit@ blocks, and if the sequence is strictly shorter, the last block in the list is the genesis block.
public AsyncServerStreamingCall<BlockHash> GetAncestors(AncestorsRequest input, CancellationToken token = default)
Parameters
input
AncestorsRequesttoken
CancellationToken
Returns
GetAnonymityRevokers(BlockHashInput, CancellationToken)
Get all anonymity revokers registered at the end of a given block.
public AsyncServerStreamingCall<ArInfo> GetAnonymityRevokers(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetBakerList(BlockHashInput, CancellationToken)
Get IDs of all bakers at the end of a given block.
public AsyncServerStreamingCall<BakerId> GetBakerList(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetBannedPeers(CancellationToken)
Get a list of peers banned by the node.
public BannedPeers GetBannedPeers(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
GetBannedPeersAsync(CancellationToken)
Returns a list of peers banned by the node.
public AsyncUnaryCall<BannedPeers> GetBannedPeersAsync(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
GetBlockChainParameters(BlockHashInput, CancellationToken)
Get values of block chain parameters in a given block.
public ChainParameters GetBlockChainParameters(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetBlockChainParametersAsync(BlockHashInput, CancellationToken)
Returns values of block chain parameters in a given block.
public AsyncUnaryCall<ChainParameters> GetBlockChainParametersAsync(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetBlockFinalizationSummary(BlockHashInput, CancellationToken)
Get a summary of the finalization data in a given block.
public BlockFinalizationSummary GetBlockFinalizationSummary(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetBlockFinalizationSummaryAsync(BlockHashInput, CancellationToken)
Returns a summary of the finalization data in a given block.
public AsyncUnaryCall<BlockFinalizationSummary> GetBlockFinalizationSummaryAsync(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetBlockInfo(BlockHashInput, CancellationToken)
Get information such as height, timings, and transaction counts for a given block.
public BlockInfo GetBlockInfo(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetBlockInfoAsync(BlockHashInput, CancellationToken)
Returns information such as height, timings, and transaction counts for a given block.
public AsyncUnaryCall<BlockInfo> GetBlockInfoAsync(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetBlockItemStatus(TransactionHash, CancellationToken)
Get the status of and information about a specific block item (transaction).
public BlockItemStatus GetBlockItemStatus(TransactionHash input, CancellationToken token = default)
Parameters
input
TransactionHashtoken
CancellationToken
Returns
GetBlockItemStatusAsync(TransactionHash, CancellationToken)
Returns the status of and information about a specific block item (transaction).
public AsyncUnaryCall<BlockItemStatus> GetBlockItemStatusAsync(TransactionHash input, CancellationToken token = default)
Parameters
input
TransactionHashtoken
CancellationToken
Returns
GetBlockItems(BlockHashInput, CancellationToken)
Get the items of a block.
public AsyncServerStreamingCall<BlockItem> GetBlockItems(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetBlockPendingUpdates(BlockHashInput, CancellationToken)
Get all pending updates to chain parameters at the end of a given block.
public AsyncServerStreamingCall<PendingUpdate> GetBlockPendingUpdates(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetBlockSpecialEvents(BlockHashInput, CancellationToken)
Get all special events in a given block. A special event is protocol generated event that is not directly caused by a transaction, such as minting, paying out rewards, etc.
public AsyncServerStreamingCall<BlockSpecialEvent> GetBlockSpecialEvents(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetBlockTransactionEvents(BlockHashInput, CancellationToken)
Get all transaction events in a given block.
public AsyncServerStreamingCall<BlockItemSummary> GetBlockTransactionEvents(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetBlocks(CancellationToken)
Process a stream of blocks that arrive from the time the query is made onward. This can be used to listen for incoming blocks. Note that this is non-terminating, and that blocks may be skipped if the client is unable to keep up with the stream.
public AsyncServerStreamingCall<ArrivedBlockInfo> GetBlocks(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
GetBlocksAtHeight(BlocksAtHeightRequest, CancellationToken)
Get a list of live blocks at a given height.
public BlocksAtHeightResponse GetBlocksAtHeight(BlocksAtHeightRequest input, CancellationToken token = default)
Parameters
input
BlocksAtHeightRequesttoken
CancellationToken
Returns
GetBlocksAtHeightAsync(BlocksAtHeightRequest, CancellationToken)
Returns a list of live blocks at a given height.
public AsyncUnaryCall<BlocksAtHeightResponse> GetBlocksAtHeightAsync(BlocksAtHeightRequest input, CancellationToken token = default)
Parameters
input
BlocksAtHeightRequesttoken
CancellationToken
Returns
GetBranches(CancellationToken)
Get the current branches of blocks starting from and including the last finalized block.
public Branch GetBranches(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
GetBranchesAsync(CancellationToken)
Returns the current branches of blocks starting from and including the last finalized block.
public AsyncUnaryCall<Branch> GetBranchesAsync(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
GetConsensusInfo(CancellationToken)
Get information about the current state of consensus.
public ConsensusInfo GetConsensusInfo(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
GetConsensusInfoAsync(CancellationToken)
Returns information about the current state of consensus.
public AsyncUnaryCall<ConsensusInfo> GetConsensusInfoAsync(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
GetCryptographicParameters(BlockHashInput, CancellationToken)
Get cryptographic parameters in a given block.
public CryptographicParameters GetCryptographicParameters(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetCryptographicParametersAsync(BlockHashInput, CancellationToken)
Returns the cryptographic parameters in a given block.
public AsyncUnaryCall<CryptographicParameters> GetCryptographicParametersAsync(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetElectionInfo(BlockHashInput, CancellationToken)
Get information related to the baker election for a particular block.
public ElectionInfo GetElectionInfo(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetElectionInfoAsync(BlockHashInput, CancellationToken)
Returns information related to the baker election for a particular block.
public AsyncUnaryCall<ElectionInfo> GetElectionInfoAsync(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetFinalizedBlocks(CancellationToken)
Process a stream of blocks that are finalized from the time the query is made onward. This can be used to listen for newly finalized blocks. Note that this is non-terminating, and that blocks may be skipped if the client is unable to keep up with the stream, however blocks are guaranteed to arrive in order of increasing block height.
public AsyncServerStreamingCall<FinalizedBlockInfo> GetFinalizedBlocks(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
GetIdentityProviders(BlockHashInput, CancellationToken)
Get all identity providers registered at the end of a given block.
public AsyncServerStreamingCall<IpInfo> GetIdentityProviders(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetInstanceInfo(InstanceInfoRequest, CancellationToken)
Get information about a smart contract instance as it appears at the end of a given block.
public InstanceInfo GetInstanceInfo(InstanceInfoRequest input, CancellationToken token = default)
Parameters
input
InstanceInfoRequesttoken
CancellationToken
Returns
GetInstanceInfoAsync(InstanceInfoRequest, CancellationToken)
Returns information about a smart contract instance as it appears at the end of a given block.
public AsyncUnaryCall<InstanceInfo> GetInstanceInfoAsync(InstanceInfoRequest input, CancellationToken token = default)
Parameters
input
InstanceInfoRequesttoken
CancellationToken
Returns
GetInstanceList(BlockHashInput, CancellationToken)
Get the addresses of all smart contract instances in a given block.
public AsyncServerStreamingCall<ContractAddress> GetInstanceList(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetInstanceState(InstanceInfoRequest, CancellationToken)
Get key-value pairs representing the entire state of a specific contract instance in a given block. The resulting sequence consists of key-value pairs ordered lexicographically according to the keys.
public AsyncServerStreamingCall<InstanceStateKVPair> GetInstanceState(InstanceInfoRequest input, CancellationToken token = default)
Parameters
input
InstanceInfoRequesttoken
CancellationToken
Returns
GetModuleList(BlockHashInput, CancellationToken)
Get all smart contract modules that exist at the end of a given block.
public AsyncServerStreamingCall<ModuleRef> GetModuleList(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetModuleSource(ModuleSourceRequest, CancellationToken)
Get the source of a smart contract module.
public VersionedModuleSource GetModuleSource(ModuleSourceRequest input, CancellationToken token = default)
Parameters
input
ModuleSourceRequesttoken
CancellationToken
Returns
GetModuleSourceAsync(ModuleSourceRequest, CancellationToken)
Returns the source of a smart contract module.
public AsyncUnaryCall<VersionedModuleSource> GetModuleSourceAsync(ModuleSourceRequest input, CancellationToken token = default)
Parameters
input
ModuleSourceRequesttoken
CancellationToken
Returns
GetNextAccountSequenceNumber(AccountAddress, CancellationToken)
Get the best guess as to what the next account sequence number (nonce) should be for the given account. If all account transactions are finalized then this information is reliable. Otherwise this is the best guess, assuming all other transactions will be committed to blocks and eventually finalized.
public NextAccountSequenceNumber GetNextAccountSequenceNumber(AccountAddress input, CancellationToken token = default)
Parameters
input
AccountAddresstoken
CancellationToken
Returns
GetNextAccountSequenceNumberAsync(AccountAddress, CancellationToken)
Returns the best guess as to what the next account sequence number (nonce) should be for the given account. If all account transactions are finalized then this information is reliable. Otherwise this is the best guess, assuming all other transactions will be committed to blocks and eventually finalized.
public AsyncUnaryCall<NextAccountSequenceNumber> GetNextAccountSequenceNumberAsync(AccountAddress input, CancellationToken token = default)
Parameters
input
AccountAddresstoken
CancellationToken
Returns
GetNextUpdateSequenceNumbers(BlockHashInput, CancellationToken)
Get next available sequence numbers for updating chain parameters after a given block.
public NextUpdateSequenceNumbers GetNextUpdateSequenceNumbers(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetNextUpdateSequenceNumbersAsync(BlockHashInput, CancellationToken)
Returns the next available sequence numbers for updating chain parameters after a given block.
public AsyncUnaryCall<NextUpdateSequenceNumbers> GetNextUpdateSequenceNumbersAsync(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetNodeInfo(CancellationToken)
Get information about the node.
public NodeInfo GetNodeInfo(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
GetNodeInfoAsync(CancellationToken)
Returns information about the node.
public AsyncUnaryCall<NodeInfo> GetNodeInfoAsync(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
GetPassiveDelegationInfo(BlockHashInput, CancellationToken)
Get information about the passive delegators at the end of a given block.
public PassiveDelegationInfo GetPassiveDelegationInfo(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetPassiveDelegationInfoAsync(BlockHashInput, CancellationToken)
Returns information about the passive delegators at the end of a given block.
public AsyncUnaryCall<PassiveDelegationInfo> GetPassiveDelegationInfoAsync(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetPassiveDelegators(BlockHashInput, CancellationToken)
Get all registered passive delegators at the end of a given block.
public AsyncServerStreamingCall<DelegatorInfo> GetPassiveDelegators(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetPassiveDelegatorsRewardPeriod(BlockHashInput, CancellationToken)
Get all fixed passive delegators for the reward period of a given block. In contrast to GetPassiveDelegators(BlockHashInput, CancellationToken) which returns all delegators registered at the end of a given block, this returns all fixed delegators contributing stake in the reward period containing the given block.
public AsyncServerStreamingCall<DelegatorRewardPeriodInfo> GetPassiveDelegatorsRewardPeriod(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetPeersInfo(CancellationToken)
Get a list of the peers that the node is connected to as well as network-related information for each such peer.
public PeersInfo GetPeersInfo(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
GetPeersInfoAsync(CancellationToken)
Returns a list of the peers that the node is connected to as well as network-related information for each such peer.
public AsyncUnaryCall<PeersInfo> GetPeersInfoAsync(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
GetPoolDelegators(GetPoolDelegatorsRequest, CancellationToken)
Get all registered delegators of a given pool at the end of a given block.
public AsyncServerStreamingCall<DelegatorInfo> GetPoolDelegators(GetPoolDelegatorsRequest input, CancellationToken token = default)
Parameters
input
GetPoolDelegatorsRequesttoken
CancellationToken
Returns
GetPoolDelegatorsRewardPeriod(GetPoolDelegatorsRequest, CancellationToken)
Get all fixed delegators of a given pool for the reward period of a given block. In contrast to @getPoolDelegators@ which returns all active delegators registered for the given block, this returns all the active fixed delegators contributing stake in the reward period containing the given block.
public AsyncServerStreamingCall<DelegatorRewardPeriodInfo> GetPoolDelegatorsRewardPeriod(GetPoolDelegatorsRequest input, CancellationToken token = default)
Parameters
input
GetPoolDelegatorsRequesttoken
CancellationToken
Returns
GetPoolInfo(PoolInfoRequest, CancellationToken)
Get information about a given pool at the end of a given block.
public PoolInfoResponse GetPoolInfo(PoolInfoRequest input, CancellationToken token = default)
Parameters
input
PoolInfoRequesttoken
CancellationToken
Returns
GetPoolInfoAsync(PoolInfoRequest, CancellationToken)
Returns information about a given pool at the end of a given block.
public AsyncUnaryCall<PoolInfoResponse> GetPoolInfoAsync(PoolInfoRequest input, CancellationToken token = default)
Parameters
input
PoolInfoRequesttoken
CancellationToken
Returns
GetTokenomicsInfo(BlockHashInput, CancellationToken)
Get information about tokenomics at the end of a given block.
public TokenomicsInfo GetTokenomicsInfo(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
GetTokenomicsInfoAsync(BlockHashInput, CancellationToken)
Returns information about tokenomics at the end of a given block.
public AsyncUnaryCall<TokenomicsInfo> GetTokenomicsInfoAsync(BlockHashInput input, CancellationToken token = default)
Parameters
input
BlockHashInputtoken
CancellationToken
Returns
InstanceStateLookup(InstanceStateLookupRequest, CancellationToken)
Get the value at a specific key of a contract state. In contrast to GetInstanceState(InstanceInfoRequest, CancellationToken) this is more efficient, but requires the user to know the specific key to look up in advance.
public InstanceStateValueAtKey InstanceStateLookup(InstanceStateLookupRequest input, CancellationToken token = default)
Parameters
input
InstanceStateLookupRequesttoken
CancellationToken
Returns
InstanceStateLookupAsync(InstanceStateLookupRequest, CancellationToken)
Returns the value at a specific key of a contract state. In contrast to GetInstanceState(InstanceInfoRequest, CancellationToken) this is more efficient, but requires the user to know the specific key to look up in advance.
public AsyncUnaryCall<InstanceStateValueAtKey> InstanceStateLookupAsync(InstanceStateLookupRequest input, CancellationToken token = default)
Parameters
input
InstanceStateLookupRequesttoken
CancellationToken
Returns
InvokeInstance(InvokeInstanceRequest, CancellationToken)
Instructs the node to run a smart contract entrypoint in the given context and state at the end of a given block.
public InvokeInstanceResponse InvokeInstance(InvokeInstanceRequest input, CancellationToken token = default)
Parameters
input
InvokeInstanceRequesttoken
CancellationToken
Returns
InvokeInstanceAsync(InvokeInstanceRequest, CancellationToken)
Instructs the node to run a smart contract entrypoint in the given context and state at the end of a given block.
public AsyncUnaryCall<InvokeInstanceResponse> InvokeInstanceAsync(InvokeInstanceRequest input, CancellationToken token = default)
Parameters
input
InvokeInstanceRequesttoken
CancellationToken
Returns
PeerConnect(IpSocketAddress, CancellationToken)
Request that the node connect to the peer with the specified details. If the request succeeds, the peer is added to the peer-list of the node. Otherwise a gRPC exception is thrown. Note that the peer may not be connected instantly, in which case the call will still succeed.
public Empty PeerConnect(IpSocketAddress input, CancellationToken token = default)
Parameters
input
IpSocketAddresstoken
CancellationToken
Returns
PeerConnectAsync(IpSocketAddress, CancellationToken)
Requests that the node connect to the peer with the specified details. If the request succeeds, the peer is added to the peer-list of the node. Otherwise a gRPC exception is thrown. Note that the peer may not be connected instantly, in which case the call will still succeed.
public AsyncUnaryCall<Empty> PeerConnectAsync(IpSocketAddress input, CancellationToken token = default)
Parameters
input
IpSocketAddresstoken
CancellationToken
Returns
PeerDisconnect(IpSocketAddress, CancellationToken)
Request the node to disconnect from the peer with the specified details. If the request was succesfully processed, the peer is removed from the peer-list. Otherwise a gRPC exception is returned.
public Empty PeerDisconnect(IpSocketAddress input, CancellationToken token = default)
Parameters
input
IpSocketAddresstoken
CancellationToken
Returns
PeerDisconnectAsync(IpSocketAddress, CancellationToken)
Requests the node to disconnect from the peer with the specified details. If the request was succesfully processed, the peer is removed from the peer-list. Otherwise a gRPC exception is returned.
public AsyncUnaryCall<Empty> PeerDisconnectAsync(IpSocketAddress input, CancellationToken token = default)
Parameters
input
IpSocketAddresstoken
CancellationToken
Returns
SendBlockItem(SendBlockItemRequest, CancellationToken)
Send a block item to the node. A block item is either an account transaction, which is a transaction signed and paid for by an account, a credential deployment, which creates a new account, or an update instruction, which is an instruction to change some parameters of the chain. Update instructions can only be sent by the governance committee.
Returns a hash of the sent block item, which can be used with GetBlockItemStatus(TransactionHash, CancellationToken).
public TransactionHash SendBlockItem(SendBlockItemRequest input, CancellationToken token = default)
Parameters
input
SendBlockItemRequesttoken
CancellationToken
Returns
SendBlockItemAsync(SendBlockItemRequest, CancellationToken)
Send a block item to the node. A block item is either an account transaction, which is a transaction signed and paid for by an account, a credential deployment, which creates a new account, or an update instruction, which is an instruction to change some parameters of the chain. Update instructions can only be sent by the governance committee.
Returns a hash of the sent block item, which can be used with GetBlockItemStatus(TransactionHash, CancellationToken).
public AsyncUnaryCall<TransactionHash> SendBlockItemAsync(SendBlockItemRequest input, CancellationToken token = default)
Parameters
input
SendBlockItemRequesttoken
CancellationToken
Returns
Shutdown(CancellationToken)
Request that the node shut down. Throws an exception if the shutdown failed.
public Empty Shutdown(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
ShutdownAsync(CancellationToken)
Requests that the node shut down. Throws an exception if the shutdown failed.
public AsyncUnaryCall<Empty> ShutdownAsync(CancellationToken token = default)
Parameters
token
CancellationToken
Returns
UnbanPeer(BannedPeer, CancellationToken)
Request the node to unban the specified peer. Throws a gRPC error if the action failed.
public Empty UnbanPeer(BannedPeer input, CancellationToken token = default)
Parameters
input
BannedPeertoken
CancellationToken
Returns
UnbanPeerAsync(BannedPeer, CancellationToken)
Requests the node to unban the specified peer. Throws a gRPC error if the action failed.
public AsyncUnaryCall<Empty> UnbanPeerAsync(BannedPeer input, CancellationToken token = default)
Parameters
input
BannedPeertoken
CancellationToken