def sign_trx(): act = ['hello', 'sayhello', b'jack', {'hello': 'active'}] r = eosapi.gen_transaction([act]) r = eosapi.sign_transaction( r, '5JvmV56XWvVNfnxBncgquTQ5MAyDcD6cbrRoPk1yocaPqwwDYni') r = eosapi.sign_transaction( r, '5JmoVeCr29vcipggfxBywFmQqsz4zpiazzXUoGDDo5iRPab1GFf') print(r)
def sign_trx(): act = [N('hello'), N('sayhello'), [[N('hello'), N('active')]], b'jack'] r = eosapi.gen_transaction([act]) print(r) r = eosapi.sign_transaction(r, '5JbDP55GXN7MLcNYKCnJtfKi9aD2HvHAdY7g8m67zFTAFkY1uBB') r = eosapi.JsonStruct(r) print(r)
def push_sign_trx(): act = [N('hello'), N('sayhello'), [[N('hello'), N('active')]], b'jack'] r = eosapi.gen_transaction([act]) print(json.dumps(r, sort_keys=False, indent=4, separators=(',', ': '))) r = eosapi.sign_transaction(r, '5JbDP55GXN7MLcNYKCnJtfKi9aD2HvHAdY7g8m67zFTAFkY1uBB') eosapi.push_raw_transaction(r) eosapi.produce_block()