Interface ICasperClient
Assembly: Casper.Network.SDK.dll
Syntax
public interface ICasperClient
Methods
GetAccountBalance(PublicKey, String)
Declaration
Task<RpcResponse<GetBalanceResult>> GetAccountBalance(PublicKey publicKey, string stateRootHash = null)
Parameters
Type |
Name |
Description |
PublicKey |
publicKey |
|
System.String |
stateRootHash |
|
Returns
GetAccountBalance(URef, String)
Declaration
Task<RpcResponse<GetBalanceResult>> GetAccountBalance(URef purseURef, string stateRootHash = null)
Parameters
Type |
Name |
Description |
URef |
purseURef |
|
System.String |
stateRootHash |
|
Returns
GetAccountBalance(String, String)
Declaration
Task<RpcResponse<GetBalanceResult>> GetAccountBalance(string purseURef, string stateRootHash = null)
Parameters
Type |
Name |
Description |
System.String |
purseURef |
|
System.String |
stateRootHash |
|
Returns
GetAccountInfo(PublicKey, Int32)
Declaration
Task<RpcResponse<GetAccountInfoResult>> GetAccountInfo(PublicKey publicKey, int blockHeight)
Parameters
Type |
Name |
Description |
PublicKey |
publicKey |
|
System.Int32 |
blockHeight |
|
Returns
GetAccountInfo(PublicKey, String)
Declaration
Task<RpcResponse<GetAccountInfoResult>> GetAccountInfo(PublicKey publicKey, string blockHash = null)
Parameters
Type |
Name |
Description |
PublicKey |
publicKey |
|
System.String |
blockHash |
|
Returns
GetAccountInfo(String, Int32)
Declaration
Task<RpcResponse<GetAccountInfoResult>> GetAccountInfo(string publicKey, int blockHeight)
Parameters
Type |
Name |
Description |
System.String |
publicKey |
|
System.Int32 |
blockHeight |
|
Returns
GetAccountInfo(String, String)
Declaration
Task<RpcResponse<GetAccountInfoResult>> GetAccountInfo(string publicKey, string blockHash = null)
Parameters
Type |
Name |
Description |
System.String |
publicKey |
|
System.String |
blockHash |
|
Returns
GetAuctionInfo(Int32)
Declaration
Task<RpcResponse<GetAuctionInfoResult>> GetAuctionInfo(int blockHeight)
Parameters
Type |
Name |
Description |
System.Int32 |
blockHeight |
|
Returns
GetAuctionInfo(String)
Declaration
Task<RpcResponse<GetAuctionInfoResult>> GetAuctionInfo(string blockHash = null)
Parameters
Type |
Name |
Description |
System.String |
blockHash |
|
Returns
GetBlock(Int32)
Declaration
Task<RpcResponse<GetBlockResult>> GetBlock(int blockHeight)
Parameters
Type |
Name |
Description |
System.Int32 |
blockHeight |
|
Returns
GetBlock(String)
Declaration
Task<RpcResponse<GetBlockResult>> GetBlock(string blockHash = null)
Parameters
Type |
Name |
Description |
System.String |
blockHash |
|
Returns
GetBlockTransfers(Int32)
Declaration
Task<RpcResponse<GetBlockTransfersResult>> GetBlockTransfers(int blockHeight)
Parameters
Type |
Name |
Description |
System.Int32 |
blockHeight |
|
Returns
GetBlockTransfers(String)
Declaration
Task<RpcResponse<GetBlockTransfersResult>> GetBlockTransfers(string blockHash = null)
Parameters
Type |
Name |
Description |
System.String |
blockHash |
|
Returns
GetDeploy(String, CancellationToken)
Declaration
Task<RpcResponse<GetDeployResult>> GetDeploy(string deployHash, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.String |
deployHash |
|
CancellationToken |
cancellationToken |
|
Returns
GetDictionaryItem(String, String)
Declaration
Task<RpcResponse<GetDictionaryItemResult>> GetDictionaryItem(string dictionaryItem, string stateRootHash = null)
Parameters
Type |
Name |
Description |
System.String |
dictionaryItem |
|
System.String |
stateRootHash |
|
Returns
GetDictionaryItemByAccount(String, String, String, String)
Declaration
Task<RpcResponse<GetDictionaryItemResult>> GetDictionaryItemByAccount(string accountKey, string dictionaryName, string dictionaryItem, string stateRootHash = null)
Parameters
Type |
Name |
Description |
System.String |
accountKey |
|
System.String |
dictionaryName |
|
System.String |
dictionaryItem |
|
System.String |
stateRootHash |
|
Returns
GetDictionaryItemByContract(String, String, String, String)
Declaration
Task<RpcResponse<GetDictionaryItemResult>> GetDictionaryItemByContract(string contractKey, string dictionaryName, string dictionaryItem, string stateRootHash = null)
Parameters
Type |
Name |
Description |
System.String |
contractKey |
|
System.String |
dictionaryName |
|
System.String |
dictionaryItem |
|
System.String |
stateRootHash |
|
Returns
GetDictionaryItemByURef(String, String, String)
Declaration
Task<RpcResponse<GetDictionaryItemResult>> GetDictionaryItemByURef(string seedURef, string dictionaryItem, string stateRootHash = null)
Parameters
Type |
Name |
Description |
System.String |
seedURef |
|
System.String |
dictionaryItem |
|
System.String |
stateRootHash |
|
Returns
GetEraInfoBySwitchBlock(Int32)
Declaration
Task<RpcResponse<GetEraInfoBySwitchBlockResult>> GetEraInfoBySwitchBlock(int blockHeight)
Parameters
Type |
Name |
Description |
System.Int32 |
blockHeight |
|
Returns
GetEraInfoBySwitchBlock(String)
Declaration
Task<RpcResponse<GetEraInfoBySwitchBlockResult>> GetEraInfoBySwitchBlock(string blockHash = null)
Parameters
Type |
Name |
Description |
System.String |
blockHash |
|
Returns
GetNodePeers()
Declaration
Task<RpcResponse<GetNodePeersResult>> GetNodePeers()
Returns
GetNodeStatus()
Declaration
Task<RpcResponse<GetNodeStatusResult>> GetNodeStatus()
Returns
GetRpcSchema()
Declaration
Task<string> GetRpcSchema()
Returns
Type |
Description |
Task<System.String> |
|
GetStateRootHash(Int32)
Declaration
Task<string> GetStateRootHash(int blockHeight)
Parameters
Type |
Name |
Description |
System.Int32 |
blockHeight |
|
Returns
Type |
Description |
Task<System.String> |
|
GetStateRootHash(String)
Declaration
Task<string> GetStateRootHash(string blockHash = null)
Parameters
Type |
Name |
Description |
System.String |
blockHash |
|
Returns
Type |
Description |
Task<System.String> |
|
GetValidatorChanges()
Declaration
Task<RpcResponse<GetValidatorChangesResult>> GetValidatorChanges()
Returns
PutDeploy(Deploy)
Declaration
Task<RpcResponse<PutDeployResult>> PutDeploy(Deploy deploy)
Parameters
Type |
Name |
Description |
Deploy |
deploy |
|
Returns
QueryGlobalState(GlobalStateKey, String, String)
Declaration
Task<RpcResponse<QueryGlobalStateResult>> QueryGlobalState(GlobalStateKey key, string stateRootHash = null, string path = null)
Parameters
Type |
Name |
Description |
GlobalStateKey |
key |
|
System.String |
stateRootHash |
|
System.String |
path |
|
Returns
QueryGlobalState(String, String, String)
Declaration
Task<RpcResponse<QueryGlobalStateResult>> QueryGlobalState(string key, string stateRootHash = null, string path = null)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.String |
stateRootHash |
|
System.String |
path |
|
Returns
QueryGlobalStateWithBlockHash(GlobalStateKey, String, String)
Declaration
Task<RpcResponse<QueryGlobalStateResult>> QueryGlobalStateWithBlockHash(GlobalStateKey key, string blockHash, string path = null)
Parameters
Type |
Name |
Description |
GlobalStateKey |
key |
|
System.String |
blockHash |
|
System.String |
path |
|
Returns
QueryGlobalStateWithBlockHash(String, String, String)
Declaration
Task<RpcResponse<QueryGlobalStateResult>> QueryGlobalStateWithBlockHash(string key, string blockHash, string path = null)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.String |
blockHash |
|
System.String |
path |
|
Returns