Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

treasury source realm

Functions 8

func Address

Action
1func Address(bankerID string) string
source

Address returns the address of the banker with the given ID.

func Balances

Action
1func Balances(bankerID string) []t.Balance
source

Balances returns the balances of the banker with the given ID.

func HasBanker

Action
1func HasBanker(bankerID string) bool
source

HasBanker checks if a banker with the given ID is registered.

func History

Action
1func History(bankerID string, pageNumber int, pageSize int) []t.Payment
source

History returns the payment history sent by the banker with the given ID. Payments are paginated, with the most recent payments first.

func Send

crossing Action
1func Send(cur realm, payment t.Payment)
source

Send sends a payment using the treasury instance.

func SetTokenKeys

crossing Action
1func SetTokenKeys(cur realm, keys []string)
source

SetTokenKeys sets the GRC20 token registry keys that the treasury will use.

Imports 5

Source Files 2