Questions tagged [astar]

Questions that are specific to Astar's implementation of a Substrate node.

Filter by
Sorted by
Tagged with
1 vote
1 answer
52 views

Astar RPC endpoint returns error between block 1558933 to block 1848933

I am trying to query the historical data (tx, ownership, etc.) of Cosmize Ticket NFT on Astar EVM. I got the error message when querying between block 1558933 to block 1848933. Below is how to ...
  • 11
0 votes
0 answers
15 views

Getting incorrect block hash using go-ethereum on Shibuya EVM

I'm trying to get block information from Shibuya EVM in Go and as far as I know there are two ways to do it. One way is use go-ethereum by calling BlockByNumber and the other way is to use rpc.Call ...
0 votes
1 answer
24 views

Chain extension for pallet_utility

I want to use the as_derivative function from pallet_utility in my ink! smart contract, and also use psp34 from Openbush. What steps do I need to follow to create a chain extension for pallet_utility ...
  • 1
1 vote
1 answer
53 views

How to handle TX error on dapp frontend?

Testing contract on polkadotjs, we can easily see user defined or error given by runtime like this: But working with same contract in frontend I am not able to handle error response in frontend. ...
  • 566
1 vote
1 answer
38 views

how to treat u256 in ink?

I want to use U256 in ink! but I've got some a error although I imported primitive_types/std.... how can I solve it? use primitive_types::U256; pub mod liquidity_num { pub const MIN_TICK: i32 = -...
  • 73
0 votes
1 answer
46 views

ENOENT: no such file or directory on compile and deploy swanky contract

This issue display when I clone the swanky project from GH and try to compile. swanky contract compile {project_name} I try to ignore the issue which display while compiling and try to deploy and got ...
  • 566
1 vote
1 answer
25 views

config file is not one of the known types

I am following How to setup zombienet for XCM testing tutorial. But faced error hear. Any suggestion would help a lot.
  • 566
0 votes
0 answers
24 views

Rejected connection: Transport(i/o error: unexpected end of file

I was synchronizing the Shiden network, but was prevented from doing so by the following error. There is also an Issue on GitHub, but the conversation is not continuing. https://github.com/...
  • 13
1 vote
1 answer
37 views

Recommended way of local development flow for swanky-cli

Right now contract compilation and deployment results in bunch of artifacts and edits to swanky.config.json. I'm just curious what's recommended flow of dealing with those changes or developing smart ...
0 votes
2 answers
61 views

Error Compling Contract

I am just starting with wasm and ink. I have installed the following dependency: npm install -g @astar-network/swanky-cli I am trying to compile the contract flipper and I get the following warnings ...
0 votes
1 answer
60 views

"new CodePromise" now throws an error [ Issue of Weight V2] [duplicate]

I implemented this sample(https://github.com/realtakahashi/polkadot_js_examples) about 3 months ago This sample works on astar-collator v4.33.0, but does not work on v4.39.0 I got an error when &...
0 votes
1 answer
28 views

Getting canonicalize elem error on Rococo fork [closed]

We are getting the error message below on Astar's custom relay chain, forked from Rococo, runtime is rococo/9310. Could not canonicalize elem at pos 1549631 using key [12, 109, 109, 114, 63, 165, 23, ...
  • 118
0 votes
1 answer
56 views

Astar error commpiling Swanky

Trying to compile smart contract and it gives me this error, in charge .toml I put the direct routes and nothing. Other smart contracts compile with ink! properly. Command I use: cargo +nightly ...
1 vote
1 answer
24 views

Does api.query.session.validators return a Collators list on Astar Network?

As a title, I'd like to confirm that api.query.session.validators interface return a Collators list on Astar Network to check if our collator works well.
0 votes
1 answer
32 views

How to get human-readable ASTR balance in Golang

This question is continued from How to get ASTR balance via json rpc. I understood calculating StorageKey from Publickey is needed. It seems that calculating StorageKey and decoding rpc-json responses ...
0 votes
1 answer
42 views

How to get ASTR balance via json rpc

team. I'd like to get the $ASTR balance of the specific address. I found that I can do it by calling api.query.system.account(address) with polkadot.js, but I have to write the balance fetcher program ...
1 vote
1 answer
32 views

How to set gasPrice using hardhat in EVM smart contract

I was developing a contract on EVM on Shibuya, Astar Network's testnet. I'm using hardhat. We successfully deployed to Shibuya testnet and Shiden network using the following settings. But it doesn't ...
0 votes
1 answer
15 views

How to find "deploymentTimeStamp" which use when I will execute the command "swanky call" with swanky-cli

% swanky --version @astar-network/swanky-cli/1.0.0-beta.4 darwin-x64 node-v16.4.0 I used "swanky cli" to deploy the contract to swanky-node. % swanky contract deploy flipper --gas ...
1 vote
1 answer
48 views

Astar Startup Error after upgrading from version v4.23.0 to v4.33.0

Good day, everyone! I'm running an Astar validator node. When I upgraded the version from v4.23.0 to v4.33.0, an error occurred. 2022-11-24 02:06:57 Astar Collator 2022-11-24 02:06:57 :vサイン: version ...
  • 13
2 votes
1 answer
111 views

How to verify EVM contracts with openzeppelin using subscan or blockscout

source code: // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; import "hardhat/console....
3 votes
1 answer
58 views

Best practices for handling my own errors and openbrush's errors?

I am using ink! to implement the contract. I have implemented my own error, and the contract function has this own error as a return value. For example, suppose that function implements openbrush's ...
1 vote
2 answers
115 views

Error Installing dependencies on Swanky project init

I recently update Swanky Suite latest version @astar-network/swanky-cli/0.2.1 darwin-x64 node-v16.14.0. I create new project with swanky init my_project but throws Error Installing dependencies. Is ...
  • 566
1 vote
1 answer
58 views

swanky deploy throws error " ENOENT: no such file or directory"

I am using Swanky Suite, contract compile successfully but while deploy using swanky deploy --account alice --contract flipper --gas 100000000 --args true throws ENOENT: no such file or directory, ...
  • 566
0 votes
1 answer
76 views

#[ink(constructor)] cause a error, What is wrong with it?

error: encountered unexpected ink! attribute --> lib.rs:80:15 | 80 | #[ink(constructor)] | ^^^^^^^^^^^ when I execute $cargo +nightly contract test , the above error ...
  • 73
1 vote
1 answer
31 views

dApp registration issue - Shiden Network

I'm in the process of making a video tutorial for The Kusamarian YouTube channel :"How to register a dApp on Shiden Network" I went through all the steps, but it failed at the end. Could you ...
5 votes
1 answer
100 views

Why does the Astar XC20 wrapper example use the ERC20 wrapper functionality?

I am working on an XC20 implementation of an existing ERC20. I am basing the contract off of the Astar here. I noticed there is some code inherited from the ERC20 contract via the ERC20Wrapper ...
0 votes
2 answers
62 views

Is it possible to run moonbeam/Astar as a standalone network

I am exploring moonbeam and astar projects. I would like to know if it is possible to run a standalone network without collators or relaychain. I am interested in running a standalone network of one ...
  • 111
7 votes
1 answer
123 views

Unable to deploy EVM contract on Astar

I have cloned Astar and built it, after running the cloned Astar code i tried to deploy evm smart contract on it but it is showing Error error:evm.balanceLow. I have used SubWallet to create an evm ...
1 vote
1 answer
63 views

eth_getLogs is returning empty array on Astar

With recent updates in frontier eth_getLogs is returning empty array curl -X POST --data '{"id": 1, "jsonrpc":"2.0","method": "eth_getLogs","...
6 votes
1 answer
199 views

Transaction pool extrinsic prioritization

Currently, the transaction pool in Astar network is full with a lot of unsigned EVM transactions, which cause user transactions sent without a tip to be stuck. We are currently researching a way to ...
  • 185
3 votes
1 answer
182 views

How to calculate the optimal tip for Substrate

Currently, Astar network's transaction volume has increased drastically and we are having some trouble prioritizing the tx queue. With EVM, there are many RPCs like eth_gasPrice,eth_feeHistory, and ...
4 votes
1 answer
101 views

How to inform polkadot.js wallet to approve erc20-type token transfer? [closed]

I am developing smart contract that can stake erc20-type token, and testing it on shibuya testnet. But i have some problems. My staking contract have to request erc20-type token contract to approve ...
5 votes
2 answers
114 views

How to use substrate archive for custom chains?

In the substrate archive wiki, they showed how to archive the polkadot chain's data. Now I want to get other chains' data (like a substrate template node or Astar, Moonbeam, etc). How can I do that? ...