Assuming you are developing on http://emmi-mvp.uat.acu.network, the functions you directly have access to are:
Acquit
Acquitting emissions for a given year
POST /sapi/custom.emmi.company/contract/acquit PARAMS { [access-token] year - The year of acquittal. E.g. "2012" or "2016" acquittal - The amount of acquittal. E.g. "10000" }
Project
Setting projected emissions for the next 10 years from a given year
POST /sapi/custom.emmi.company/contract/project PARAMS { [access-token] year - The first year of projections. E.g. "2011" means you will be projecting "2011, 2012, ..., 2020" projection - Comma delimited amounts to project, E.g. "10,20,30,40,50,60,70,80,90,100" }
Get Ether Balance
Gets the current ethereum balance of given wallet address
POST/GET /sapi/custom.emmi.company/contract/get_ether_balance PARAMS { [access-token] OR address - if [access-token] is given, self balance is shown - if address is given (0xdf93ej...), that balance is shown } RESPONSE { balance - Amount of Ethereum (in Wei) }
Get Balance
Gets the current balance of emission acquittal tokens
POST/GET /sapi/custom.emmi.company/contract/get_balance PARAMS { [access-token] OR address - if [access-token] is given, self balance is shown - if address is given (0xdf93ej...), that balance is shown } RESPONSE { balance - Decimal balance of tokens }
Get Acquittal
Gets the current amount acquitted for the given year
POST/GET /sapi/custom.emmi.company/contract/get_acquittal PARAMS { [access-token] OR address - if [access-token] is given, self acquitted is shown - if address is given (0xdf93ej...), that acquitted is shown year - The year of acquittal. E.g. "2015" } RESPONSE { balance - Amount acquitted for the given year }
Get Projection
Gets the current projected emission amount for the given year
POST/GET /sapi/custom.emmi.company/contract/get_projection PARAMS { [access-token] OR address - if [access-token] is given, self projected is shown - if address is given (0xdf93ej...), that projected is shown year - The year of projection . E.g. "2015" } RESPONSE { balance - Amount projected for the given year }
Get Projections
Gets the current projected emission amount for the given range of years
POST/GET /sapi/custom.emmi.company/contract/get_projections PARAMS { [access-token] OR address - if [access-token] is given, self projected is shown - if address is given (0xdf93ej...), that projected is shown year - The first year of projection . E.g. "2015" range - The number of years to query. E.g. "3" would be "2015, 2016, 2017" } RESPONSE { year0: balance year1: balance ... }