buildV4R2StateInit

open fun buildV4R2StateInit(publicKey: PublicKey, workchain: Int, walletId: Int): String

Constructs a TON Wallet V4R2 stateInit encoded as BoC (BagOfCells) for the given `public_key`.

Return

Pointer to a base64 encoded Bag Of Cells (BoC) StateInit. Null if invalid public key provided.

Parameters

publicKey

wallet's public key.

workchain

TON workchain to which the wallet belongs. Usually, base chain is used (0).

walletId

wallet's ID allows to create multiple wallets for the same private key.