C# 클래스 EthereumRpc.EthereumService

파일 보기 프로젝트 열기: LawrenceBotley/EthereumRpc-NET 1 사용 예제들

공개 메소드들

메소드 설명
Call ( Transaction transaction ) : string
CompileLLL ( ) : string
CompileSerpent ( ) : string
CompileSolidity ( string contract ) : RpcResult
EstimateGas ( Transaction transaction ) : string
EthereumService ( ) : System
EthereumService ( ConnectionOptions connectionOptions ) : System
EthereumService ( string url, string port ) : System
GetAccounts ( ) : string[]

Returns a list of addresses owned by client.

GetBalance ( string address, BlockTag blockTag = BlockTag.Quantity, int blockNumber = -1 ) : System.Numerics.BigInteger

Returns the balance of the account of given address.

GetBlockByHash ( string hash, bool returnFullBlock ) : Block
GetBlockByNumber ( int blockNumber, BlockTag blockTag, bool returnFullObject ) : Block
GetBlockFilterChanges ( string filterId ) : List
GetBlockNumber ( ) : long

Returns the number of most recent block.

GetBlockTransactionCountByHash ( string blockHash ) : long

Returns the number of transactions in a block from a block matching the given block hash.

GetBlockTransactionCountByNumber ( BlockTag blockTag = BlockTag.Quantity, int blockNumber = -1 ) : long

Returns the number of transactions in a block from a block matching the given block number.

GetCode ( string address, BlockTag blockTag = BlockTag.Quantity, int blockNumber = -1 ) : string

Returns code at a given address.

GetCoinbase ( ) : Address

Returns the client coinbase address.

GetCompilers ( ) : string[]
GetFilterChanges ( string filterId ) : Log[]
GetFilterLogs ( string filterId ) : string[]
GetGasPrice ( ) : long

Returns the current price per gas in wei.

GetHashrate ( ) : long

Returns the number of hashes per second that the node is mining with.

GetLogs ( Log log ) : string[]
GetMining ( ) : bool

Returns true if client is actively mining new blocks.

GetNetListening ( ) : bool

Returns true if client is actively listening for network connections.

GetNetPeerCount ( ) : int

Returns number of peers currenly connected to the client.

GetNetVersion ( ) : string

Returns the current network protocol version.

GetProtocolVersion ( ) : string

Returns the current ethereum protocol version.

GetStorageAt ( string address, int storagePosition, BlockTag blockTag = BlockTag.Quantity, int blockNumber = -1 ) : long

Returns the value from a storage position at a given address.

GetSyncing ( ) : SyncStatus

Returns an object object with data about the sync status or FALSE.

GetTransactionByBlockHashAndIndex ( string hash, int index ) : Transaction
GetTransactionByBlockNumberAndIndex ( int blockNumber, int index ) : Transaction
GetTransactionByHash ( string hash ) : Transaction
GetTransactionCount ( string address, BlockTag blockTag = BlockTag.Quantity, int blockNumber = -1 ) : long

Returns the number of transactions sent from an address.

GetTransactionReceipt ( string transactionHash ) : Transaction
GetUncleByBlockHashAndIndex ( string hash, int index ) : Block
GetUncleByBlockNumberAndIndex ( int blockNumber, int index ) : Block
GetUncleCountByBlockHash ( string hashBlock ) : long

Returns the number of uncles in a block from a block matching the given block hash.

GetUncleCountByBlockNumber ( int blockNumber ) : long

Returns the number of uncles in a block from a block matching the given block number.

GetWeb3ClientVersion ( ) : string

Returns the current client version

GetWeb3Sha3 ( string value ) : string

Returns Keccak-256 (not the standardized SHA3-256) of the given data.

GetWork ( ) : Work
NewAccount ( string password ) : string
NewBlockFilter ( ) : string
NewFilter ( Filter filter ) : string

Creates a filter object, based on filter options, to notify when the state changes (logs). To check if the state has changed, call GetFilterChanges.

NewPendingTransactionFilter ( ) : string
SendRawTransaction ( string data ) : string

Creates new message call transaction or a contract creation for signed transactions.

SendTransaction ( Transaction transaction ) : string
SendTransaction ( string from, string to, int gas, string data, int gasPrice = -1, int value = -1, int nonce = -1 ) : string

Creates new message call transaction or a contract creation, if the data field contains code.

ShhPost ( string from, string to, string topics, string payload, string priority, string ttl ) : string
ShhVersion ( ) : string

Returns the current whisper protocol version.

Sign ( string address, string data ) : string

Signs data with a given address.

SubmitHashrate ( string hashRate, string clientId ) : bool

Used for submitting mining hashrate.

SubmitWork ( string nonce, string powHash, string mix ) : bool

Used for submitting a proof-of-work solution.

UninstallFilter ( string filterId ) : bool
UnlockAccount ( string account, string password ) : bool

Unlocks account using password

메소드 상세

Call() 공개 메소드

public Call ( Transaction transaction ) : string
transaction EthereumRpc.RpcObjects.Transaction
리턴 string

CompileLLL() 공개 메소드

public CompileLLL ( ) : string
리턴 string

CompileSerpent() 공개 메소드

public CompileSerpent ( ) : string
리턴 string

CompileSolidity() 공개 메소드

public CompileSolidity ( string contract ) : RpcResult
contract string
리턴 RpcResult

EstimateGas() 공개 메소드

public EstimateGas ( Transaction transaction ) : string
transaction EthereumRpc.RpcObjects.Transaction
리턴 string

EthereumService() 공개 메소드

public EthereumService ( ) : System
리턴 System

EthereumService() 공개 메소드

public EthereumService ( ConnectionOptions connectionOptions ) : System
connectionOptions ConnectionOptions
리턴 System

EthereumService() 공개 메소드

public EthereumService ( string url, string port ) : System
url string
port string
리턴 System

GetAccounts() 공개 메소드

Returns a list of addresses owned by client.
public GetAccounts ( ) : string[]
리턴 string[]

GetBalance() 공개 메소드

Returns the balance of the account of given address.
public GetBalance ( string address, BlockTag blockTag = BlockTag.Quantity, int blockNumber = -1 ) : System.Numerics.BigInteger
address string address to check for balance.
blockTag BlockTag integer block number
blockNumber int Block param
리턴 System.Numerics.BigInteger

GetBlockByHash() 공개 메소드

public GetBlockByHash ( string hash, bool returnFullBlock ) : Block
hash string
returnFullBlock bool
리턴 EthereumRpc.Ethereum.Block

GetBlockByNumber() 공개 메소드

public GetBlockByNumber ( int blockNumber, BlockTag blockTag, bool returnFullObject ) : Block
blockNumber int
blockTag BlockTag
returnFullObject bool
리턴 EthereumRpc.Ethereum.Block

GetBlockFilterChanges() 공개 메소드

public GetBlockFilterChanges ( string filterId ) : List
filterId string
리턴 List

GetBlockNumber() 공개 메소드

Returns the number of most recent block.
public GetBlockNumber ( ) : long
리턴 long

GetBlockTransactionCountByHash() 공개 메소드

Returns the number of transactions in a block from a block matching the given block hash.
public GetBlockTransactionCountByHash ( string blockHash ) : long
blockHash string hash of a block
리턴 long

GetBlockTransactionCountByNumber() 공개 메소드

Returns the number of transactions in a block from a block matching the given block number.
public GetBlockTransactionCountByNumber ( BlockTag blockTag = BlockTag.Quantity, int blockNumber = -1 ) : long
blockTag BlockTag Block Param
blockNumber int integer of a block number,
리턴 long

GetCode() 공개 메소드

Returns code at a given address.
public GetCode ( string address, BlockTag blockTag = BlockTag.Quantity, int blockNumber = -1 ) : string
address string address
blockTag BlockTag
blockNumber int integer block number,
리턴 string

GetCoinbase() 공개 메소드

Returns the client coinbase address.
public GetCoinbase ( ) : Address
리턴 Address

GetCompilers() 공개 메소드

public GetCompilers ( ) : string[]
리턴 string[]

GetFilterChanges() 공개 메소드

public GetFilterChanges ( string filterId ) : Log[]
filterId string
리턴 Log[]

GetFilterLogs() 공개 메소드

public GetFilterLogs ( string filterId ) : string[]
filterId string
리턴 string[]

GetGasPrice() 공개 메소드

Returns the current price per gas in wei.
public GetGasPrice ( ) : long
리턴 long

GetHashrate() 공개 메소드

Returns the number of hashes per second that the node is mining with.
public GetHashrate ( ) : long
리턴 long

GetLogs() 공개 메소드

public GetLogs ( Log log ) : string[]
log Log
리턴 string[]

GetMining() 공개 메소드

Returns true if client is actively mining new blocks.
public GetMining ( ) : bool
리턴 bool

GetNetListening() 공개 메소드

Returns true if client is actively listening for network connections.
public GetNetListening ( ) : bool
리턴 bool

GetNetPeerCount() 공개 메소드

Returns number of peers currenly connected to the client.
public GetNetPeerCount ( ) : int
리턴 int

GetNetVersion() 공개 메소드

Returns the current network protocol version.
public GetNetVersion ( ) : string
리턴 string

GetProtocolVersion() 공개 메소드

Returns the current ethereum protocol version.
public GetProtocolVersion ( ) : string
리턴 string

GetStorageAt() 공개 메소드

Returns the value from a storage position at a given address.
public GetStorageAt ( string address, int storagePosition, BlockTag blockTag = BlockTag.Quantity, int blockNumber = -1 ) : long
address string address of the storage.
storagePosition int integer of the position in the storage.
blockTag BlockTag Block Param
blockNumber int integer block number
리턴 long

GetSyncing() 공개 메소드

Returns an object object with data about the sync status or FALSE.
public GetSyncing ( ) : SyncStatus
리턴 EthereumRpc.RpcObjects.SyncStatus

GetTransactionByBlockHashAndIndex() 공개 메소드

public GetTransactionByBlockHashAndIndex ( string hash, int index ) : Transaction
hash string
index int
리턴 EthereumRpc.RpcObjects.Transaction

GetTransactionByBlockNumberAndIndex() 공개 메소드

public GetTransactionByBlockNumberAndIndex ( int blockNumber, int index ) : Transaction
blockNumber int
index int
리턴 EthereumRpc.RpcObjects.Transaction

GetTransactionByHash() 공개 메소드

public GetTransactionByHash ( string hash ) : Transaction
hash string
리턴 EthereumRpc.RpcObjects.Transaction

GetTransactionCount() 공개 메소드

Returns the number of transactions sent from an address.
public GetTransactionCount ( string address, BlockTag blockTag = BlockTag.Quantity, int blockNumber = -1 ) : long
address string address
blockTag BlockTag Block Param
blockNumber int integer block number,
리턴 long

GetTransactionReceipt() 공개 메소드

public GetTransactionReceipt ( string transactionHash ) : Transaction
transactionHash string
리턴 EthereumRpc.RpcObjects.Transaction

GetUncleByBlockHashAndIndex() 공개 메소드

public GetUncleByBlockHashAndIndex ( string hash, int index ) : Block
hash string
index int
리턴 EthereumRpc.Ethereum.Block

GetUncleByBlockNumberAndIndex() 공개 메소드

public GetUncleByBlockNumberAndIndex ( int blockNumber, int index ) : Block
blockNumber int
index int
리턴 EthereumRpc.Ethereum.Block

GetUncleCountByBlockHash() 공개 메소드

Returns the number of uncles in a block from a block matching the given block hash.
public GetUncleCountByBlockHash ( string hashBlock ) : long
hashBlock string hash of a block
리턴 long

GetUncleCountByBlockNumber() 공개 메소드

Returns the number of uncles in a block from a block matching the given block number.
public GetUncleCountByBlockNumber ( int blockNumber ) : long
blockNumber int integer of a block number
리턴 long

GetWeb3ClientVersion() 공개 메소드

Returns the current client version
public GetWeb3ClientVersion ( ) : string
리턴 string

GetWeb3Sha3() 공개 메소드

Returns Keccak-256 (not the standardized SHA3-256) of the given data.
public GetWeb3Sha3 ( string value ) : string
value string the data to convert into a SHA3 hash
리턴 string

GetWork() 공개 메소드

public GetWork ( ) : Work
리턴 EthereumRpc.Ethereum.Work

NewAccount() 공개 메소드

public NewAccount ( string password ) : string
password string
리턴 string

NewBlockFilter() 공개 메소드

public NewBlockFilter ( ) : string
리턴 string

NewFilter() 공개 메소드

Creates a filter object, based on filter options, to notify when the state changes (logs). To check if the state has changed, call GetFilterChanges.
public NewFilter ( Filter filter ) : string
filter EthereumRpc.Ethereum.Filter
리턴 string

NewPendingTransactionFilter() 공개 메소드

public NewPendingTransactionFilter ( ) : string
리턴 string

SendRawTransaction() 공개 메소드

Creates new message call transaction or a contract creation for signed transactions.
public SendRawTransaction ( string data ) : string
data string The signed transaction data.
리턴 string

SendTransaction() 공개 메소드

public SendTransaction ( Transaction transaction ) : string
transaction EthereumRpc.RpcObjects.Transaction
리턴 string

SendTransaction() 공개 메소드

Creates new message call transaction or a contract creation, if the data field contains code.
public SendTransaction ( string from, string to, int gas, string data, int gasPrice = -1, int value = -1, int nonce = -1 ) : string
from string The address the transaction is send from.
to string (optional when creating new contract) The address the transaction is directed to.
gas int (optional, default: 90000) Integer of the gas provided for the transaction execution. It will return unused gas.
data string (optional) The compiled code of a contract
gasPrice int (optional, default: To-Be-Determined) Integer of the gasPrice used for each paid gas
value int (optional) Integer of the value send with this transaction
nonce int (optional) Integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce.
리턴 string

ShhPost() 공개 메소드

public ShhPost ( string from, string to, string topics, string payload, string priority, string ttl ) : string
from string
to string
topics string
payload string
priority string
ttl string
리턴 string

ShhVersion() 공개 메소드

Returns the current whisper protocol version.
public ShhVersion ( ) : string
리턴 string

Sign() 공개 메소드

Signs data with a given address.
public Sign ( string address, string data ) : string
address string address
data string Data to sign
리턴 string

SubmitHashrate() 공개 메소드

Used for submitting mining hashrate.
public SubmitHashrate ( string hashRate, string clientId ) : bool
hashRate string a hexadecimal string representation (32 bytes) of the hash rate
clientId string A random hexadecimal(32 bytes) ID identifying the client
리턴 bool

SubmitWork() 공개 메소드

Used for submitting a proof-of-work solution.
public SubmitWork ( string nonce, string powHash, string mix ) : bool
nonce string The nonce found(64 bits)
powHash string The header's pow-hash (256 bits)
mix string The mix digest(256 bits)
리턴 bool

UninstallFilter() 공개 메소드

public UninstallFilter ( string filterId ) : bool
filterId string
리턴 bool

UnlockAccount() 공개 메소드

Unlocks account using password
public UnlockAccount ( string account, string password ) : bool
account string The account address
password string The password for the account
리턴 bool