Questions tagged [golang]
The golang tag has no usage guidance.
9
questions
2
votes
1
answer
43
views
Is there a simple MHT (Merkel Hash Tree) in-place algorithm?
I want to write a low memory usage algorithm to calculate MHT
2
votes
0
answers
27
views
Polkadot websocket API doesn't emits changes in stats like system_health or system_syncState
using the following code ,
package main
import (
"fmt"
"github.com/gorilla/websocket"
"log"
)
type Message struct {
Id int `json:"id"`
Jsonrpc ...
1
vote
1
answer
69
views
How to encode and decode HexAccountSting to AccountID in golang
How can we encode the accountID '5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y'
to Hex string using golang for posting in RPC.
2
votes
1
answer
188
views
Runtime error: Execution failed: Runtime panicked: Bad input data provided to validate_transaction: Invalid length prefix
Getting Error : "Verification Error: Runtime error: Execution failed: Runtime panicked: Bad input data provided to validate_transaction: Invalid length prefix" While calling the custom RPC ...
0
votes
2
answers
86
views
incorrect balance response
I've created test address in westend network. Topped up it using faucet. https://westend.subscan.io/account/5FpS4PkRzLmJZcwvJM6jxPU3N3481nbnTe6nzFwwQUVvu9LF?tab=transfer. In explorer I see 1WND ...
1
vote
1
answer
53
views
How to get the contract address for a events
I am using
github.com/centrifuge/go-substrate-rpc-client
And able to get list of events from each block and also able to filter it out but is there a way to identify which contract triggered the event....
0
votes
1
answer
56
views
GSRPC: Check transaction failed?
Context: We are using GSRPC for interacting with a Polkadot Node. We are sending transactions using SubmitAndWatchExtrinsic.
Question: How can I detect if the transaction failed?
Note: I am aware ...
3
votes
0
answers
124
views
Retrieving all validator accounts with the Go Substrate RPC Client
My goal is to get a list of the stash account addresses of all validators using the golang substrate client.
Context
My approach so far is to take inspiration from the polkadotjs application and other ...
7
votes
2
answers
159
views
What is Gossamer and how does it compare to Substrate?
Gossamer is a Go-lang implementation of the Polkadot host. What does this mean, and how does this compare to Substrate?
Could Gossamer be the Go-variant of Substrate for developers exploring ...