piston-cli
piston-cli copied to clipboard
STM prefix instead of GLS, when import key from GOLOS
trafficstars
Problem with keys prefix. After import private keys from Golos, they have a prefix "STM" instead of "GLS". Of course, any broadcasting does not works for Golos.
grapheneapi.graphenewsrpc.RPCError: 10 assert_exception: Assert Exception base58str.substr( 0, prefix_len ) == prefix: {"base58str":"STM77wx6Remi2hiG8zVaDAfJJGcWWkXCQjooYeqUXNqMcy3ceEWL5"} th_a types.cpp:27 public_key_type
you need to switch the node to golos and reimport the private key:
piston set node wss://ws.golos.io
piston addkey
Then it will have the right prefix. The prefix is defined from the connection made to the api node.