- run
npm i
Execute
npm run run:server
docker build -t nodle-rosetta .
docker run -p 8080:8080 -e NODE_ADDRESS=ws://3.217.156.114:9944 nodle-rosetta
from './rosetta-cli' run
./rosetta-cli "command" --configuration-file ./config.json
Where 'command' is one of rosetta-cli available commands:
- check:construction
- check:data
- view:balance
- view:block
- view:networks
More info at https://github.com/coinbase/rosetta-cli#usage
To broadcast a transaction, make POST requests to following endpoints:
- construction/metadata - to get user's relevant metadata
- construction/payloads - make a pyalod with retrieved metadata
- construction/combine - insert from 'construction/payloads' response:
- unsigned_transaction
- "hex_bytes" from "payloads[0]" - this bytes goes to signatures[0].signing_payload.hex_bytes
- make a signature for this bytes (0x
${bytes}
) (here for example: https://nodleprotocol.io/?rpc=wss%3A%2F%2F3.217.156.114#/signing ) - resulting signature pass to signatures[0].hex_bytes (without 0х)
- execute 'construction/combine'
- construction/submit - submit signed transaction from 'construction/combine'