CasperSdk

class CasperSdk(url: String) extends RPCCommand

Casper SDK main class

Value parameters:
url

: RPC endpoint URL

class Object
trait Matchable
class Any

Value members

Concrete methods

def getAccountInfo(publicKey: String, blockIdentifier: BlockIdentifier): Try[AccountResult]

state_get_account_info

state_get_account_info

Returns:

AccountResult

getAuctionInfo

getAuctionInfo

Value parameters:
blockHash

: Block Hash

Returns:

: AuctionStateResult

def getBalance(stateRootHash: String, purse_uref: String): Try[BalanceResult]

getBalance

getBalance

Returns:

:BalanceResult

def getBlock(blockIdentifier: BlockIdentifier): Try[BlockResult]

getBlock

getBlock

Value parameters:
blockIdentifier:

BlockIdentifier

Returns:

: BlockResult

def getBlockTransfers(blockHash: String): Try[TransferResult]

getBlockTransfers

getBlockTransfers

Value parameters:
blockHash

: Block Hash

Returns:

: List of TransferResult within a Block

def getDeploy(deployHash: String): Try[DeployResult]

getDeploy

getDeploy

Value parameters:
deployHash

: deploy Hash

Returns:

: DeployResult

def getDictionaryItem(stateRootHash: String, itemKey: String, uref: String): Try[DictionaryItemResult]

getDictionaryItem

getDictionaryItem

Value parameters:
itemKey

: dictionary Item Key

stateRootHash

: State Root Hash

uref

: seed Uref

Returns:

DictionaryItemResult

def getEraInfoBySwitchBlock(blockHash: String): Try[EraSummaryResult]

getEraInfoBySwitchBlock

getEraInfoBySwitchBlock

Value parameters:
blockHash

: Switch block Hash

Returns:

: EraSummaryResult

def getPeers(): Try[PeerResult]

get peers list

get peers list

Returns:

: List[PeerResult]

getRpcSchema

getRpcSchema

Returns:

: RPCSchemaResult : Json String with RPCSchema infos

def getStateRootHash(blockHash: String): Try[StateRootHashResult]

Retrieves a state root hash at a given block

Retrieves a state root hash at a given block

Returns:

StateRootHashResult

def getStatus(): Try[NodeStatus]

getStatus

getStatus

Returns:

: Node Status

def putDeploy(deploy: Deploy): Try[DeployHashResult]

put deploy

put deploy

Returns:

DeployHashResult

def queryGlobalState(stateIdentifier: StateIdentifier, key: String, path: Seq[Json]): Try[GlobalStateResult]

query_global_state

query_global_state

Returns:

: GlobalStateResult

Inherited methods

def call[T : ClassTag](method: Method, params: Json*)(implicit evidence$1: ClassTag[T], decoder: Decoder[T]): Try[T]

Performs the RPC call

Performs the RPC call

Returns:

Casper Result Type T

Inherited from:
RPCCommand
def callAsync[T : ClassTag](method: Method, params: Seq[Json])(implicit evidence$2: ClassTag[T], decoder: Decoder[T]): Try[T]

non blocking RPC call

non blocking RPC call

Type parameters:
T

: Casper type

Value parameters:
method

: rpc method

params

: parameters

Returns:

Try[T]

Inherited from:
RPCCommand
def result[T : ClassTag](res: Try[RPCResult[T]], method: Method, params: Any*): Try[T]

exctract Try[T] from Option[RPCResult[T]

exctract Try[T] from Option[RPCResult[T]

Returns:

Try[T]

Inherited from:
RPCCommand