base/lib/stellar/operation.rb
# Create Claimable Balance operation builder.
#
# @see Stellar::DSL::Claimant
# @see https://github.com/astroband/ruby-stellar-sdk/tree/master/base/examples/claimable_balances.rb
#
# @param source_account [KeyPair, nil] the source account for the operation
# @param asset [Asset] the asset to transfer to a claimable balance
# @param amount [Fixnum] the amount of `asset` to put into a claimable balance
# @param claimants [Array<Claimant>] accounts authorized to claim the balance in the future
#
# @return [Operation] the built operation
Create Claimable Balance operation builder.
Create Claimable Balance operation builder .
def create_claimable_balance(asset:, amount:, claimants:, source_account: nil)
        op = CreateClaimableBalanceOp.new(asset: asset, amount: amount, claimants: claimants)
        make(source_account: source_account, body: [:create_claimable_balance, op])
      end
def create_claimable_balance ( asset : , amount : , claimants : , source_account : nil ) op = CreateClaimableBalanceOp . new ( asset : asset , amount : amount , claimants : claimants ) make ( source_account : source_account , body : [ :create_claimable_balance , op ] ) end
Create Claimable Balance operation builder.
Create Claimable Balance operation builder .
the built operation
the built operation
Operation
asset
the asset to transfer to a claimable balance
the asset to transfer to a claimable balance
amount
the amount of `asset` to put into a claimable balance
the amount of ` asset ` to put into a claimable balance
claimants
accounts authorized to claim the balance in the future
accounts authorized to claim the balance in the future
source_account
the source account for the operation
the source account for the operation
see
None
see
None