CasperSdk

class CasperSdk(url: String)(implicit id: IdInstance) extends RPCCommand

Casper SDK main class

Value Params
id

: IdInstance

url

: RPC endpoint URL

class Object
trait Matchable
class Any

Value members

Concrete methods

def getAuctionInfo(blockHash: String): AuctionState

getAuctionInfo

getAuctionInfo

Value Params
blockHash

: Block Hash

Returns

: Auction infos

def getBalance(stateRootHash: String, uref: URef): Long

getBalance

getBalance

Returns

: Balance of a URef account

def getBlock(blockHash: String): Block

getBlock

getBlock

Value Params
blockHash

: Block hash

Returns

: Block

def getBlockByHeight(blockHeight: BigInt): Block

getBlock

getBlock

Value Params
blockHeignt

: Block height

Returns

: Block

def getBlockTransfers(blockHash: String): Seq[Transfer]

getBlockTransfers

getBlockTransfers

Value Params
blockHash

: Block Hash

Returns

: List of Transferts within a Block

def getDeploy(deployHash: String): Deploy

getDeploy

getDeploy

Value Params
deployHash

: deploy Hash

Returns

: Deploy

def getDictionaryItem(stateRootHash: String, itemKey: String, uref: String): StoredValue

getDictionaryItem

getDictionaryItem

Value Params
itemKey

: dictionary Item Key

stateRootHash

: State Root Hash

uref

: seed Uref

Returns

StoredValue

def getEraInfoBySwitchBlock(blockHash: String): EraSummary

getEraInfoBySwitchBlock

getEraInfoBySwitchBlock

Value Params
blockHash

: Switch block Hash

Returns

: EraSummary for the Switch block

def getPeers: Seq[Peer]

get peers list

get peers list

Returns

: List[Peer]

def getRpcSchema: String

getRpcSchema

getRpcSchema

Returns

: Json String with RPCSchema infos

def getStateItem(stateRootHash: String, key: String, path: Seq[Any]): StoredValue

getStateItem

getStateItem

Returns

StoredValue (CLValue, Account or Contract)

def getStateRootHash(blockHash: String): String

Retrieves a state root hash at a given block

Retrieves a state root hash at a given block

Returns

state_root_hash_String

getStatus

getStatus

Returns

: Node Status

def putDeploy(deploy: Deploy): Hash

put deploy

put deploy

Returns

Hash

Inherited methods

def call[T](method: Method, params: Any*)(implicit evidence$1: ClassTag[T]): T

Performs the RPC call

Performs the RPC call

Returns

Casper Result Type T

Inherited from
RPCCommand