@neuraiproject/neurai-rpc 0.9.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -118,9 +118,6 @@ var methods = {
118
118
  addnode: "addnode",
119
119
  /** addtagtoaddress tag_name to_address (change_address) (asset_data)
120
120
 
121
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
122
-
123
-
124
121
  Assign a tag to a address
125
122
 
126
123
  Arguments:
@@ -184,9 +181,6 @@ var methods = {
184
181
  cancelsnapshotrequest: "cancelsnapshotrequest",
185
182
  /** checkaddressrestriction address restricted_name
186
183
 
187
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
188
-
189
-
190
184
  Checks to see if an address has been frozen by the given restricted asset
191
185
 
192
186
  Arguments:
@@ -203,9 +197,6 @@ var methods = {
203
197
  checkaddressrestriction: "checkaddressrestriction",
204
198
  /** checkaddresstag address tag_name
205
199
 
206
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
207
-
208
-
209
200
  Checks to see if an address has the given tag
210
201
 
211
202
  Arguments:
@@ -222,9 +213,6 @@ var methods = {
222
213
  checkaddresstag: "checkaddresstag",
223
214
  /** checkdepinvalidity "asset_name" "address"
224
215
 
225
- THIS COMMAND IS NOT YET ACTIVE!
226
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
227
-
228
216
  Check if a DEPIN asset is valid/active for a specific address
229
217
 
230
218
  Arguments:
@@ -246,9 +234,6 @@ var methods = {
246
234
  checkdepinvalidity: "checkdepinvalidity",
247
235
  /** checkglobalrestriction restricted_name
248
236
 
249
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
250
-
251
-
252
237
  Checks to see if a restricted asset is globally frozen
253
238
 
254
239
  Arguments:
@@ -282,9 +267,6 @@ var methods = {
282
267
  clearmempool: "clearmempool",
283
268
  /** clearmessages
284
269
 
285
- THIS COMMAND IS NOT YET ACTIVE!
286
- https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
287
-
288
270
  Delete current database of messages
289
271
 
290
272
  Result:[
@@ -298,9 +280,6 @@ var methods = {
298
280
  clearmessages: "clearmessages",
299
281
  /** closedepin "asset_name" ("change_address")
300
282
 
301
- THIS COMMAND IS NOT YET ACTIVE!
302
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
303
-
304
283
  Close transfers of a DEPIN asset (owner only): the asset becomes soulbound
305
284
  again and only the owner can move it. Valid from the open state; takes effect
306
285
  from the block after the one that confirms it. Pending holder transfers are
@@ -844,111 +823,212 @@ var methods = {
844
823
  decodesilentpaymentcode: "decodesilentpaymentcode",
845
824
  /**
846
825
  * depinchallenge request
847
- *
848
- * DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
849
- * Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
826
+ * DePIN protocol 6. One JSON object; legacy signatures are rejected.
827
+ * See doc/depin-request-signatures.md. Use depinsignrpc method request on the signing wallet.
850
828
  */
851
829
  depinchallenge: "depinchallenge",
852
830
  /**
853
831
  * depinclearmsg request
854
- *
855
- * DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
856
- * Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
832
+ * DePIN protocol 6. One JSON object; legacy signatures are rejected.
833
+ * See doc/depin-request-signatures.md. Use depinsignrpc method request on the signing wallet.
857
834
  */
858
835
  depinclearmsg: "depinclearmsg",
859
836
  /**
860
837
  * depindecrypt "address" "encrypted"
861
838
  *
862
- * Decrypts an encrypted DePIN reply with a wallet key. Verify the reply's poolsig before using this method; depindecrypt does not verify it.
839
+ * Open an encrypted DePIN reply (depinchallenge, depinreceivemsg, ...) with a
840
+ * wallet key: the client half of the transport layer, for scripting with
841
+ * neurai-cli. It only decrypts. Verify the whole reply first, poolsig and
842
+ * request_hash included; this RPC does not, and what it returns is not
843
+ * authentic until that is done. Messages are opened with depinopenmsg.
844
+ *
845
+ * Arguments:
846
+ * 1. "address" (string, required) Wallet address the reply was encrypted for
847
+ * 2. "encrypted" (string, required) The reply's "encrypted" hex
863
848
  *
864
849
  * Result:
865
- * The decrypted JSON value, or a string when the plaintext is not JSON.
850
+ * The decrypted JSON value (a string if the plaintext is not JSON)
851
+ *
852
+ * Examples:
853
+ * > neurai-cli depindecrypt "NXholder..." "<hex>"
854
+ * > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "depindecrypt", "params": ["NXholder...", "<hex>"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
866
855
  */
867
856
  depindecrypt: "depindecrypt",
868
857
  /**
869
858
  * depingetancestorrecipients request
870
- *
871
- * DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
872
- * Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
859
+ * DePIN protocol 6. One JSON object; legacy signatures are rejected.
860
+ * See doc/depin-request-signatures.md. Use depinsignrpc method request on the signing wallet.
873
861
  */
874
862
  depingetancestorrecipients: "depingetancestorrecipients",
875
863
  /**
876
864
  * depingetmsg "token" ( "fromaddress" )
877
865
  *
878
- * Uses the local node wallet to decrypt messages from the local DePIN pool. The optional address must belong to the wallet and hold the requested token or a related branch token.
866
+ * Retrieve and decrypt this node's pool messages for your wallet addresses
867
+ *
868
+ * Reads the local pool only (-depinmsg must be enabled on this node). To read
869
+ * a remote pool, query its depinreceivemsg and decrypt client-side.
870
+ *
871
+ * Arguments:
872
+ * 1. "token" (string, required) Token name. May be a section (sub-asset) such as
873
+ * "&TOKEN/GENERAL"; only that section's subtree is returned
874
+ * 2. "fromaddress" (string, optional) Decrypt only with this wallet address
875
+ *
876
+ * Result:
877
+ * [
878
+ * {
879
+ * "recipient": "address", (string) Recipient address (your address)
880
+ * "sender": "address", (string) Sender address
881
+ * "token": "name", (string) Token/section the message belongs to
882
+ * "message": "text", (string) Decrypted message
883
+ * "message_type": "private|group", (string) Message type (private=1-to-1, group=broadcast)
884
+ * "timestamp": n, (numeric) Unix timestamp
885
+ * "date": "YYYY-MM-DD HH:MM:SS", (string) Formatted date
886
+ * "expires": "YYYY-MM-DD HH:MM:SS" (string) Expiration date
887
+ * },
888
+ * ...
889
+ * ]
890
+ *
891
+ * Examples:
892
+ * > neurai-cli depingetmsg "&MYTOKEN"
893
+ * (all wallet addresses)
894
+ * > neurai-cli depingetmsg "&MYTOKEN" "NXyouraddress..."
895
+ * (specific address)
896
+ * > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "depingetmsg", "params": ["&MYTOKEN"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
879
897
  */
880
898
  depingetmsg: "depingetmsg",
881
899
  /**
882
900
  * depingetmsginfo request
883
- *
884
- * DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
885
- * Bootstrap fields: protocol=5, request_id (32 random bytes in lowercase hex), timestamp_ms (integer milliseconds). Verify the response with the local request hash, expected genesis and pinned pool key before using its context.
901
+ * DePIN protocol 6. One JSON object; legacy signatures are rejected.
902
+ * See doc/depin-request-signatures.md. Use depinsignrpc method request on the signing wallet.
886
903
  */
887
904
  depingetmsginfo: "depingetmsginfo",
888
905
  /**
889
906
  * depinlistsections request
890
- *
891
- * DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
892
- * Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
907
+ * DePIN protocol 6. One JSON object; legacy signatures are rejected.
908
+ * See doc/depin-request-signatures.md. Use depinsignrpc method request on the signing wallet.
893
909
  */
894
910
  depinlistsections: "depinlistsections",
895
911
  /**
896
912
  * depinmcpstatus request
897
- *
898
- * DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
899
- * Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
913
+ * DePIN protocol 6. One JSON object; legacy signatures are rejected.
914
+ * See doc/depin-request-signatures.md. Use depinsignrpc method request on the signing wallet.
900
915
  */
901
916
  depinmcpstatus: "depinmcpstatus",
917
+ /**
918
+ * depinopenmsg "address" message
919
+ *
920
+ * Open a DePIN message, as served by depinreceivemsg or depinreceiveseq, with a
921
+ * wallet key, the way its recipient reads it: the public key belongs to the
922
+ * sender, the signature is valid, and the envelope opens under the header of
923
+ * the message. The envelope only opens with the header it was made for.
924
+ * Check that the message is in the section you are reading: its token is part
925
+ * of what is verified, not of what is chosen.
926
+ *
927
+ * Arguments:
928
+ * 1. "address" (string, required) Wallet address the message is encrypted for
929
+ * 2. message (object, required) The message as served:
930
+ * {
931
+ * "token": "name", (string, required)
932
+ * "sender": "address", (string, required)
933
+ * "timestamp": n, (numeric, required)
934
+ * "message_type": "private|group", (string, required)
935
+ * "encrypted_payload_hex": "hex", (string, required)
936
+ * "signature_hex": "hex", (string, required)
937
+ * "sender_pubkey_hex": "hex" (string, optional) Looked up on chain when absent
938
+ * }
939
+ *
940
+ * Result:
941
+ * "text" (string) The text of the message
942
+ *
943
+ * Examples:
944
+ * > neurai-cli depinopenmsg "NXholder..." '{"token":"&TEST",...}'
945
+ * > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "depinopenmsg", "params": ["NXholder...", {"token":"&TEST",...}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
946
+ */
947
+ depinopenmsg: "depinopenmsg",
902
948
  /**
903
949
  * depinpoolpkey
904
950
  *
905
- * Wallet-only operator helper that derives the dedicated DePIN pool public key from the loaded service wallet.
951
+ * Returns the public key of the DePIN pool address from the internal wallet.
952
+ * This command only works if the wallet is loaded and unlocked at node startup.
953
+ *
954
+ * Derived path:
955
+ * Mainnet: m/44'/1900'/200'/0/0
956
+ * Testnet: m/44'/1'/200'/1/0
957
+ * Regtest: m/44'/1'/200'/0/0
906
958
  *
907
959
  * Result:
908
960
  * {
909
- * "pubkey": "hex",
910
- * "address": "address",
911
- * "path": "derivation_path"
961
+ * "pubkey": "hex", (string) Public key in hex format
962
+ * "address": "address", (string) Corresponding Neurai address
963
+ * "path": "derivation_path" (string) BIP44 derivation path used
912
964
  * }
965
+ *
966
+ * Examples:
967
+ * > neurai-cli depinpoolpkey
968
+ * > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "depinpoolpkey", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
913
969
  */
914
970
  depinpoolpkey: "depinpoolpkey",
915
971
  /**
916
972
  * depinpoolstats request
917
- *
918
- * DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
919
- * Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
973
+ * DePIN protocol 6. One JSON object; legacy signatures are rejected.
974
+ * See doc/depin-request-signatures.md. Use depinsignrpc method request on the signing wallet.
920
975
  */
921
976
  depinpoolstats: "depinpoolstats",
922
977
  /**
923
978
  * depinreceivemsg request
924
- *
925
- * DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
926
- * Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
979
+ * DePIN protocol 6. One JSON object; legacy signatures are rejected.
980
+ * See doc/depin-request-signatures.md. Use depinsignrpc method request on the signing wallet.
927
981
  */
928
982
  depinreceivemsg: "depinreceivemsg",
929
983
  /**
930
984
  * depinreceiveseq request
931
- *
932
- * DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
933
- * Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
985
+ * DePIN protocol 6. One JSON object; legacy signatures are rejected.
986
+ * See doc/depin-request-signatures.md. Use depinsignrpc method request on the signing wallet.
934
987
  */
935
988
  depinreceiveseq: "depinreceiveseq",
936
989
  /**
937
990
  * depinsendmsg "token" "message" "fromaddress"
938
991
  *
939
- * Uses the local node wallet to sign and encrypt a message for eligible recipients, then adds it to the local DePIN pool. Remote host and port parameters were removed in protocol 2.
992
+ * Encrypt, sign and add a message to this node's DePIN pool
993
+ *
994
+ * The pool must be enabled on this node (-depinmsg) and the wallet must hold
995
+ * the token, or one of its ancestors, at fromaddress. To publish through a
996
+ * remote node, prepare the message client-side and call its depinsubmitmsg.
997
+ *
998
+ * Arguments:
999
+ * 1. "token" (string, required) Token name. May be a section (sub-asset) such as
1000
+ * "&TOKEN/GENERAL": recipients are the active holders of the section
1001
+ * and of every ancestor up to the pool root; sending is authorized by
1002
+ * holding the section or any ancestor.
1003
+ * 2. "message" (string, required) Message to send (max 1KB)
1004
+ * 3. "fromaddress" (string, required) Wallet address used for signing/encryption
1005
+ *
1006
+ * Result:
1007
+ * {
1008
+ * "result": "success", (string) Status
1009
+ * "hash": "hash", (string) Message hash
1010
+ * "token": "name", (string) Token/section the message was sent to
1011
+ * "ancestors": [...], (array) Ancestor chain whose holders form the recipient set
1012
+ * "recipients": n, (numeric) Number of recipients
1013
+ * "skipped_no_pubkey": n, (numeric) Holders skipped for lacking a revealed public key
1014
+ * "skipped_restricted": n, (numeric) Holders skipped as frozen or self-revoked
1015
+ * "timestamp": n (numeric) Message timestamp
1016
+ * }
1017
+ *
1018
+ * Examples:
1019
+ * > neurai-cli depinsendmsg "&MYTOKEN" "Hello team!" "NXsender..."
1020
+ * > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "depinsendmsg", "params": ["&MYTOKEN", "Hello team!", "NXsender..."] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
940
1021
  */
941
1022
  depinsendmsg: "depinsendmsg",
942
1023
  /**
943
- * depinsignrpc "method" request
944
- * Local unlocked-wallet helper: sign a complete RPC 5 request. Returns request, preimage and request_hash. Never expose this wallet helper through a public HTTP/WSS proxy.
1024
+ * depinsignrpc method request
1025
+ * Sign a complete protocol 6 request for the explicit remote destination. Returns request, preimage and request_hash.
945
1026
  */
946
1027
  depinsignrpc: "depinsignrpc",
947
1028
  /**
948
1029
  * depinsubmitmsg request
949
- *
950
- * DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
951
- * Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
1030
+ * DePIN protocol 6. One JSON object; legacy signatures are rejected.
1031
+ * See doc/depin-request-signatures.md. Use depinsignrpc method request on the signing wallet.
952
1032
  */
953
1033
  depinsubmitmsg: "depinsubmitmsg",
954
1034
  /** disconnectnode "[address]" [nodeid]
@@ -1148,9 +1228,6 @@ var methods = {
1148
1228
  exportxpqpub: "exportxpqpub",
1149
1229
  /** freezeaddress asset_name address (change_address) (asset_data)
1150
1230
 
1151
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
1152
-
1153
-
1154
1231
  Freeze an address from transferring a restricted asset
1155
1232
 
1156
1233
  Arguments:
@@ -1171,9 +1248,6 @@ var methods = {
1171
1248
  freezeaddress: "freezeaddress",
1172
1249
  /** freezedepin "asset_name" "address" ("change_address")
1173
1250
 
1174
- THIS COMMAND IS NOT YET ACTIVE!
1175
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
1176
-
1177
1251
  Freeze a DEPIN asset for a specific address (owner only)
1178
1252
 
1179
1253
  The address will still hold the asset but it will be marked as invalid
@@ -1195,9 +1269,6 @@ var methods = {
1195
1269
  freezedepin: "freezedepin",
1196
1270
  /** freezerestrictedasset asset_name (change_address) (asset_data)
1197
1271
 
1198
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
1199
-
1200
-
1201
1272
  Freeze all trading for a specific restricted asset
1202
1273
 
1203
1274
  Arguments:
@@ -1559,9 +1630,6 @@ var methods = {
1559
1630
  getaddressutxos: "getaddressutxos",
1560
1631
  /** getassetdata "asset_name"
1561
1632
 
1562
- THIS COMMAND IS NOT YET ACTIVE!
1563
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
1564
-
1565
1633
  Returns assets metadata if that asset exists
1566
1634
 
1567
1635
  Arguments:
@@ -1710,6 +1778,14 @@ var methods = {
1710
1778
  "active_at_tip": b, (boolean) whether the current block uses profile 2
1711
1779
  "active_for_next_block": b (boolean) whether a candidate block uses profile 2
1712
1780
  },
1781
+ "signature_opcodes": { (object) activation of the optional signature opcodes, which share one height
1782
+ "activation_height": n, (numeric or null) scheduled height, null when unscheduled
1783
+ "active_at_tip": b, (boolean) whether the current block accepts them
1784
+ "active_for_next_block": b, (boolean) whether a candidate block accepts them
1785
+ "opcodes": { (object) whether each opcode is enabled on this network
1786
+ "checksigfromstack": b, "checksig_ed25519": b, "checksigadd": b, "checksig_p256": b
1787
+ }
1788
+ },
1713
1789
  "pruneheight": xxxxxx, (numeric) lowest-height complete block stored (only present if pruning is enabled)
1714
1790
  "automatic_pruning": xx, (boolean) whether automatic pruning is enabled (only present if pruning is enabled)
1715
1791
  "prune_target_size": xxxxxx, (numeric) the target size used by pruning (only present if automatic pruning is enabled)
@@ -1906,7 +1982,7 @@ var methods = {
1906
1982
  "coinbasevalue" : n, (numeric) maximum allowable input to coinbase transaction, including the generation award and transaction fees (in satoshis)
1907
1983
  "coinbasetxn" : { ... }, (json object) information for coinbase transaction
1908
1984
  "target" : "xxxx", (string) The hash target
1909
- "mintime" : xxx, (numeric) The minimum timestamp appropriate for next block time in seconds since epoch (Jan 1 1970 GMT)
1985
+ "mintime" : xxx, (numeric) The minimum timestamp appropriate for next block time in seconds since epoch (Jan 1 1970 GMT), after the median time past and within the consensus cleanup bounds
1910
1986
  "mutable" : [ (array of string) list of ways the block template may be changed
1911
1987
  "value" (string) A way the block template may be changed, e.g. 'time', 'transactions', 'prevblock'
1912
1988
  ,...
@@ -1927,9 +2003,6 @@ var methods = {
1927
2003
  getblocktemplate: "getblocktemplate",
1928
2004
  /** getcacheinfo
1929
2005
 
1930
- THIS COMMAND IS NOT YET ACTIVE!
1931
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
1932
-
1933
2006
  Result:
1934
2007
  [
1935
2008
  uxto cache size:
@@ -2416,7 +2489,7 @@ var methods = {
2416
2489
  Result (for verbose=true):
2417
2490
  { (json object)
2418
2491
  "transactionid" : { (json object)
2419
- "size" : n, (numeric) virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted.
2492
+ "size" : n, (numeric) virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted. From the NIP-028 height on it also counts the weight of the script work (Poseidon and OP_CHECKASSETAUTH).
2420
2493
  "fee" : n, (numeric) transaction fee in XNA
2421
2494
  "modifiedfee" : n, (numeric) transaction fee with fee deltas used for mining priority
2422
2495
  "time" : n, (numeric) local time transaction entered pool in seconds since 1 Jan 1970 GMT
@@ -2428,6 +2501,7 @@ var methods = {
2428
2501
  "ancestorsize" : n, (numeric) virtual transaction size of in-mempool ancestors (including this one)
2429
2502
  "ancestorfees" : n, (numeric) modified fees (see above) of in-mempool ancestors (including this one)
2430
2503
  "poseidonwork" : n, (numeric) reserved Poseidon permutations for this transaction
2504
+ "assetauthwork" : n, (numeric) OP_CHECKASSETAUTH work units of this transaction
2431
2505
  "wtxid" : hash, (string) hash of serialized transaction, including witness data
2432
2506
  "depends" : [ (array) unconfirmed transactions used as inputs for this transaction
2433
2507
  "transactionid", (string) parent transaction id
@@ -2457,7 +2531,7 @@ var methods = {
2457
2531
  Result (for verbose=true):
2458
2532
  { (json object)
2459
2533
  "transactionid" : { (json object)
2460
- "size" : n, (numeric) virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted.
2534
+ "size" : n, (numeric) virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted. From the NIP-028 height on it also counts the weight of the script work (Poseidon and OP_CHECKASSETAUTH).
2461
2535
  "fee" : n, (numeric) transaction fee in XNA
2462
2536
  "modifiedfee" : n, (numeric) transaction fee with fee deltas used for mining priority
2463
2537
  "time" : n, (numeric) local time transaction entered pool in seconds since 1 Jan 1970 GMT
@@ -2469,6 +2543,7 @@ var methods = {
2469
2543
  "ancestorsize" : n, (numeric) virtual transaction size of in-mempool ancestors (including this one)
2470
2544
  "ancestorfees" : n, (numeric) modified fees (see above) of in-mempool ancestors (including this one)
2471
2545
  "poseidonwork" : n, (numeric) reserved Poseidon permutations for this transaction
2546
+ "assetauthwork" : n, (numeric) OP_CHECKASSETAUTH work units of this transaction
2472
2547
  "wtxid" : hash, (string) hash of serialized transaction, including witness data
2473
2548
  "depends" : [ (array) unconfirmed transactions used as inputs for this transaction
2474
2549
  "transactionid", (string) parent transaction id
@@ -2490,7 +2565,7 @@ var methods = {
2490
2565
 
2491
2566
  Result:
2492
2567
  { (json object)
2493
- "size" : n, (numeric) virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted.
2568
+ "size" : n, (numeric) virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted. From the NIP-028 height on it also counts the weight of the script work (Poseidon and OP_CHECKASSETAUTH).
2494
2569
  "fee" : n, (numeric) transaction fee in XNA
2495
2570
  "modifiedfee" : n, (numeric) transaction fee with fee deltas used for mining priority
2496
2571
  "time" : n, (numeric) local time transaction entered pool in seconds since 1 Jan 1970 GMT
@@ -2502,6 +2577,7 @@ var methods = {
2502
2577
  "ancestorsize" : n, (numeric) virtual transaction size of in-mempool ancestors (including this one)
2503
2578
  "ancestorfees" : n, (numeric) modified fees (see above) of in-mempool ancestors (including this one)
2504
2579
  "poseidonwork" : n, (numeric) reserved Poseidon permutations for this transaction
2580
+ "assetauthwork" : n, (numeric) OP_CHECKASSETAUTH work units of this transaction
2505
2581
  "wtxid" : hash, (string) hash of serialized transaction, including witness data
2506
2582
  "depends" : [ (array) unconfirmed transactions used as inputs for this transaction
2507
2583
  "transactionid", (string) parent transaction id
@@ -2799,7 +2875,7 @@ var methods = {
2799
2875
  Result: (for verbose = true):
2800
2876
  { (json object)
2801
2877
  "transactionid" : { (json object)
2802
- "size" : n, (numeric) virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted.
2878
+ "size" : n, (numeric) virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted. From the NIP-028 height on it also counts the weight of the script work (Poseidon and OP_CHECKASSETAUTH).
2803
2879
  "fee" : n, (numeric) transaction fee in XNA
2804
2880
  "modifiedfee" : n, (numeric) transaction fee with fee deltas used for mining priority
2805
2881
  "time" : n, (numeric) local time transaction entered pool in seconds since 1 Jan 1970 GMT
@@ -2811,6 +2887,7 @@ var methods = {
2811
2887
  "ancestorsize" : n, (numeric) virtual transaction size of in-mempool ancestors (including this one)
2812
2888
  "ancestorfees" : n, (numeric) modified fees (see above) of in-mempool ancestors (including this one)
2813
2889
  "poseidonwork" : n, (numeric) reserved Poseidon permutations for this transaction
2890
+ "assetauthwork" : n, (numeric) OP_CHECKASSETAUTH work units of this transaction
2814
2891
  "wtxid" : hash, (string) hash of serialized transaction, including witness data
2815
2892
  "depends" : [ (array) unconfirmed transactions used as inputs for this transaction
2816
2893
  "transactionid", (string) parent transaction id
@@ -3105,9 +3182,6 @@ var methods = {
3105
3182
  getsilentpaymenttweaksrange: "getsilentpaymenttweaksrange",
3106
3183
  /** getsnapshot "asset_name" block_height
3107
3184
 
3108
- THIS COMMAND IS NOT YET ACTIVE!
3109
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
3110
-
3111
3185
  Returns details for the asset snapshot, at the specified height
3112
3186
 
3113
3187
  Arguments:
@@ -3378,9 +3452,6 @@ var methods = {
3378
3452
  getunconfirmedbalance: "getunconfirmedbalance",
3379
3453
  /** getverifierstring restricted_name
3380
3454
 
3381
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
3382
-
3383
-
3384
3455
  Retrieve the verifier string that belongs to the given restricted asset
3385
3456
 
3386
3457
  Arguments:
@@ -3601,9 +3672,6 @@ var methods = {
3601
3672
  importwallet: "importwallet",
3602
3673
  /** issue "asset_name" qty "( to_address )" "( change_address )" ( units ) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
3603
3674
 
3604
- THIS COMMAND IS NOT YET ACTIVE!
3605
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
3606
-
3607
3675
  Issue an asset, subasset or unique asset.
3608
3676
  Asset name must not conflict with any existing asset.
3609
3677
  Unit as the number of decimals precision for the asset (0 for whole units ("1"), 8 for max precision ("1.00000000")
@@ -3635,9 +3703,6 @@ var methods = {
3635
3703
  issue: "issue",
3636
3704
  /** issuequalifierasset "asset_name" qty "( to_address )" "( change_address )" ( has_ipfs ) "( ipfs_hash )"
3637
3705
 
3638
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
3639
-
3640
-
3641
3706
  Issue an qualifier or sub qualifier asset
3642
3707
  If the '#' character isn't added, it will be added automatically
3643
3708
  Amount is a number between 1 and 10
@@ -3668,9 +3733,6 @@ var methods = {
3668
3733
  issuequalifierasset: "issuequalifierasset",
3669
3734
  /** issuerestrictedasset "asset_name" qty "verifier" "to_address" "( change_address )" (units) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
3670
3735
 
3671
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
3672
-
3673
-
3674
3736
  Issue a restricted asset.
3675
3737
  Restricted asset names must not conflict with any existing restricted asset.
3676
3738
  Restricted assets have units set to 0.
@@ -3700,9 +3762,6 @@ var methods = {
3700
3762
  issuerestrictedasset: "issuerestrictedasset",
3701
3763
  /** issueunique "root_name" [asset_tags] ( [ipfs_hashes] ) "( to_address )" "( change_address )"
3702
3764
 
3703
- THIS COMMAND IS NOT YET ACTIVE!
3704
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
3705
-
3706
3765
  Issue unique asset(s).
3707
3766
  root_name must be an asset you own.
3708
3767
  An asset will be created for each element of asset_tags.
@@ -3726,9 +3785,6 @@ var methods = {
3726
3785
  issueunique: "issueunique",
3727
3786
  /** isvalidverifierstring verifier_string
3728
3787
 
3729
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
3730
-
3731
-
3732
3788
  Checks to see if the given verifier string is valid
3733
3789
 
3734
3790
  Arguments:
@@ -3785,9 +3841,6 @@ var methods = {
3785
3841
  listaccounts: "listaccounts",
3786
3842
  /** listaddressesbyasset "asset_name" (onlytotal) (count) (start)
3787
3843
 
3788
- THIS COMMAND IS NOT YET ACTIVE!
3789
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
3790
-
3791
3844
  Returns a list of all address that own the given asset (with balances)
3792
3845
  Or returns the total size of how many address own the given asset
3793
3846
  Arguments:
@@ -3809,9 +3862,6 @@ var methods = {
3809
3862
  listaddressesbyasset: "listaddressesbyasset",
3810
3863
  /** listaddressesfortag tag_name
3811
3864
 
3812
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
3813
-
3814
-
3815
3865
  List all addresses that have been assigned a given tag
3816
3866
 
3817
3867
  Arguments:
@@ -3853,9 +3903,6 @@ var methods = {
3853
3903
  listaddressgroupings: "listaddressgroupings",
3854
3904
  /** listaddressrestrictions address
3855
3905
 
3856
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
3857
-
3858
-
3859
3906
  List all assets that have frozen this address
3860
3907
 
3861
3908
  Arguments:
@@ -3873,9 +3920,6 @@ var methods = {
3873
3920
  listaddressrestrictions: "listaddressrestrictions",
3874
3921
  /** listassetbalancesbyaddress "address" (onlytotal) (count) (start)
3875
3922
 
3876
- THIS COMMAND IS NOT YET ACTIVE!
3877
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
3878
-
3879
3923
  Returns a list of all asset balances for an address.
3880
3924
 
3881
3925
  Arguments:
@@ -3898,9 +3942,6 @@ var methods = {
3898
3942
  listassetbalancesbyaddress: "listassetbalancesbyaddress",
3899
3943
  /** listassets "( asset )" ( verbose ) ( count ) ( start )
3900
3944
 
3901
- THIS COMMAND IS NOT YET ACTIVE!
3902
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
3903
-
3904
3945
  Returns a list of all assets
3905
3946
 
3906
3947
  This could be a slow/expensive operation as it reads from the database
@@ -3948,9 +3989,6 @@ var methods = {
3948
3989
  listbanned: "listbanned",
3949
3990
  /** listdepinaddresses "asset_name" (count) (start)
3950
3991
 
3951
- THIS COMMAND IS NOT YET ACTIVE!
3952
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
3953
-
3954
3992
  Returns a list of addresses that own the given asset AND have a revealed public key on the blockchain.
3955
3993
  This is useful for DePIN messaging systems where only addresses with revealed public keys can participate.
3956
3994
 
@@ -3977,9 +4015,6 @@ var methods = {
3977
4015
  listdepinaddresses: "listdepinaddresses",
3978
4016
  /** listdepinholders "asset_name"
3979
4017
 
3980
- THIS COMMAND IS NOT YET ACTIVE!
3981
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
3982
-
3983
4018
  Returns all addresses holding a DEPIN asset with validity status
3984
4019
 
3985
4020
  DEPIN assets are soulbound (non-transferable except by owner) and can be frozen/revoked
@@ -4004,9 +4039,6 @@ var methods = {
4004
4039
  listdepinholders: "listdepinholders",
4005
4040
  /** listglobalrestrictions
4006
4041
 
4007
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
4008
-
4009
-
4010
4042
  List all global restricted assets
4011
4043
 
4012
4044
  Result:
@@ -4053,9 +4085,6 @@ var methods = {
4053
4085
  listlockunspent: "listlockunspent",
4054
4086
  /** listmyassets "( asset )" ( verbose ) ( count ) ( start ) (confs)
4055
4087
 
4056
- THIS COMMAND IS NOT YET ACTIVE!
4057
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
4058
-
4059
4088
  Returns a list of all asset that are owned by this wallet
4060
4089
 
4061
4090
  Arguments:
@@ -4260,9 +4289,6 @@ var methods = {
4260
4289
  listsnapshotrequests: "listsnapshotrequests",
4261
4290
  /** listtagsforaddress address
4262
4291
 
4263
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
4264
-
4265
-
4266
4292
  List all tags assigned to an address
4267
4293
 
4268
4294
  Arguments:
@@ -4477,9 +4503,6 @@ var methods = {
4477
4503
  move: "move",
4478
4504
  /** opendepin "asset_name" ("change_address")
4479
4505
 
4480
- THIS COMMAND IS NOT YET ACTIVE!
4481
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
4482
-
4483
4506
  Open transfers of a DEPIN asset (owner only): while open, holders can move
4484
4507
  the asset like a regular asset without the owner token. Transfers from addresses
4485
4508
  frozen by the owner or self-revoked stay rejected. Valid from the closed state;
@@ -4577,9 +4600,6 @@ var methods = {
4577
4600
  pruneblockchain: "pruneblockchain",
4578
4601
  /** purgesnapshot "asset_name" block_height
4579
4602
 
4580
- THIS COMMAND IS NOT YET ACTIVE!
4581
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
4582
-
4583
4603
  Removes details for the asset snapshot, at the specified height
4584
4604
 
4585
4605
  Arguments:
@@ -4599,9 +4619,6 @@ var methods = {
4599
4619
  purgesnapshot: "purgesnapshot",
4600
4620
  /** reissue "asset_name" qty "to_address" "change_address" ( reissuable ) ( new_units) "( new_ipfs )"
4601
4621
 
4602
- THIS COMMAND IS NOT YET ACTIVE!
4603
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
4604
-
4605
4622
  Reissues a quantity of an asset to an owned address if you own the Owner Token
4606
4623
  Can change the reissuable flag during reissuance
4607
4624
  Can change the ipfs hash during reissuance
@@ -4624,9 +4641,6 @@ var methods = {
4624
4641
  reissue: "reissue",
4625
4642
  /** reissuerestrictedasset "asset_name" qty to_address ( change_verifier ) ( "new_verifier" ) "( change_address )" ( new_units ) ( reissuable ) "( new_ipfs )"
4626
4643
 
4627
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
4628
-
4629
-
4630
4644
  Reissue an already created restricted asset
4631
4645
  Reissuable is true/false for whether additional asset quantity can be created and if the verifier string can be changed
4632
4646
 
@@ -4668,9 +4682,6 @@ var methods = {
4668
4682
  removeprunedfunds: "removeprunedfunds",
4669
4683
  /** removetagfromaddress tag_name to_address (change_address) (asset_data)
4670
4684
 
4671
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
4672
-
4673
-
4674
4685
  Remove a tag from a address
4675
4686
 
4676
4687
  Arguments:
@@ -4800,9 +4811,6 @@ var methods = {
4800
4811
  savemempool: "savemempool",
4801
4812
  /** sealdepin "asset_name" ("change_address")
4802
4813
 
4803
- THIS COMMAND IS NOT YET ACTIVE!
4804
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
4805
-
4806
4814
  Seal a DEPIN asset (owner only). WARNING: THIS IS IRREVERSIBLE.
4807
4815
  A sealed asset is soulbound like a closed one, but no transfer state operation
4808
4816
  (open, close or seal) is ever accepted for it again. Only valid from the closed
@@ -4822,9 +4830,6 @@ var methods = {
4822
4830
  sealdepin: "sealdepin",
4823
4831
  /** selfrevokedepin "asset_name"
4824
4832
 
4825
- THIS COMMAND IS NOT YET ACTIVE!
4826
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
4827
-
4828
4833
  Self-revoke a DEPIN asset held in this wallet
4829
4834
 
4830
4835
  Builds a self-transfer: one UTXO of the asset is spent and returned to its own
@@ -4966,9 +4971,6 @@ var methods = {
4966
4971
  sendmany: "sendmany",
4967
4972
  /** sendmessage "channel_name" "ipfs_hash" (expire_time)
4968
4973
 
4969
- THIS COMMAND IS NOT YET ACTIVE!
4970
- https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
4971
-
4972
4974
  Creates and broadcasts a message transaction to the network for a channel this wallet owns
4973
4975
  Arguments:
4974
4976
  1. "channel_name" (string, required) Name of the channel that you want to send a message with (message channel, administrator asset), if a non administrator asset name is given, the administrator '!' will be added to it
@@ -5267,9 +5269,6 @@ var methods = {
5267
5269
  submitblock: "submitblock",
5268
5270
  /** subscribetochannel
5269
5271
 
5270
- THIS COMMAND IS NOT YET ACTIVE!
5271
- https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
5272
-
5273
5272
  Subscribe to a certain message channel
5274
5273
 
5275
5274
  Arguments:
@@ -5303,6 +5302,9 @@ var methods = {
5303
5302
  {
5304
5303
  "txid" (string) The transaction hash in hex
5305
5304
  "allowed" (boolean) If the mempool allows this tx to be inserted
5305
+ "vsize" (numeric) Virtual size used for the fee, with the weight of the script work
5306
+ from the NIP-028 height on. Only present when it is final: from that height,
5307
+ once the scripts ran (also when the fee is short)
5306
5308
  "reject-reason" (string) Rejection string (only present when 'allowed' is false)
5307
5309
  }
5308
5310
  ]
@@ -5323,9 +5325,6 @@ var methods = {
5323
5325
  testmempoolaccept: "testmempoolaccept",
5324
5326
  /** transfer "asset_name" qty "to_address" "message" expire_time "change_address" "asset_change_address"
5325
5327
 
5326
- THIS COMMAND IS NOT YET ACTIVE!
5327
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
5328
-
5329
5328
  Transfers a quantity of an owned asset to a given address
5330
5329
  Arguments:
5331
5330
  1. "asset_name" (string, required) name of asset
@@ -5348,9 +5347,6 @@ var methods = {
5348
5347
  transfer: "transfer",
5349
5348
  /** transferfromaddress "asset_name" "from_address" qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
5350
5349
 
5351
- THIS COMMAND IS NOT YET ACTIVE!
5352
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
5353
-
5354
5350
  Transfer a quantity of an owned asset in a specific address to a given address
5355
5351
  Arguments:
5356
5352
  1. "asset_name" (string, required) name of asset
@@ -5374,9 +5370,6 @@ var methods = {
5374
5370
  transferfromaddress: "transferfromaddress",
5375
5371
  /** transferfromaddresses "asset_name" ["from_addresses"] qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
5376
5372
 
5377
- THIS COMMAND IS NOT YET ACTIVE!
5378
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
5379
-
5380
5373
  Transfer a quantity of an owned asset in specific address(es) to a given address
5381
5374
  Arguments:
5382
5375
  1. "asset_name" (string, required) name of asset
@@ -5400,9 +5393,6 @@ var methods = {
5400
5393
  transferfromaddresses: "transferfromaddresses",
5401
5394
  /** transferqualifier "qualifier_name" qty "to_address" ("change_address") ("message") (expire_time)
5402
5395
 
5403
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
5404
-
5405
-
5406
5396
  Transfer a qualifier asset owned by this wallet to the given address
5407
5397
  Arguments:
5408
5398
  1. "qualifier_name" (string, required) name of qualifier asset
@@ -5424,9 +5414,6 @@ var methods = {
5424
5414
  transferqualifier: "transferqualifier",
5425
5415
  /** unfreezeaddress asset_name address (change_address) (asset_data)
5426
5416
 
5427
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
5428
-
5429
-
5430
5417
  Unfreeze an address from transferring a restricted asset
5431
5418
 
5432
5419
  Arguments:
@@ -5447,9 +5434,6 @@ var methods = {
5447
5434
  unfreezeaddress: "unfreezeaddress",
5448
5435
  /** unfreezedepin "asset_name" "address" ("change_address")
5449
5436
 
5450
- THIS COMMAND IS NOT YET ACTIVE!
5451
- https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
5452
-
5453
5437
  Unfreeze a DEPIN asset for a specific address (owner only)
5454
5438
 
5455
5439
  The asset will be marked as valid again
@@ -5471,9 +5455,6 @@ var methods = {
5471
5455
  unfreezedepin: "unfreezedepin",
5472
5456
  /** unfreezerestrictedasset asset_name (change_address) (asset_data)
5473
5457
 
5474
- THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
5475
-
5476
-
5477
5458
  Unfreeze all trading for a specific restricted asset
5478
5459
 
5479
5460
  Arguments:
@@ -5493,9 +5474,6 @@ var methods = {
5493
5474
  unfreezerestrictedasset: "unfreezerestrictedasset",
5494
5475
  /** unsubscribefromchannel
5495
5476
 
5496
- THIS COMMAND IS NOT YET ACTIVE!
5497
- https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
5498
-
5499
5477
  Unsubscribe from a certain message channel
5500
5478
 
5501
5479
  Arguments:
@@ -5537,10 +5515,6 @@ var methods = {
5537
5515
  "ismine" : true|false, (boolean) If the address is yours or not
5538
5516
  "iswatchonly" : true|false, (boolean) If the address is watchonly
5539
5517
  "isscript" : true|false, (boolean) If the key is a script
5540
- "isauthscript" : true, (boolean, optional) Only for AuthScript witness addresses (witness v1, v2 or v3)
5541
- "witness_version" : n, (numeric, optional) AuthScript witness version: 1 (generic AuthScript, nc1p.../tnc1p...), 2 (strict post-quantum, pq1z.../tpq1z...) or 3 (strict ECDSA, nq1r.../tnq1r...)
5542
- "family" : "family", (string, optional) AuthScript family: "authscript" (v1; the commitment does not reveal the authentication type), "pq" (v2) or "ecdsa" (v3)
5543
- "commitment" : "hex", (string, optional) Strict addresses (v2/v3) only: the 32-byte AuthScript commitment as a uint256 hex string (byte-reversed with respect to the scriptPubKey)
5544
5518
  "script" : "type" (string, optional) The output script type. Possible types: nonstandard, pubkey, pubkeyhash, scripthash, multisig, nulldata, witness_v0_keyhash, witness_v0_scripthash
5545
5519
  "hex" : "hex", (string, optional) The redeemscript for the p2sh address
5546
5520
  "addresses" (string, optional) Array of addresses associated with the known redeemscript
@@ -5558,8 +5532,8 @@ var methods = {
5558
5532
  }
5559
5533
 
5560
5534
  Examples:
5561
- > neurai-cli validateaddress "NLhdtwjgrcEkRqjJZkRY4sjhkJ93EytLeE"
5562
- > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "validateaddress", "params": ["NLhdtwjgrcEkRqjJZkRY4sjhkJ93EytLeE"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
5535
+ > neurai-cli validateaddress "1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"
5536
+ > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "validateaddress", "params": ["1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
5563
5537
  **/
5564
5538
  validateaddress: "validateaddress",
5565
5539
  /** verifychain ( checklevel nblocks )
@@ -5686,9 +5660,6 @@ var methods = {
5686
5660
  verifytxoutproof: "verifytxoutproof",
5687
5661
  /** viewallmessagechannels
5688
5662
 
5689
- THIS COMMAND IS NOT YET ACTIVE!
5690
- https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
5691
-
5692
5663
  View all message channels the wallet is subscribed to
5693
5664
 
5694
5665
  Result:[
@@ -5703,9 +5674,6 @@ var methods = {
5703
5674
  viewallmessagechannels: "viewallmessagechannels",
5704
5675
  /** viewallmessages
5705
5676
 
5706
- THIS COMMAND IS NOT YET ACTIVE!
5707
- https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
5708
-
5709
5677
  View all messages that the wallet contains
5710
5678
 
5711
5679
  Result:
@@ -5724,9 +5692,6 @@ var methods = {
5724
5692
  viewallmessages: "viewallmessages",
5725
5693
  /** viewmyrestrictedaddresses
5726
5694
 
5727
- THIS COMMAND IS NOT YET ACTIVE!
5728
- https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
5729
-
5730
5695
  View all addresses this wallet owns that have been restricted
5731
5696
 
5732
5697
  Result:
@@ -5744,9 +5709,6 @@ var methods = {
5744
5709
  viewmyrestrictedaddresses: "viewmyrestrictedaddresses",
5745
5710
  /** viewmytaggedaddresses
5746
5711
 
5747
- THIS COMMAND IS NOT YET ACTIVE!
5748
- https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
5749
-
5750
5712
  View all addresses this wallet owns that have been tagged
5751
5713
 
5752
5714
  Result:
@@ -5765,7 +5727,7 @@ var methods = {
5765
5727
  };
5766
5728
 
5767
5729
  // depin.ts
5768
- var DEPIN_RPC_PROTOCOL = 5;
5730
+ var DEPIN_RPC_PROTOCOL = 6;
5769
5731
  var DEPIN_REMOTE_METHODS = Object.freeze([
5770
5732
  "depingetmsginfo",
5771
5733
  "depinpoolstats",
@@ -5784,10 +5746,10 @@ function isDepinRemoteMethod(method) {
5784
5746
  function getDepinRequest(params) {
5785
5747
  const request = Array.isArray(params) && params.length === 1 ? params[0] : params && typeof params === "object" && Object.keys(params).length === 1 ? params.request : null;
5786
5748
  const protocol = request?.protocol;
5787
- if (!request || typeof request !== "object" || Array.isArray(request) || !(protocol === 5 || protocol?.isLosslessNumber === true && protocol.value === "5" && typeof protocol.toString === "function" && protocol.toString() === "5")) {
5788
- throw Object.assign(new Error("DePIN protocol 5 requires one request object"), {
5749
+ if (!request || typeof request !== "object" || Array.isArray(request) || !(protocol === 6 || protocol?.isLosslessNumber === true && protocol.value === "6" && typeof protocol.toString === "function" && protocol.toString() === "6")) {
5750
+ throw Object.assign(new Error("DePIN protocol 6 requires one request object"), {
5789
5751
  code: -8,
5790
- data: { depin_error: "unsupported_protocol", expected_protocol: 5 }
5752
+ data: { depin_error: "unsupported_protocol", expected_protocol: 6 }
5791
5753
  });
5792
5754
  }
5793
5755
  return request;
@@ -5802,9 +5764,9 @@ function createDepinNodeRouter(healthyNodes, randomId) {
5802
5764
  if (!promise) {
5803
5765
  discoveredAt.set(node, Date.now());
5804
5766
  promise = (async () => {
5805
- const reply = await node.rpc("depingetmsginfo", [{ protocol: 5, request_id: randomId(), timestamp_ms: Date.now() }]);
5806
- if (reply?.protocol !== 5 || typeof reply.network !== "string" || typeof reply.pool_pubkey !== "string" || typeof reply.pool_root !== "string" || typeof reply.instance_id !== "string")
5807
- throw new Error("Node has no RPC 5 pool identity");
5767
+ const reply = await node.rpc("depingetmsginfo", [{ protocol: 6, request_id: randomId(), timestamp_ms: Date.now() }]);
5768
+ if (reply?.protocol !== 6 || typeof reply.network !== "string" || typeof reply.pool_pubkey !== "string" || typeof reply.pool_root !== "string" || typeof reply.instance_id !== "string")
5769
+ throw new Error("Node has no RPC 6 pool identity");
5808
5770
  identities.set(node, reply);
5809
5771
  })().finally(() => pending.delete(node));
5810
5772
  pending.set(node, promise);
@@ -5828,7 +5790,7 @@ function createDepinNodeRouter(healthyNodes, randomId) {
5828
5790
  if (!found)
5829
5791
  throw Object.assign(new Error("DePIN service_mismatch: target pool or instance is unavailable; refresh bootstrap"), {
5830
5792
  code: -32600,
5831
- data: { depin_error: "service_mismatch", expected_protocol: 5 }
5793
+ data: { depin_error: "service_mismatch", expected_protocol: 6 }
5832
5794
  });
5833
5795
  return found;
5834
5796
  };