-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Able to create alexander APIRx but not kusama, substratetest in react-native #1379
Comments
You are on an ancient version of the API, as per the message it doesn't have Metadata version 7 support, your API only has support up to v5. (Alexander is only on v3) Update your API, the latest stable 0.91.1 was actually released yesterday. (Since your is . very far behind, also take a look at the CHANGELOG and UPGRADING guides for changes) |
After upgrading to 0.91.1
Running metro as
NODE_OPTIONS=—max_old_space_size=8192 react-native start
Stuck at 97.4%
Since 1 hour. This time, it’s bad than wasm crypto
|
Upgraded to 0.91.1 const provider = new WsProvider('wss://poc3-rpc.polkadot.io/');
const api = await ApiRx.create({ provider }).toPromise(); Getting the following error on create
|
Working fine after clean install But, import { ApiRx, WsProvider, ApiPromise } from '@polkadot/api';
var provider;
var api;
try {
provider = new WsProvider(rpcServer);
api = await ApiRx.create(provider).toPromise();
} catch (error) {
console.log(error);
}
api.rpc.chain.subscribeNewHeads().subscribe((header) => {
console.log(`Chain is at #${header.blockNumber}`);
console.log(`Chain is at #${header.number}`);
console.log(`Chain is at #${header}`);
}); header = {"parentHash":"0xecf52f1796f9f3b50bc92691967ebd6c0d29f07c8aaf17bb6c0fea9a5ee1bb13","number":259454,"stateRoot":"0x3f9e149a64f9531aebd2ce66366c8489ab192d3f45c1e0b2b6d733693746b551","extrinsicsRoot":"0x5a2cb032e3f3ac5af7747e66d6abeda0e70b2dfa5f41067eba1a886501198e39","digest":{"logs":["0x064241424544010300000085f2930f0000000067f60000","0x05424142450101e67bd36607f4ac701db9775f618c159544f589a88d6d7b2d74ba39d0c688b30d452b0c4299ece78df1a58ac472922673d0951b8dd796c85785b4b2b90b7b1881"]}} |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
Can connect and get details for Alexander, hosted by parity and Web3 Foundation
But the issue is,
Fails in following Wsproviders with below error
The text was updated successfully, but these errors were encountered: