Method: Radiator::Mixins::ActsAsWallet#claim_reward_balance

Defined in:
lib/radiator/mixins/acts_as_wallet.rb

#claim_reward_balance(options) ⇒ Object

Create a claim_reward_balance operation.

Examples:

steem = Radiator::Chain.new(chain: :steem, account_name: 'your account name', wif: 'your wif')
steem.claim_reward_balance(reward_sbd: '100.000 SBD')
steem.broadcast!

Parameters:

  • options (::Hash)

    options

Options Hash (options):

  • :reward_steem (String)

    The amount of STEEM to claim, like: ‘100.000 STEEM`

  • :reward_sbd (String)

    The amount of SBD to claim, like: ‘100.000 SBD`

  • :reward_vests (String)

    The amount of VESTS to claim, like: ‘100.000000 VESTS`

[View source]

16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/radiator/mixins/acts_as_wallet.rb', line 16

def claim_reward_balance(options)
  reward_steem = options[:reward_steem] || '0.000 STEEM'
  reward_sbd = options[:reward_sbd] || '0.000 SBD'
  reward_vests = options[:reward_vests] || '0.000000 VESTS'
  
  @operations << {
    type: :claim_reward_balance,
    account: ,
    reward_steem: reward_steem,
    reward_sbd: reward_sbd,
    reward_vests: reward_vests
  }
  
  self
end