Skip to content

Latest commit

 

History

History
229 lines (122 loc) · 8.07 KB

CreateStakeActivityExtra.md

File metadata and controls

229 lines (122 loc) · 8.07 KB

CreateStakeActivityExtra

Properties

Name Type Description Notes
PoolType StakingPoolType
FinalityProviderPublicKey string The public key of the finality provider.
StakeBlockTime int64 The number of blocks that need to be processed before the locked tokens are unlocked and become accessible.
AutoBroadcast Pointer to bool Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call Broadcast signed transactions to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling Get transaction information and broadcast it yourself. [optional]
ProviderName string The name of the provider.
Timelock int32 The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal.
ChangeAddress Pointer to string The change address on the Bitcoin chain. If not provided, the source wallet's address will be used as the change address. [optional]
ValidatorAddress string The validator's EVM address.
RewardAddress string The EVM address to receive staking rewards.

Methods

NewCreateStakeActivityExtra

func NewCreateStakeActivityExtra(poolType StakingPoolType, finalityProviderPublicKey string, stakeBlockTime int64, providerName string, timelock int32, validatorAddress string, rewardAddress string, ) *CreateStakeActivityExtra

NewCreateStakeActivityExtra instantiates a new CreateStakeActivityExtra object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewCreateStakeActivityExtraWithDefaults

func NewCreateStakeActivityExtraWithDefaults() *CreateStakeActivityExtra

NewCreateStakeActivityExtraWithDefaults instantiates a new CreateStakeActivityExtra object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetPoolType

func (o *CreateStakeActivityExtra) GetPoolType() StakingPoolType

GetPoolType returns the PoolType field if non-nil, zero value otherwise.

GetPoolTypeOk

func (o *CreateStakeActivityExtra) GetPoolTypeOk() (*StakingPoolType, bool)

GetPoolTypeOk returns a tuple with the PoolType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPoolType

func (o *CreateStakeActivityExtra) SetPoolType(v StakingPoolType)

SetPoolType sets PoolType field to given value.

GetFinalityProviderPublicKey

func (o *CreateStakeActivityExtra) GetFinalityProviderPublicKey() string

GetFinalityProviderPublicKey returns the FinalityProviderPublicKey field if non-nil, zero value otherwise.

GetFinalityProviderPublicKeyOk

func (o *CreateStakeActivityExtra) GetFinalityProviderPublicKeyOk() (*string, bool)

GetFinalityProviderPublicKeyOk returns a tuple with the FinalityProviderPublicKey field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFinalityProviderPublicKey

func (o *CreateStakeActivityExtra) SetFinalityProviderPublicKey(v string)

SetFinalityProviderPublicKey sets FinalityProviderPublicKey field to given value.

GetStakeBlockTime

func (o *CreateStakeActivityExtra) GetStakeBlockTime() int64

GetStakeBlockTime returns the StakeBlockTime field if non-nil, zero value otherwise.

GetStakeBlockTimeOk

func (o *CreateStakeActivityExtra) GetStakeBlockTimeOk() (*int64, bool)

GetStakeBlockTimeOk returns a tuple with the StakeBlockTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetStakeBlockTime

func (o *CreateStakeActivityExtra) SetStakeBlockTime(v int64)

SetStakeBlockTime sets StakeBlockTime field to given value.

GetAutoBroadcast

func (o *CreateStakeActivityExtra) GetAutoBroadcast() bool

GetAutoBroadcast returns the AutoBroadcast field if non-nil, zero value otherwise.

GetAutoBroadcastOk

func (o *CreateStakeActivityExtra) GetAutoBroadcastOk() (*bool, bool)

GetAutoBroadcastOk returns a tuple with the AutoBroadcast field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAutoBroadcast

func (o *CreateStakeActivityExtra) SetAutoBroadcast(v bool)

SetAutoBroadcast sets AutoBroadcast field to given value.

HasAutoBroadcast

func (o *CreateStakeActivityExtra) HasAutoBroadcast() bool

HasAutoBroadcast returns a boolean if a field has been set.

GetProviderName

func (o *CreateStakeActivityExtra) GetProviderName() string

GetProviderName returns the ProviderName field if non-nil, zero value otherwise.

GetProviderNameOk

func (o *CreateStakeActivityExtra) GetProviderNameOk() (*string, bool)

GetProviderNameOk returns a tuple with the ProviderName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProviderName

func (o *CreateStakeActivityExtra) SetProviderName(v string)

SetProviderName sets ProviderName field to given value.

GetTimelock

func (o *CreateStakeActivityExtra) GetTimelock() int32

GetTimelock returns the Timelock field if non-nil, zero value otherwise.

GetTimelockOk

func (o *CreateStakeActivityExtra) GetTimelockOk() (*int32, bool)

GetTimelockOk returns a tuple with the Timelock field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTimelock

func (o *CreateStakeActivityExtra) SetTimelock(v int32)

SetTimelock sets Timelock field to given value.

GetChangeAddress

func (o *CreateStakeActivityExtra) GetChangeAddress() string

GetChangeAddress returns the ChangeAddress field if non-nil, zero value otherwise.

GetChangeAddressOk

func (o *CreateStakeActivityExtra) GetChangeAddressOk() (*string, bool)

GetChangeAddressOk returns a tuple with the ChangeAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetChangeAddress

func (o *CreateStakeActivityExtra) SetChangeAddress(v string)

SetChangeAddress sets ChangeAddress field to given value.

HasChangeAddress

func (o *CreateStakeActivityExtra) HasChangeAddress() bool

HasChangeAddress returns a boolean if a field has been set.

GetValidatorAddress

func (o *CreateStakeActivityExtra) GetValidatorAddress() string

GetValidatorAddress returns the ValidatorAddress field if non-nil, zero value otherwise.

GetValidatorAddressOk

func (o *CreateStakeActivityExtra) GetValidatorAddressOk() (*string, bool)

GetValidatorAddressOk returns a tuple with the ValidatorAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetValidatorAddress

func (o *CreateStakeActivityExtra) SetValidatorAddress(v string)

SetValidatorAddress sets ValidatorAddress field to given value.

GetRewardAddress

func (o *CreateStakeActivityExtra) GetRewardAddress() string

GetRewardAddress returns the RewardAddress field if non-nil, zero value otherwise.

GetRewardAddressOk

func (o *CreateStakeActivityExtra) GetRewardAddressOk() (*string, bool)

GetRewardAddressOk returns a tuple with the RewardAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRewardAddress

func (o *CreateStakeActivityExtra) SetRewardAddress(v string)

SetRewardAddress sets RewardAddress field to given value.

[Back to Model list] [Back to API list] [Back to README]