Skip to main content

Questions tagged [golang]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Cant' verify sign with go-schnorrkel [duplicate]

I'm trying sign raw message from polkadot.js.org and verifing it from golang code. I've tried the following: signature, err := schnorrkel.NewSignatureFromHex(signatureHex) transcript := schnorrkel....
Alexander's user avatar
2 votes
1 answer
49 views

Is there a simple MHT (Merkel Hash Tree) in-place algorithm?

I want to write a low memory usage algorithm to calculate MHT
Jiuqu's user avatar
  • 23
2 votes
0 answers
29 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 ...
M.abdelrhman's user avatar
1 vote
1 answer
81 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.
Kumar's user avatar
  • 135
2 votes
1 answer
256 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 ...
Kumar's user avatar
  • 135
0 votes
2 answers
97 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 ...
Andriy Vasyltsiv's user avatar
1 vote
1 answer
60 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....
18dew's user avatar
  • 31
0 votes
1 answer
59 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 ...
mpn's user avatar
  • 1
3 votes
0 answers
148 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 ...
jvdp's user avatar
  • 31
7 votes
2 answers
173 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 ...
q9f's user avatar
  • 307