Git Product home page Git Product logo

Comments (6)

abourget avatar abourget commented on July 17, 2024

You can sign transactions with api.SignAndPushActions.. that's the most top-level function to sign things.. but you do need a little bit of setup, which is documented around.

You can take a look at github.com/eoscanada/eosc for a command-line tool to interact.. it's also a great repository of example code for eos-go.

Does this help ?

from eos-go.

prateektiwari7 avatar prateektiwari7 commented on July 17, 2024

Hi ,

Thanks for sharing this , is it working on nodeos ?Because I read a article where they said about Ram Prices and Cpu Cycles to do the transaction over BlockProducers

I am not looking for nodeos , I am looking for real block producing steps. Then I will create a block over the Eos BlockChain by Block producers IPs or there config file .

from eos-go.

abourget avatar abourget commented on July 17, 2024

This lib cannot create blocks.. that would require a full blockchain implementation which this lib is not.

It can sign blocks produced by nodeos. See https://github.com/eoscanada/eos-blocksigner

from eos-go.

abourget avatar abourget commented on July 17, 2024

mind if I close this ?

from eos-go.

prateektiwari7 avatar prateektiwari7 commented on July 17, 2024

hi @abourget ,

No still I didnt find any EOS BlockProducers url to mined the block by using any trail ram Price and cpu cycles .

I think you didnt replied me what i Asked you .

from eos-go.

maoueh avatar maoueh commented on July 17, 2024

@prateektiwari7 If you are looking for an API to retrieve block data from the EOS blockchain. You can use https://mainnet.eoscanada.com as the API url. Here also a sample Go code that's does block information retrieval:

package main

import (
	"encoding/json"
	"fmt"

	"github.com/eoscanada/eos-go"
)

func main() {
	api := eos.New("https://mainnet.eoscanada.com")
	api.Debug = true

	resp, err := api.GetBlockByNum(7897873)
	if err != nil {
		fmt.Printf("Error occurred: %s", err)
		return
	}

	data, err := json.Marshal(resp)
	if err != nil {
		fmt.Printf("Error occurred while marshalling to JSON: %s", err)
		return
	}

	fmt.Printf("Response: %s", string(data))
}

If you looking to produce block yourself, using the nodeos binary, this is not the right channel for information. Check instead the EOS repo itself: https://github.com/EOSIO/eos.

There is also eos-bios that can be used to launch a pre-compiled nodeos binary through Docker and have a single node blockchain on your own machine.

Configuring it correctly to become part of the mainnet EOS network is beyond the scope of this library.

Closing issue, feel free to continue the discussion however.

from eos-go.

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.