account.setAccountTTL
Set account self-destruction period
func (c *Client) AccountSetAccountTTL(ctx context.Context, ttl AccountDaysTTL) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountSetAccountTTL(ctx, ttl)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
TTL | AccountDaysTTL | yes | Time to live in days |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | TTL_DAYS_INVALID | The provided TTL is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.setAccountTTL#2442485e