moonramp icon indicating copy to clipboard operation
moonramp copied to clipboard

Support BCH full node JsonRpc gateway

Open FistedByDionysus opened this issue 3 years ago • 3 comments

FistedByDionysus avatar Aug 04 '22 23:08 FistedByDionysus

Heads up, BCH will soon have proper native UTXO tokens (dual-currency outputs, BCH + token payload)

Should be activated in May '23, early testnet4 already running: https://t.me/cashtoken_devs/2031

https://github.com/bitjson/cashtokens

A60AB5450353F40E avatar Sep 05 '22 12:09 A60AB5450353F40E

@A60AB5450353F40E Thanks for the heads up. Took a quick look over at https://gitlab.com/bitcoin-cash-node/bitcoin-cash-node. Have any nodes started documenting this behavior in the JsonRPC specs?

FistedByDionysus avatar Sep 05 '22 19:09 FistedByDionysus

It's still like early alpha, still many TODOs, expect an "official" node release (v25.0.0) in November.

testnet4 has been forked using a build off this MR: https://gitlab.com/bitcoin-cash-node/bitcoin-cash-node/-/merge_requests/1600 so people eager to experiment with and test new features can do so

token-related jsonRPCs was added literally yesterday

From the help for createrawtransaction:

 {                             (json object)
         "address": {                (json object, required) A key-value pair. The key (string) is the Bitcoin Cash address, the value is a JSON object
           "amount": amount,         (numeric or string, required) The amount in BCH
           "tokenData": {            (json object, optional) Optional CashToken data to add to this output
             "categoryId": "hex",    (string, required) The token id
             "amount": n,            (numeric, optional) The token fungible amount
             "bitfield": "hex",      (string, optional) The token bitfield
             "commitment": "hex",    (string, optional) The token NFT commitment
           },
         },
       },

A60AB5450353F40E avatar Sep 06 '22 11:09 A60AB5450353F40E