[−][src]Function marketplace::buy_dtoken_reward
pub fn buy_dtoken_reward(
resource_id: &[u8],
n: U128,
buyer_account: &Address,
payer: &Address,
unit_price: U128
) -> Vec<Vec<u8>>
buy_dtoken_reward
This method can only be called for items that the fee.count is 0, The buyer can reward the seller with any number of tokens.
resource_id used to mark the only commodity in the chain
n is the number of purchases
buyer_account is buyer address, need this address signature
payer is the address who pay the fee
unit_price unit price the buyer is willing to pay