@@ -29,31 +29,31 @@ To suspend/stop the miner from mining:
29
29
` Aecore.Miner.Worker.suspend() `
30
30
31
31
#### ** API calls**
32
- To add block to the blockchain:
32
+ To add a block to the blockchain:
33
33
34
34
` Aecore.Chain.Worker.add_block(%Block{}) :: :ok `
35
35
36
- To get the all blocks in the current chain:
36
+ To get all blocks in the current chain:
37
37
38
38
` Aecore.Chain.Worker.all_blocks() :: list() `
39
39
40
- To get latest block added to the chain:
40
+ To get the latest block added to the chain:
41
41
42
42
` Aecore.Chain.Worker.latest_block() :: %Block{} `
43
43
44
44
To get the latest chainstate:
45
45
46
46
` Aecore.Chain.Worker.chain_state() :: map() `
47
47
48
- To add transaction to the Transaction Pool:
48
+ To add a transaction to the Transaction Pool:
49
49
50
50
` Aecore.Txs.Pool.Worker.add_transaction(%SignedTx{}) :: :ok | :error `
51
51
52
- To remove transaction from the Transaction Pool:
52
+ To remove a transaction from the Transaction Pool:
53
53
54
54
` Aecore.Txs.Pool.Worker.remove_transaction(%SignedTx{}) :: :ok | :error `
55
55
56
- To inspect transactions in the Transaction Pool:
56
+ To inspect a transactions in the Transaction Pool:
57
57
58
58
` Aecore.Txs.Pool.Worker.get_pool() :: map() `
59
59
@@ -74,4 +74,4 @@ the log can be found in the source folder under:`apps/aecore/logs`
74
74
75
75
## HTTP-API
76
76
77
- The node will run a http api at ` localhost:4000 `
77
+ The node will run an http API at ` localhost:4000 `
0 commit comments