Layer 231
InputWalletImported
Import an existing TON wallet by its public key.
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 |
Returns
InputWalletReplacementGogram Example
// Creating InputWalletImported constructor obj := &tg.InputWalletImported{ PublicKey: []byte{0x01, 0x02, 0x03}, Proof: &tg.WalletOwnershipProofObj{}, // Optional fields: // AnchorPublicKey: []byte{0x01, 0x02, 0x03}, }