[][src]Function dtoken::add_token_agents

pub fn add_token_agents(
    account: &Address,
    token_id: &[u8],
    agents: &[Address],
    n: Vec<U128>
) -> bool

add_agents, this method only append agents for the specified token.

resource_id used to mark the only commodity in the chain

account is user address who authorize the other address is agent, need account signature

token_template_bytes used to specified which token to set agents.

agents is the array of agent address

n is number of authorizations per agent