MCPcopy Create free account
hub / github.com/Bitrue-exchange/libada-go / ExampleDecodeAddress

Function ExampleDecodeAddress

address_example_test.go:5–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import "fmt"
4
5func ExampleDecodeAddress() {
6 RawAddressList := []string{
7 "addr1v9wa6entm75duchtu50mu6u6hkagdgqzaevt0cwryaw3pnca870vt",
8 "Ae2tdPwUPEZCdHLQP8Nke2AogJ7VgGiHbJDV3N1mWyQxy5AhwGgihL44t8w",
9 "addr1q87ywcqelrrm9zrn4f9v5te2ss2w6f0j4ca39pwhsgxnupuec8u08zuyfu64xecytwcuc8nm6xkn0xj2sqx7m7g07fqqf96uvu",
10 "DdzFFzCqrht7FAf8MpryP1p8sgkmFRUnDpifnnu4ZxpBjbCTSDwJVAaDsDqrC7SLYFx8fUrDcNNsD4AMiUgg2wGywTVpcfB1F3AHrGkv",
11 }
12
13 for _, address := range RawAddressList {
14 got := MustDecodeAddress(address).String()
15 fmt.Println(got == address)
16 }
17
18 // Output:
19 // true
20 // true
21 // true
22 // true
23}

Callers

nothing calls this directly

Calls 2

MustDecodeAddressFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected