You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+59-1Lines changed: 59 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -465,6 +465,7 @@ transferOwnership & kill functions both catch an 'invalid address'. The response
465
465
466
466
There is always room for improvement, but below is a list of tasks to tackle first.
467
467
468
+
- error handling needs to be better and standarized. Using combination of promises/catch and try/catch but only some error are sent as a response, most stop the server and the requests gets timedout.
468
469
- add a way to calculate default gas when transferring tokens for multi-token and owner-token apis
469
470
- Get `transferFrom` branch working and debugged, which also included payments to the contract. This branch is for the owner api but can be integrated into the multi-tokens api once it works correctly.
470
471
- Add unit tests via mocha, jest
@@ -616,9 +617,18 @@ Transfer tokens between any two addresses.
- gas[optional] - Example: "gas": 41000. Defaults to gas from web3.eth.estimateGas()
626
+
- fromAddres[required]
627
+
- toAddress[required]
628
+
- value[required] - number/string. Keep in mind the decimal spaces for the token contract. Usually is 18. Example below is 2, so 100 is actually 100 tokens.
- priority[required] - low, medium, high. Based on thi [api](https://ethgasstation.info/json/ethgasAPI.json) and fast, average and safelow are divided by 10.
0 commit comments