balances

command
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

README

transfer_keep_alive example

by default sender is Alice and receiver is Bob


Receiver

To change the receiver you need to change args, as shown in code below:

	args := []any{map[string]interface{}{"Id": "PUT_RECEIVER_ID_HERE"}, 12345} 

Sender

Sender could be changed by setting keyring values in application config. These values could be changed manually, by editting config/init.go file.

only two categories are available to be set: Sr25519 and Ed25519 example is below:

    // 
    // 
	viper.SetDefault("keyring.category", "Ed25519") 

	viper.SetDefault("keyring.seed", "0xe5be9a5092b81bca64be81d212e7f2f9eba183bb7a90954f7b76361f6edb5c0a") // Alice seed 

Another way to change these values is setting them by env var as shown below:

export KEYRING_CATEGORY="Ed25519"
export KEYRING_SEED="0xe5be9a5092b81bca64be81d212e7f2f9eba183bb7a90954f7b76361f6edb5c0a"

To check account status see example/storage/get_account_value

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL