Comments (6)
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.
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.
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.
mind if I close this ?
from eos-go.
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.
@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)
- run demo code ,an error happend when download streamingfast HOT 1
- Got an error when trying to import PVT_K1 format private key HOT 17
- how to push actions with raw json data? HOT 2
- {"code":500,"message":"Internal Service Error","error":{"code":3050003,"name":"eosio_assert_message_exception","what":"eosio_assert_message assertion failure","details":[{"message":"assertion failure with message: Cannot wear this item at the moment","file":"cf_system.cpp","line_number":14,"method":"eosio_assert"}]}} HOT 1
- get_actions result unmarsha into Go struct ActionsResp error
- The "next_key" field is missing in the GetTable rows API response HOT 2
- How to implement custom actions ,How to get serializetransaction,(PVT_K1 )Unable to verify, output public key does not match HOT 1
- (PVT_K1 )Unable to verify, output public key does not match HOT 5
- How to get serializetransaction?eosjs: api.serializeTransaction(sTransaction) HOT 1
- How to implement custom actions? HOT 1
- How to use the symbol is wax or other, and there are digits
- How to be a maintainer with merge permission HOT 3
- Pack action data issue after compiling contract with the Leap CDT 3.0.1 HOT 5
- Update `/v1/chain/push_transaction` expected response structure HOT 3
- Transaction Signing Issue with Custom Variant Definition HOT 8
- ecc.PublicKey is not string HOT 6
- /get_block does not get to the previous blocks HOT 2
- Calling a smart contract action HOT 2
- ecc privatekey signature error HOT 2
- There should be a powerup update for calculations. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eos-go.