Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (20 sloc) 1.13 KB

php4nano

PHP libraries and tools for Nano

Read usage and examples in files header

Repository contents

lib

library for Nano

ncm

node CLI manager

A clarification on the huge integers

Since Nano uses huge integers to represent even a tiny amount (1 nano is 10^24 raw), while PHP supports much lower integers, I suggest you to manage every amount on your database/scripts using NANO (10^30) as reference denomination, which involves storing and managing amounts as float

If you need to perform arithmetic operations directly with the raw amounts, I suggest the GMP library

You can find denomination/raw conversion functions and other usefull stuffs in lib/NanoTools.php

To do

  • Add IPC call classes
  • Add nano_lib functions as standalone

Credits

Donations

nano_1undcod8mwabf3743uaij91w841wjk1wg7e3hu38hgshgqztjcceak3m9skm
You can’t perform that action at this time.