payments.getStarGiftWithdrawalUrl
Convert a collectible gift » to an NFT on the TON blockchain.
func (c *Client) PaymentsGetStarGiftWithdrawalURL(ctx context.Context, request *PaymentsGetStarGiftWithdrawalURLRequest) (*PaymentsStarGiftWithdrawalURL, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsGetStarGiftWithdrawalURL(ctx, &tg.PaymentsGetStarGiftWithdrawalURLRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PaymentsStarGiftWithdrawalURL
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Stargift | InputSavedStarGiftClass | yes | The collectible gift to export. |
Password | InputCheckPasswordSRPClass | yes | The current user's 2FA password, passed as specified here ». |
Returns
*PaymentsStarGiftWithdrawalURL
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PASSWORD_HASH_INVALID | The provided password hash is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.getStarGiftWithdrawalUrl#d06e93a8