2222 spaces-cli [command]
2323
2424Available Commands:
25+ activity View recent activity on the network
2526 claim Claims the given prefix
2627 completion generate the autocompletion script for the specified shell
2728 create Creates a new key in the default location
@@ -30,11 +31,13 @@ Available Commands:
3031 help Help about any command
3132 info Reads space info and all values at space
3233 lifeline Extends the life of a given prefix
34+ move Transfers a space to another address
3335 resolve Reads a value at space/key
3436 set Writes a key-value pair for the given prefix
37+ transfer Transfers units to another address
3538
3639Flags:
37- --endpoint string RPC Endpoint for VM (default "http ://127.0.0.1:9650 ")
40+ --endpoint string RPC Endpoint for VM (default "https ://memeshowdown.com ")
3841 -h, --help help for spaces-cli
3942 --private-key-file string private key file path (default ".spaces-cli-pk")
4043
@@ -97,12 +100,12 @@ _Provide your intent and get back a transaction to sign._
97100
98101#### Transaction Types
99102```
100- Claim {type,space}
101- Lifeline {type,space,units}
102- Set {type,space,key,value}
103- Delete {type,space,key}
104- Move {type,space,to}
105- Transfer {type,to,units}
103+ claim {type,space}
104+ lifeline {type,space,units}
105+ set {type,space,key,value}
106+ delete {type,space,key}
107+ move {type,space,to}
108+ transfer {type,to,units}
106109
107110```
108111
@@ -215,6 +218,32 @@ Transfer {type,to,units}
215218>>> {"balance":<uint64>}
216219```
217220
221+ ## spacesvm.recentActivity
222+ ```
223+ <<< POST
224+ {
225+ "jsonrpc": "2.0",
226+ "method": "spacesvm.recentActivity",
227+ "params":{},
228+ "id": 1
229+ }
230+ >>> {"activity":[<chain.Activity>,...]}
231+ ```
232+
233+ ### chain.Activity
234+ ```
235+ {
236+ "timestamp":<unix>,
237+ "sender":<address>,
238+ "txId":<ID>,
239+ "type":<string>,
240+ "space":<string>,
241+ "key":<string>,
242+ "to":<hex encoded>,
243+ "units":<uint64>
244+ }
245+ ```
246+
218247# Advanced Public Endpoints (` /public ` )
219248
220249## spacesvm.suggestedRawFee
@@ -247,7 +276,7 @@ _Can use this to get the current fee rate._
247276# Creating Transactions
248277```
2492781) spacesvm.claimed {"space":"patrick"} => Yes/No
250- 2) spacesvm.suggestedFee {"input":{"type":"Claim ", "space":"patrick"}} => {"typedData":<EIP-712 Typed Data>, "cost":<total fee>}
279+ 2) spacesvm.suggestedFee {"input":{"type":"claim ", "space":"patrick"}} => {"typedData":<EIP-712 Typed Data>, "cost":<total fee>}
2512803) sign EIP-712 Typed Data
2522814) spacesvm.issueTx {"typedData":<from spacesvm.suggestedFee>, "signature":<sig from step 3>} => {"txId":<ID>}
2532825) [loop] spacesvm.hasTx {"txId":<ID>} => {"accepted":true"}
0 commit comments