-
Notifications
You must be signed in to change notification settings - Fork 4
API
Zixsi edited this page Sep 17, 2018
·
7 revisions
All methods are present in crypt_example.php.
The script works with the following networks:
-
testtest network -
devdevelopment test network -
mainmain network
Generate MH address
Example:
php crypt_example.php method=generateGet balance for MH address
Params:
- net - network
- address - MH address
Example:
php crypt_example.php method=fetch-balance net=dev address=0x003d3b27f544d1dc03d6802e6379fdcfc25e0b73272b62496bGet history for MH address
Params:
- net - network
- address - MH address
Example:
php crypt_example.php method=fetch-history net=dev address=0x003d3b27f544d1dc03d6802e6379fdcfc25e0b73272b62496bGet transaction information by hash
Params:
- net - network
- hash - transaction hash
Example:
php crypt_example.php method=get-tx net=dev hash=ee0e11b793ff5a5b0d6954f0da4964ceb53f9887480e9a5e42608830ed401963Create and send transaction
Params:
- net - network
- address - MH address (from created addresses)
- to - MH address
- value
- data (custom data)
Example:
php crypt_example.php method=send-tx net=dev address=0x003d3b27f544d1dc03d6802e6379fdcfc25e0b73272b62496b to=0x00525d3f6326549b8974ef669f8fced6153109ba60d52d547d value=1000 data="test transaction"