Layer 231
constructor
inputWalletImported#66a66a3b flags:# public_key:bytes anchor_public_key:flags.0?bytes proof:WalletOwnershipProof = InputWalletReplacement;

Parameters

Name Type Description
PublicKey bytes Public key of the wallet
AnchorPublicKey flags.0?bytes Public key of the anchor wallet, if any
Proof WalletOwnershipProof Proof of ownership of the wallet, signed over the wallet. get Proof Challenge payload

Gogram Example

// Creating InputWalletImported constructor
obj := &tg.InputWalletImported{
    PublicKey: []byte{0x01, 0x02, 0x03},
    Proof: &tg.WalletOwnershipProofObj{},

    // Optional fields:
    // AnchorPublicKey: []byte{0x01, 0x02, 0x03},
}