pub fn approve_msg(
    spender: HumanAddr,
    token_id: String,
    expires: Option<Expiration>,
    padding: Option<String>,
    block_size: usize,
    callback_code_hash: String,
    contract_addr: HumanAddr
) -> StdResult<CosmosMsg>
Expand description

Returns a StdResult used to execute Approve

Arguments

  • spender - the address being granted permission to transfer the token
  • token_id - ID String of the token that can be transferred
  • expires - Optional Expiration of this approval
  • padding - Optional String used as padding if you don’t want to use block padding
  • block_size - pad the message to blocks of this size
  • callback_code_hash - String holding the code hash of the contract being called
  • contract_addr - address of the contract being called