[][src]Function dtoken::use_token

pub fn use_token(account: &Address, token_id: &[u8], n: U128) -> bool

use token, the buyer of the token has the right to consume the token

account is the buyer address

resource_id used to mark the only commodity in the chain

token_template_bytes used to mark the only token

n represents the number of consuming token