casper-ecosystem / casper-golang-sdk Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Currently the following types cannot be converted to RunTimeArgs correctly.
types.CLTypeResult
types.CLTypeList
types.CLTypeMap
types.CLTypeTuple1
types.CLTypeTuple2,
types.CLTypeTuple3
types.CLTypeAny
Are they working for RunTimeArgs? If so please provide examples.
Hello
I'm working on this Hackathon.
To be able to run the tests I need an testnet RPC endpoint. Could you provide a link?
Thank you
Hello!
trying to create a wallet for Casper using the casper-go-sdk
a bunch of methods receive stateRootHash as a parameter.
Where to get this stateRootHash?
I have taken a look at your tests, but there this value is hardcoded.
Thanks!
client := sdk.NewRpcClient("xxxxx")
ressult, err := client.GetBlockTransfersByHeight(10000)
for _, r := range res {
fmt.Println(r.DeployHash)
fmt.Println(r.From)
fmt.Println(r.To)
fmt.Println(r.Amount)
}
From and To The format is account-hash-xxx
So, How to get Public Key from account hash?
Because exchanges use public key as the deposit address.
thanks
I try to load a key pair and it fails. Does not work at all.
keyPair, err := ed25519.ParseKeyFiles("./pubkey.pem", "./privkey.pem")
if err != nil {
return Asset{}, err
}
I get illegal base64 data at input byte 64
...
@Volendi @n-shaburoff Hi guys. My name is Mark Greenslade and I am representing the Casper Association and we would like to reach out to you in respect of work on the Casper GO SDK. Would you be available for a call in order to discuss the current state of development, the future steps, and also the contractual situation ?
RPC method chain_get_state_root_hash should get a block identifier as param (hash or height). Now, it has state_root_hash
.
casper-golang-sdk/sdk/rpc_client.go
Line 256 in 718690b
amountBytes, err := serialization.Marshal(serialization.U512{Int: *amount})
if err != nil {
return nil
}
var accountHex string
if target.Tag == keypair.KeyTagEd25519 {
accountHex = ed25519.AccountHash(target.PubKeyData)
} else {
// FIXME: implement secp256k1 module
return nil
}
idValue := Value{
Tag: types.CLTypeOption,
IsOptional: true,
Optional: &Value{
Tag: types.CLTypeU64,
},
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.