Code Monkey home page Code Monkey logo

Comments (5)

deckb avatar deckb commented on July 30, 2024
arguments = {
            "name": "eos123eos123"
        }
payload = {
        "account": "eosabciodice",
        "name": "luckybox",
        "authorization": [{
            "actor": "eos123eos123",
            "permission": "active",
        }],
    }

See the push_transaction.py example in the example directory for how to push the transaction.

https://github.com/eosnewyork/eospy/blob/master/examples/push_transaction.py

from eospy.

zwca avatar zwca commented on July 30, 2024

thanks!
I just followed the code above and didn't have any results.

from eospy.

zwca avatar zwca commented on July 30, 2024

import eospy.cleos
import os

this url is to a testnet that may or may not be working.

We suggest using a different testnet such as kylin or jungle

ce = eospy.cleos.Cleos(url='https://api.eosbeijing.one')
key = "5K1WPz234234342TtB8A2342TnKcEgC"
arguments = {
"name": "eos123eos123"
}
payload = {
"account": "eosabciodice",
"name": "luckybox",
"authorization": [{
"actor": "eos123eos123",
"permission": "active",
}],
}
#Converting payload to binary
data=ce.abi_json_to_bin(payload['account'],payload['name'],arguments)
#Inserting payload binary form as "data" field in original payload
payload['data']=data['binargs']
#final transaction formed
trx = {"actions": [payload]}

This is my code,Key is false, please ignore

from eospy.

deckb avatar deckb commented on July 30, 2024

Is that all of the code? It doesn't look like you are pushing the transaction. You should have something like at the end.

resp = ce.push_transaction(trx, key, broadcast=True)

from eospy.

zwca avatar zwca commented on July 30, 2024

Thank you for your answer! thanks

from eospy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.