Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EOS Block #12

Closed
prateektiwari7 opened this issue Jul 2, 2018 · 6 comments
Closed

EOS Block #12

prateektiwari7 opened this issue Jul 2, 2018 · 6 comments

Comments

@prateektiwari7
Copy link

Hi

How can I use Original(not nodeos) EOS block Producer Apis to do transactions . Is there any link ?
how can i use eoscanda/Eos-go library to produce original Block on EOS chain .As there is no docs are out from any block producer to use there net to do transaction over EOS chain .

@abourget
Copy link
Contributor

abourget commented Jul 6, 2018

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 ?

@prateektiwari7
Copy link
Author

prateektiwari7 commented Jul 14, 2018

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 .

@abourget
Copy link
Contributor

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

@abourget
Copy link
Contributor

mind if I close this ?

@prateektiwari7
Copy link
Author

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 .

@maoueh
Copy link
Contributor

maoueh commented Aug 29, 2018

@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.

@maoueh maoueh closed this as completed Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants