# Invite User Helper
Invite User Helper allows to easily create an InviteUser object.
# Provided Operations
Creates an InviteUser from the given
wallet
andrecipientDid
.fun fromWallet( wallet: Wallet, recipientDid: Did ): InviteUser
1
2
3
4
# Usage examples
val info = NetworkInfo(
bech32Hrp = "did:com:",
lcdUrl = "http://localhost:1317"
)
val userMnemonic = listOf(
"will",
"hard",
"topic",
"spray",
"beyond",
"ostrich",
"moral",
"morning",
"gas",
"loyal",
"couch",
"horn",
"boss",
"across",
"age",
"post",
"october",
"blur",
"piece",
"wheel",
"film",
"notable",
"word",
"man"
)
val wallet = Wallet.derive(mnemonic = userMnemonic, networkInfo = info)
val inviteUser = InviteUserHelper.fromWallet(
wallet = wallet,
recipientDid = "did:com:1crltcqwt9r0tpy9v0jnuu7lw6snl5k2wez8cca"
)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38