Home

Create an Arbitrary Message transaction

POST
https://ardr.nownodes.io/nxt

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Body

application/json
jsonrpcstringrequired
methodstringrequired
paramsobjectrequired
Show child attributes
requestTypestring
chaininteger

The chain for the message to be sent

recipientstring

The account ID of the recipient

recipientPublicKeystring

The public key of the receiving account

messagestring

Either UTF-8 text or a string of hex digits to be converted into a bytecode with a maximum length of one kilobyte, 42 kilobytes if prunable

messageIsTextboolean

False if the message is a hex string, otherwise the message is text

messageIsPrunableboolean

True if the message is prunable

messageToEncryptstring

Either UTF-8 text or a string of hex digits to be compressed and converted into a bytecode with a maximum length of one kilobyte, 42 kilobytes if prunable, then encrypted using AES

messageToEncryptIsTextboolean

False if the message to encrypt is a hex string, otherwise the message to encrypt is text

encryptedMessageDatastring

Already encrypted data which overrides messageToEncrypt if provided

encryptedMessageNoncestring

A unique 32-byte number which cannot be reused

encryptedMessageIsPrunableboolean

True if the encrypted message is prunable

compressMessageToEncryptboolean

False to prevent gzip compression before encryption

messageToEncryptToSelfstring

Either UTF-8 text or a string of hex digits to be compressed and converted into a one kilobyte maximum bytecode then encrypted with AES, then sent to the sending account

messageToEncryptToSelfIsTextboolean

False if the message to self-encrypt is a hex string, otherwise the message to encrypt is text

encryptToSelfMessageDatastring

Already encrypted data which overrides messageToEncryptToSelf if provided

encryptToSelfMessageNoncestring

A unique 32-byte number which cannot be reused

compressMessageToEncryptToSelfboolean

False to prevent gzip compression before encryption

idintegerrequired

Response

200OK

Message sent successfully

400Bad Request

Bad Request

401Unauthorized

Unauthorized — Missing or invalid API key

500Internal Server Error

Internal Server Error