Example codes for Catapult Golang SDK
Details are in https://github.com/proximax-storage/nem2-sdk-go/wiki
go get -u https://github.com/proximax-storage/nem2-sdk-go
go get -u https://github.com/proximax-storage/catapult-golang-example
Config in $GOPATH/src/github.com/proximax-storage/catapult-golang-example/catapult_config/catapult_config.go
package catapult_config
const CatapultUrl = "http://privatetest1.proximax.io:3000"
- Generate a new Key Pair
- Create an Address from a given Public Key
- Create an Account from a given Private Key.
cd catapult-golang-example/basic_functions
go run main.go
- Simple Account API request
cd catapult-golang-example/get_accounts_info
go run main.go
- Simple Transaction API request
cd catapult-golang-example/get_transactions_info
go run main.go
- Simple Mosaic API request
- Get information for a set of mosaics.
- Get readable names for a set of mosaics.
- Get an array of MosaicInfo from mosaics created under provided namespace.
cd catapult-golang-example/get_mosaic_info
go run main.go
- Simple Namespace API request
- Get namespaces an account owns.
- Get readable names for a set of namespaces.
- Get an array of NamespaceInfo for a given set of addresses.
cd catapult-golang-example/get_namespace_info
go run main.go
- Get BlockInfo for a given block height.
- Get transactions from a block.
- Get the current height of the chain.
- Get the current score of the chain.
- Get an array of BlockInfo for a given block height and limit.
- Get the storage information.
cd catapult-golang-example/get_blockchain_info
go run main.go
- Simple Network API request
cd catapult-golang-example/get_network_info
go run main.go
- Transfer 0.000001 XPX
cd catapult-golang-example/transfer_transaction
go run main.go
TODO
cd catapult-golang-example/register_namespace_transaction
go run main.go
TODO
cd catapult-golang-example/mosaic_definition_transaction
go run main.go
TODO
cd catapult-golang-example/mosaic_supply_change_transaction
go run main.go
TODO
cd catapult-golang-example/modify_multisig_account_transaction
go run main.go
TODO
cd catapult-golang-example/aggregate_complete_transaction
go run main.go
TODO
cd catapult-golang-example/aggregate_bonded_transactions
go run main.go
TODO
cd catapult-golang-example/signing_announced_aggregate_bonded_transactions
go run main.go
TODO
cd catapult-golang-example/websocket
go run main.go