Skip to main content

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

NameTypeRequiredDescription
StargiftInputSavedStarGiftClassyesThe collectible gift to export.
PasswordInputCheckPasswordSRPClassyesThe current user's 2FA password, passed as specified here ».

Returns

*PaymentsStarGiftWithdrawalURL

Possible errors

CodeTypeDescription
400PASSWORD_HASH_INVALIDThe provided password hash is invalid.

References