Questions tagged [substrate-node]
The substrate-node tag has no usage guidance.
122
questions
0
votes
1
answer
27
views
How to hold nft price until all nft are sold?
We have created nft-marketplace in substrate, 1 collection has 100 NFT. We only need to send all the amount of nft only after all nft are sold and until we wan't to hold the amount somewhere. How to ...
0
votes
1
answer
30
views
How to test parachain after slots acquired?
I have acquired parachain in rococo test chain with parachain 4,285.
After that I try to start the collator node using following command as shown in Acquire a testnet slots tutorial,
./target/release/...
3
votes
1
answer
59
views
Get the raw hex from substrate
I'm trying to get the raw value of the transaction without using the websocket.
For now I'm using a WebSocket for my application and I am in the process of removing it, I could find everything I ...
1
vote
1
answer
27
views
How to write integration test cases for ink?
I am new to substrate and ink, while following ink documentation I got to the testing part and want to write integration tests. Can someone help me with it or point to the documentation or resources ...
2
votes
1
answer
36
views
Benchmarking an extrinsic that validates a signature
I have an extrinsic in one of my pallets that looks validates a signature over a message, which is separate from the actual extrinsic being submitted.
The code can be simplified to look like the below
...
1
vote
1
answer
39
views
What happens to legacy contracts given breaking changes to cargo-contract v3?
In the cargo contract v3 release, breaking changes were made for how contracts are built (cdylib -> bin) and specifying no_main.
I've found that cargo contract v2 produces contracts compatible with ...
1
vote
1
answer
46
views
What after slot assigned?
We now assigned slots here.
and I can see my paraId in Network->Parachains->Overview section.
I also started the collator node but not blocks are producing. this is log after running collator ...
0
votes
1
answer
12
views
Do you know any ready-to-start substrate based blockchain that I can take as fundament for my blockchain?
Is there any ready open blockchain to start? I need the one with staking and with opportunity to make new tokens. To send tokens with other users in this blockchain. Or maybe someting close to this.
I ...
0
votes
2
answers
35
views
A blockchain to read events from another blockchain
I'm working on an idea where I would want my substrate-based blockchain (let's name it Blockchain A) to read events from another substrate-based blockchain (let's call it Blockchain B) and perform ...
0
votes
1
answer
10
views
Token Symbol doesn't change in extend-parachain-template
I have changed properties of token here github repo, but symbol of token doesn't change while running node in dev mode ./target/release/parachain-template-node --dev. Is this because of parachain?
1
vote
1
answer
28
views
I want to implement NFT purchasing function in the marketplace based on a substrate node
Now I am trying to implement NFT purchasing functionality based on a substrate node.
I got this function from the polkadot js documentation.
buyItem(collection: u32, item: u32, bid_price: u128)
...
0
votes
2
answers
129
views
unexpected argument '--ws-port' found
I am preparing local relay chain from this tutorial. Configure polkadot and added raw-local-chainspec.json file but while running first validator, it gives this error.
ganesholi@Ganeshs-MacBook-Air ...
0
votes
1
answer
72
views
Can't configure the test network settings
I am trying to Configure the test network settings. I am following this tutorial.
This is my config.toml file
[relaychain]
default_command = "./binaries/polkadot/polkadot"
default_args = [&...
2
votes
1
answer
36
views
Configure test network file
I am trying Simulate Parachain tutorial, in configure the test network settings, there is step to create a configuration file config.toml. Can we create that file in any directory or should we need to ...
0
votes
0
answers
25
views
Not able to retrieve value for given key when new key-value pair inserted
Crate used:- https://github.com/paritytech/trie
#[test]
fn test_two_assets_memory_db() {
let mut memdb = MemoryDB::<BlakeTwo256>::new(&[0u8]);
let mut root = H256::zero();
let ...
2
votes
1
answer
68
views
Steps to connect chain to rococo test
I have chain built using substrate-node-template. Now what are the steps to connect my chain to Rococo test network?
2
votes
1
answer
116
views
how to solve the sys error in substrate polkadot branch (polkadot-v0.9.43)
I have been integrating EVM(43 version) in 43 version of substrate. while adding files to runtime module i am getting sys error while building it .I want to know how to solve
this error
1
vote
1
answer
53
views
I got this error while building a blockchain
Encountered the following error while simulating a network when running the command:
./target/release/node-template purge-chain --base-path /tmp/alice
--chain local
I got error indicating
/tmp/...
1
vote
1
answer
25
views
Not able to connect via archive node to my network
I am trying to connect a new peer with archive-node instead of validator-node but I am unable to enter the network it shows peers(0), but as soon as I give --validator tag the new peer start syncing. ...
1
vote
2
answers
51
views
How to add funds to Treasury?
Someone please point me how to add funds in Treasury?
0
votes
1
answer
15
views
proposal not funded in pallet_treasury
I am using pallet_treasury. I have created proposal and verified it. I have set SpendPeriod in min. Even after 1 min proposal doesn't get funded. What I am missing here? Why it's not working? Someone ...
0
votes
2
answers
33
views
Difference between EitherOfDiverse vs EnsureSigned inside pallet config?
When using this one, I get BadOrigin as in screenshot,
type ApproveOrigin = EitherOfDiverse<
EnsureRoot<AccountId>,
pallet_collective::EnsureProportionAtLeast<AccountId, ...
1
vote
1
answer
27
views
Understanding the persistence of historical block events despite automatic removal by the System pallet in Substrate
In the Substrate documentation, I came across a statement stating that at the beginning of a new block, the System pallet automatically removes all events that were stored from the previous block. ...
0
votes
1
answer
53
views
I got this error while doing simulating a network when building a blockchain
I encountered the following error while simulating a network when running the command:
./target/release/node-template purge-chain --base-path /tmp/alice --chain local
i got error indicating /tmp/...
1
vote
1
answer
54
views
How to properly get KeyPair from the LocalKeystore
Background
I am currently working on a gadget for substrate that runs another software embedded within the node itself. This is similar to the beefy gadget. However, the software I'm using was ...
0
votes
1
answer
34
views
Subscribe to storage map Entries?
On our substrate node using a storage double map. We are trying to subscribe to an entries query.
something like
const unsub = await api.query.system.balances.entries(ADDR, (res) => {
console....
1
vote
0
answers
33
views
What does this log message from a collator node mean?
What does this log message from a collator node mean? Is it bad, should it be fixed or ignored?
Error: Service(Client(Backend("Invalid argument: Column families not opened: col12, col11, col10, ...
0
votes
0
answers
68
views
how to add validator in network using subxt
I am using subxt library . I have downloaded metadata from chain using this url **wss://rpc.polkadot.io:443 ** . I want to know how can i add validator to the chain using subxt
library .
0
votes
1
answer
27
views
"TooManyTopics" Dispatch Error and Contract Revert when Minting in OpenBrush PSP37 Smart Contract
I am facing an issue with the OpenBrush PSP37 smart contract while calling the mint function. I receive a Contract Reverted! error with a TooManyTopics dispatch error. However, upon inspecting the ...
1
vote
1
answer
62
views
Getting "Contract Reverted!" error with "TooManyTopics" dispatch error when calling mint function in OpenBrush PSP37 smart contract
I'm working on adding events to an OpenBrush PSP37 smart contract and deploying it using Substrate Contract UI. However, when I try to call the mint function, I encounter the following error:
Contract ...
3
votes
2
answers
170
views
How node and runtime are connected?
When we run a substrate client cargo run -- --dev we run a substrate-node. The business logic is defined on the pallets composed by construct_runtime! inside the runtime. So which part of the node is ...
1
vote
0
answers
58
views
How to get all the blocks when forking the chain?
I am using subalfred to fork my chain and was able to achieve it, I got the latest state of the old-chain to the forked-chain but the forked-chain is starting from the genesis block or we can say ...
3
votes
3
answers
961
views
Difference between HTTP server, RPC server, and WebSockets in the context of Substrate framework?
In the context of the Substrate framework, I'm trying to understand the differences between an HTTP server, an RPC server, and WebSockets. Specifically, how do these communication mechanisms relate to ...
2
votes
1
answer
47
views
Simple Custom Pallet making XCM call
Are there any pallet examples for custom making XCM call. I know there is ping pallet provided by cumulus but I believe that is pretty old.
Does ping pallet still works?
0
votes
0
answers
45
views
Using http calls outside of offchain worker context
Is it possible make http requests outside of an offchain worker context. It seems like the only thing that is preventing http calls is simply that OffchainWorkerExt is not registered in the runtime. I'...
3
votes
1
answer
79
views
Will we be able to use the BLS signature scheme to control funds?
After reading through the BLS related issues in the substrate repo, it isn't quite clear to me what type of support is planned for the BLS signature scheme. It seems like the primary goal is to ...
4
votes
1
answer
81
views
This function takes 2 arguments but 1 argument was supplied
I'm working on a Substrate project, and I have the following storage definition:
#[pallet::storage]
#[pallet::getter(fn bids)]
pub(super) type Bids<T: Config> = StorageDoubleMap<
_,
...
4
votes
1
answer
33
views
substrate | try-runtime | sub-command | "fast-forward" | "ERROR main runtime: panicked at 'Timestamp slot must match `CurrentSlot`'"
I am currently in the process of integrating and testing the "try-runtime" feature on Starknet Madara.
https://github.com/keep-starknet-strange/madara/pull/690
However, I have encountered ...
2
votes
1
answer
106
views
Fork Chain using fork-off-substrate?
I'm trying to fork my chain using fork-off-substrate but when running the new chain using the genesis file i.e fork.json is does not produceor finalize the blocks. How can I solve this or what is the ...
3
votes
0
answers
33
views
How to use a custom syncing logic?
I want to create a node with a different syncing logic than SyncingEngine (I have my own struct that implements the same API as SyncingEngine). To be clear, I want to use the substrate NetworkService
...
1
vote
1
answer
61
views
Rejected connection: Transport(handshake was not a GET request)
When I start my node in the M2, it is continuously showing this error
.
3
votes
0
answers
32
views
How to compare current date with a stored date in a Substrate blockchain module?
I'm working with a Substrate blockchain and have a structure with a field named end_date. I'd like to check if the current date is greater than end_date within a Substrate runtime module, but I'm ...
-1
votes
1
answer
64
views
The trait bound is not satisfied
I am using staking-pallet in my runtime here , added all the requirements and after that I try to check dependencies using cargo check -p node-template-runtime --release this command but I'm getting ...
1
vote
0
answers
51
views
After skipping epoch, not able to perform any extrinsic
I bump into Session changes on reversion question and tried out the solution given by @bkchr, there was no unexpected epoch change error after an epoch is skipped due to finalisation getting stopped. ...
2
votes
0
answers
42
views
Having trouble with the `ChainSpec` Type
I've updated the ChainSpec type from:
pub type ChainSpec = sc_service::GenericChainSpec<GenesisConfig, Extensions>;
to
pub type ChainSpec = sc_service::GenericChainSpec<Result<...
5
votes
0
answers
74
views
I want to use Parity SCALE codec in Solidity? Is there any implementation of scale codec to decode bytes?
I want to decode bytes on the Solidity side that was decoded with scale codec.
Is the any implementation of scale codec (decode) on the Solidity side?
2
votes
1
answer
98
views
How to add initial nominators in the customSpec.json?
I want to generate a customSpec.json where i can manually add the accounts of the initial_nominators. I've seen the code chain_spec.rs where we in the fn testnet_genesis there is initial nominators. ...
2
votes
1
answer
31
views
How to obtain Polkadot release version?
How can I obtain the Polkadot release version in Rust that my node was compiled against? I want to log it at node startup. e.g. Polkadot-0.9.42
4
votes
1
answer
42
views
Custom session keys in Chainspec for Mainnet config
I've seen some Substrate repo's where the SessionKeys (Aura, Babe, Grandpa, etc) are used with unchecked_into() .While the stash/controller keys are only used with into().
These are some examples:
...
3
votes
1
answer
42
views
Build error on Substrate Toolbox - rust nightly not installed
I'm customising the srtool (Substrate runtime toolbox) for our chain built based on substrate.
The srtool docker image was built successful, but when Github running test against myChain, it failed ...