Comments (7)
What would also work is a hybrid, where you use a tendermint socker subscribtion to get notified about new data. When you receive a new transaction, you ignore the amino data and pull via REST.
from cosmjs.
Apparently it is not possible to subscribe with the rest server, only via tendermint rpc. Got this response from a lunie wallet dev:
It is not possible to subscribe via the rest server. (frequently requested feature by me :D).
from cosmjs.
Let's just do polling like in the Lisk connector. That brought us quite far and is way more stable than websockets.
from cosmjs.
Okay
from cosmjs.
Yes, I like this. I think we did some of this at iov. Just have a stream of "update happened" from the subscription service. And those events trigger a rest call to get the data.
I can look into proper tendermint subscription queries, but that would also require a second url and connection (maybe optional?)
from cosmjs.
For wallet integration we need watchAccount
and liveTx
. The first one is easy. The second one can be implemented like Lisk. This is horribly inefficient without min/max height search filters, but those will be available soon.
from cosmjs.
Closing since the BCP implementation is moving out of here and subscriptions will get their comeback in a couple of weeks when we successfully communicate with Tendermint.
from cosmjs.
Related Issues (20)
- Upgrade to yarn 4 and drop Node.js 16 HOT 4
- Introduction of omitDefault in Cosmjs/Amino 0.31.2 breaks signing with undefined memo field HOT 3
- Rapidly sending multiple requests to the faucet can obtain multiple test coins HOT 3
- Remove unnecessary status call from connect method HOT 3
- cosmjs for mobile using expo HOT 2
- Failed to execute message; message index: 0: Invalid Sender: execute wasm contract failed
- rawLog is deprecated HOT 2
- Can cosmjs be used to send ics20 tokens for IBC swaps to Osmosis ?
- Allow simulation of messages without private key access
- Uncaught (in promise) Error: Broadcasting transaction failed with code 18 (codespace: sdk). Log: must contain at least one message: invalid request HOT 4
- @cosmjs/encoding/build/utf8.d.ts:1:1 - error TS1490: File appears to be binary. HOT 3
- SyntaxError: Unexpected token '.' while deploying faucet service
- How to vote with cosmosjs HOT 1
- I canβt write a script for the evm-cosmos network (for example Evmos) HOT 1
- Broadcasting transaction failed with code 7 HOT 3
- Failed to get block time HOT 2
- feature request: add support for comparsion operator to SearchPair
- DirectSecp256k1HdWallet.fromMnemonic error HOT 1
- React Native Expo build error
- Replace most of libsodium with Noble cryptography HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmjs.