When Nimiq Moon ?

Micro Transaction

The simplest way to send a low-value transaction is by using a private key. The transaction's hash will be returned once it's in Mempool.

  • This endpoint is for low value source addresses and only supports HTTPS POST.
  • We never store the private key, and remove it from server memory as soon as its used.

Version

v0.0.1

Endpoint

/micro-tx/

Request Parameters in Header

Content-Type
Must always be 'application/x-www-form-urlencoded'.

Request Parameters in Body

api_key
YOUR_API_KEY.
from_private
The hex-encoded Private Key.
to_address
Recipient Address should include spaces.
value_nimtoshis
value_nimtoshis is in Integer.
fee_nimtoshis
fee_nimtoshis is in Integer.

Sample Request

POST https://api.nimiqx.com/micro-tx/
Content-Type='application/x-www-form-urlencoded'

api_key=YOUR_API_KEY&
from_private=2dfa777216a6f95a579c92c93129fc9f86a17cc8a2b2923a9ff60ffb30367dd7&
to_address=NQ94 G6UA E8FX Q60G J6HN A4EV X8PB DRD9 MRLC&
value_nimtoshis=1000&
fee_nimtoshis=138

Sample Response

{
    "hash": "5bad758c10350968030ad7fe83e4106eabc800172c56fefec47b436ce6152f48"
}

Sample Error Response

{
  "error": "Invalid Request"
}
Invalid Request
The request is missing a required parameter or is otherwise malformed.
Invalid Private Key
The hex-encoded Private Key is not in 64 characters.
Invalid Address
Recipient Address is malformed.
Invalid Value
Returned if value_nimtoshis is anything other than Integer.
Invalid Fee
Returned if fee_nimtoshis is anything other than Integer.