pub fn send_nft_msg(
    contract: HumanAddr,
    token_id: String,
    msg: Option<Binary>,
    memo: Option<String>,
    padding: Option<String>,
    block_size: usize,
    callback_code_hash: String,
    contract_addr: HumanAddr
) -> StdResult<CosmosMsg>
Expand description

Returns a StdResult used to execute SendNft

Arguments

  • contract - the address the token is to be sent to. It does not have to be a contract address, but the field is named this for CW721 compliance
  • token_id - ID String of the token to send
  • msg - Optional base64 encoded message to pass to the recipient contract’s (Batch)ReceiveNft function
  • memo - Optional String memo for the tx
  • 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