kaspa节点调用问题
最后几个WASM版本有一个Resolver()类,它可以与网络id一起传递给RpcClient,它将选择最不繁忙的公共节点。
重要提示:由于这些节点位于CloudFlare之后,它们偶尔会断开连接(因此在向节点注册通知时正确处理断开连接很重要)。
https://beacon.kaspa-ng.org/status
(这只是为了提供信息,因为它可能会更改或被禁用)。
https://beacon.kaspa-ng.org/v1/wrpc/borsh/testnet-10
然而,这^是永久性的,如果需要,可以使用(这是Resolver内部使用的)。Resolver公开了一个API来在WASM中实现这一点。
请注意:当这种情况发生时,wRPC协议将在未来几周内更改,需要WASM更新。(本应在现在发生,不幸的是,由于“生活”的原因,这被推迟了,我没能做到)。它是将typescript分支(当前的WASM夜间)合并到master之后的下一个主要todo项。
New WASM build available: Changelog: https://github.com/aspectron/rusty-kaspa/blob/typescript/wasm/CHANGELOG.md#release-2024-04-13Downloads: https://kaspa.aspectron.org/nightly/downloads/Docs: https://kaspa.aspectron.org/docs/
this fixes the
TransactionRecord.data
field (and sincerecord
is now aTransactionRecord
you can callhasAddress()
on it in the event handler.
https://beacon.kaspa-ng.org/status
[{"id":"48610251","url":"wss://eu-1.kaspa-ng.org/mainnet","transport":"wrpc","encoding":"borsh","network":"mainnet","online":true,"status":"online"},{"id":"2e44c540","url":"wss://us-1.kaspa-ng.org/mainnet","transport":"wrpc","encoding":"borsh","network":"mainnet","online":true,"status":"online"},{"id":"726b21ae","url":"wss://eu-1.kaspa-ng.io/mainnet","transport":"wrpc","encoding":"borsh","network":"mainnet","online":true,"status":"online"},{"id":"5435b6a9","url":"wss://eu-1.kaspa-ng.org/testnet-11","transport":"wrpc","encoding":"borsh","network":"testnet-11","online":true,"status":"online"},{"id":"5ecf0557","url":"wss://us-1.kaspa-ng.org/testnet-11","transport":"wrpc","encoding":"borsh","network":"testnet-11","online":true,"status":"online"},{"id":"93448cce","url":"wss://eu-1.kaspa-ng.io/testnet-11","transport":"wrpc","encoding":"borsh","network":"testnet-11","online":true,"status":"online"},{"id":"4a0ff450","url":"wss://eu-1.kaspa-ng.org/testnet-10","transport":"wrpc","encoding":"borsh","network":"testnet-10","online":true,"status":"online"},{"id":"46c9d535","url":"wss://us-1.kaspa-ng.org/testnet-10","transport":"wrpc","encoding":"borsh","network":"testnet-10","online":true,"status":"online"},{"id":"f0166079","url":"wss://eu-1.kaspa-ng.io/testnet-10","transport":"wrpc","encoding":"borsh","network":"testnet-10","online":true,"status":"online"}]
感动 | 同情 | 无聊 | 愤怒 | 搞笑 | 难过 | 高兴 | 路过 |
相关文章
-
没有相关内容