sendmessage
RPC help captured from Yerbas Core 4.0.1.4 (f0e2dde).
Use ./yerbas-cli help sendmessage on your node for help. In the GUI console omit yerbas-cli. HTTP examples use mainnet RPC port 15419; network-specific defaults and availability can differ.
sendmessage "channel_name" "ipfs_hash" (expire_time)
Creates and broadcasts a message transaction to the network for a channel this wallet owns
Arguments:
1. "channel_name" (string, required) Name of the channel that you want to send a message with (message channel, administrator asset), if a non administrator asset name is given, the administrator '!' will be added to it
2. "ipfs_hash" (string, required) The IPFS hash of the message
3. "expire_time" (numeric, optional) UTC timestamp of when the message expires
Result:[
txid
]
Examples:
> yerbas-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
> yerbas-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654