more tests, finish readme

This commit is contained in:
stjet
2024-06-28 03:46:43 +00:00
parent 4b525aab6b
commit d4ef861ea2
64 changed files with 294 additions and 149 deletions

View File

@@ -60,7 +60,7 @@ export class Wallet {
* @param {util.Whole} [amount] amount in whole bananos to send
* @param {boolean?} [gen_work] whether or not to call work function to generate work
* @param {string?} [representative] optionally provide a representative if you do not want to use the current representative
* @param {AccountInfoRPC?} [cached_account_info] can save one rpc call in some cases. mostly for internal use. Make sure that in the RPC call, "representative" is "true"
* @param {AccountInfoRPC?} [cached_account_info] can save one rpc call in some cases. Mostly for internal use. Make sure that in the RPC call, "representative" is "true"
Send Bananos
*/
async send(to: Address, amount: util.Whole, gen_work?: boolean, representative?: Address, cached_account_info?: AccountInfoRPC): Promise<BlockHash> {