
Introduction to Optimism: Scaling Ethereum with Optimistic Rollup
Optimism is an optimistic rollup protocol that provides a solution for scaling Ethereum without sacrificing security or decentralization. The protocol achieves this by increasing the computation and storage capacity of Ethereum, while remaining maximally compatible with existing Ethereum infrastructure.BasicsWhat is Ethereum scalability?Ethereum scalability refers to the ability of the Ethereum network to process a greater number of useful transactions. The current limited resources of Ethere...

Stake SUI and earn rewards with BlockEden.xyz
We're excited to announce that SUI staking on Mainnet is finally accessible, providing an opportunity for you to generate passive income from your $SUI by earning staking rewards. This guide will explain, step by step, how to use your preferred Sui wallets: Sui Wallet, Suiet, and Martian Wallet.Staking SUI with Sui WalletStaking SUI with Martian WalletStaking SUI with SuietStaking SUI with Ethos WalletFirst, you'll need to install the Sui Wallet browser extension. Currently, Sui Wal...
Decentralized AI: Permissionless LLM Inference on BlockEden.xyz
BlockEden.xyz, known for its Remote Procedure Call (RPC) infrastructure, is expanding into AI inference services. This evolution leverages its open-source, permissionless design to create a marketplace where model researchers, hardware operators, API providers, and users interact seamlessly. The network's Relay Mining algorithm ensures a transparent and verifiable service, presenting a unique opportunity for large model AI researchers to monetize their work without infrastructure mainten...
BlockEden.xyz is a suite of APIs powering DApps for Aptos and Sui blockchains of all sizes. Build DApp and scale faster.

Introduction to Optimism: Scaling Ethereum with Optimistic Rollup
Optimism is an optimistic rollup protocol that provides a solution for scaling Ethereum without sacrificing security or decentralization. The protocol achieves this by increasing the computation and storage capacity of Ethereum, while remaining maximally compatible with existing Ethereum infrastructure.BasicsWhat is Ethereum scalability?Ethereum scalability refers to the ability of the Ethereum network to process a greater number of useful transactions. The current limited resources of Ethere...

Stake SUI and earn rewards with BlockEden.xyz
We're excited to announce that SUI staking on Mainnet is finally accessible, providing an opportunity for you to generate passive income from your $SUI by earning staking rewards. This guide will explain, step by step, how to use your preferred Sui wallets: Sui Wallet, Suiet, and Martian Wallet.Staking SUI with Sui WalletStaking SUI with Martian WalletStaking SUI with SuietStaking SUI with Ethos WalletFirst, you'll need to install the Sui Wallet browser extension. Currently, Sui Wal...
Decentralized AI: Permissionless LLM Inference on BlockEden.xyz
BlockEden.xyz, known for its Remote Procedure Call (RPC) infrastructure, is expanding into AI inference services. This evolution leverages its open-source, permissionless design to create a marketplace where model researchers, hardware operators, API providers, and users interact seamlessly. The network's Relay Mining algorithm ensures a transparent and verifiable service, presenting a unique opportunity for large model AI researchers to monetize their work without infrastructure mainten...
BlockEden.xyz is a suite of APIs powering DApps for Aptos and Sui blockchains of all sizes. Build DApp and scale faster.

Subscribe to BlockEden.xyz

Subscribe to BlockEden.xyz
Share Dialog
Share Dialog
<100 subscribers
<100 subscribers
We are among the first Sui Devnet JSON-RPC providers. Now we are excited to expand our API Service to WebSocket too. WebSocket would be useful to those dApps that need to take action on real-time on-chain events.
Step 1. Go to https://blockeden.xyz/dash/. Please sign up if you haven’t done so.
Step 2. Input your name for the API key, select Sui Devnet Websocket, and then click + Create key.

Step 3. Grab your access URL by clicking Copy to copy it to the clipboard.
Step 4. Use the access URL in your project like the following. Remember to replace <access_key> with your own key.
To quickly play around WebSocket endpoint in the command line, you could use wscat. To download it, run the following command:
npm install -g wscat
Then, run the following command to connect to the WebSocket endpoint (remember replacing with your own API key):
wscat -c wss://sui-devnet.blockeden.xyz/kjz2sTknHkNE9aXQ6j1N
Now in the session, you could give the command. For example, you could say subscribing events that matchin some cerntain criteria:
Connected (press CTRL+C to quit)
> {"jsonrpc":"2.0", "id": 1, "method": "sui_subscribeEvent", "params": [{"All":[{"EventType":"MoveEvent"}, {"Package":"0x2"}, {"Module":"devnet_nft"}]}]}
< {"jsonrpc":"2.0","result":6240320950310564,"id":1}
And you would also observe events being streamed to your console:
< {"jsonrpc":"2.0","method":"sui_subscribeEvent","params":{"subscription":6240320950310564,"result":{"timestamp":1672211297607,"txDigest":"PDPBHEo5pmMeLK8Dc4226MZxUA2dkQK91W2ECHFgN1a","id":{"txSeq":1471806,"eventSeq":2},"event":{"moveEvent":{"packageId":"0x0000000000000000000000000000000000000002","transactionModule":"devnet_nft","sender":"0x35a09652085b5c4c178d9cfe234d8c1a6b89306b","type":"0x2::devnet_nft::MintNFTEvent","fields":{"creator":"0x35a09652085b5c4c178d9cfe234d8c1a6b89306b","name":"Example NFT","object_id":"0x7631724b6eb066b8514c6159f716a8826055ee5e"},"bcs":"djFyS26wZrhRTGFZ9xaogmBV7l41oJZSCFtcTBeNnP4jTYwaa4kwawtFeGFtcGxlIE5GVA=="}}}}}
< {"jsonrpc":"2.0","method":"sui_subscribeEvent","params":{"subscription":6240320950310564,"result":{"timestamp":1672211297614,"txDigest":"XcTtaU28vUsR18ZMRhE7XuMadeUfCj8kTZfHD1Xs8H7","id":{"txSeq":1471807,"eventSeq":2},"event":{"moveEvent":{"packageId":"0x0000000000000000000000000000000000000002","transactionModule":"devnet_nft","sender":"0xc9a7020d260599e06b63baae7504b2ead68a580a","type":"0x2::devnet_nft::MintNFTEvent","fields":{"creator":"0xc9a7020d260599e06b63baae7504b2ead68a580a","name":"Example NFT","object_id":"0xdc2961ac31f550fcae6ac050c4cc5c364f3736c3"},"bcs":"3ClhrDH1UPyuasBQxMxcNk83NsPJpwINJgWZ4Gtjuq51BLLq1opYCgtFeGFtcGxlIE5GVA=="}}}}}
< {"jsonrpc":"2.0","method":"sui_subscribeEvent","params":{"subscription":6240320950310564,"result":{"timestamp":1672211297617,"txDigest":"ZpnGea1XkkzfsBeSCnR37xKvkdCSgjcfp81owD6QS4i","id":{"txSeq":1471808,"eventSeq":2},"event":{"moveEvent":{"packageId":"0x0000000000000000000000000000000000000002","transactionModule":"devnet_nft","sender":"0x96e31283ad37fe2ebbdff635501c9feaa2bd8af7","type":"0x2::devnet_nft::MintNFTEvent","fields":{"creator":"0x96e31283ad37fe2ebbdff635501c9feaa2bd8af7","name":"Wizard Land","object_id":"0xe63f7ee979d23d4ab60b598529dc4136d33f07a8"},"bcs":"5j9+6XnSPUq2C1mFKdxBNtM/B6iW4xKDrTf+Lrvf9jVQHJ/qor2K9wtXaXphcmQgTGFuZA=="}}}}}
...
For more details of subscribing Sui events via WebSocket, please refer to the offical doc.
To prevent too many outstanding idle connections, we will drop any WebSocket connection that hasn't exchanged data in the past 5 minutes. Client will receive an error code: 1006.
Source link: https://blockeden.xyz/blog/2022/12/27/supporting-sui-ws/
We are among the first Sui Devnet JSON-RPC providers. Now we are excited to expand our API Service to WebSocket too. WebSocket would be useful to those dApps that need to take action on real-time on-chain events.
Step 1. Go to https://blockeden.xyz/dash/. Please sign up if you haven’t done so.
Step 2. Input your name for the API key, select Sui Devnet Websocket, and then click + Create key.

Step 3. Grab your access URL by clicking Copy to copy it to the clipboard.
Step 4. Use the access URL in your project like the following. Remember to replace <access_key> with your own key.
To quickly play around WebSocket endpoint in the command line, you could use wscat. To download it, run the following command:
npm install -g wscat
Then, run the following command to connect to the WebSocket endpoint (remember replacing with your own API key):
wscat -c wss://sui-devnet.blockeden.xyz/kjz2sTknHkNE9aXQ6j1N
Now in the session, you could give the command. For example, you could say subscribing events that matchin some cerntain criteria:
Connected (press CTRL+C to quit)
> {"jsonrpc":"2.0", "id": 1, "method": "sui_subscribeEvent", "params": [{"All":[{"EventType":"MoveEvent"}, {"Package":"0x2"}, {"Module":"devnet_nft"}]}]}
< {"jsonrpc":"2.0","result":6240320950310564,"id":1}
And you would also observe events being streamed to your console:
< {"jsonrpc":"2.0","method":"sui_subscribeEvent","params":{"subscription":6240320950310564,"result":{"timestamp":1672211297607,"txDigest":"PDPBHEo5pmMeLK8Dc4226MZxUA2dkQK91W2ECHFgN1a","id":{"txSeq":1471806,"eventSeq":2},"event":{"moveEvent":{"packageId":"0x0000000000000000000000000000000000000002","transactionModule":"devnet_nft","sender":"0x35a09652085b5c4c178d9cfe234d8c1a6b89306b","type":"0x2::devnet_nft::MintNFTEvent","fields":{"creator":"0x35a09652085b5c4c178d9cfe234d8c1a6b89306b","name":"Example NFT","object_id":"0x7631724b6eb066b8514c6159f716a8826055ee5e"},"bcs":"djFyS26wZrhRTGFZ9xaogmBV7l41oJZSCFtcTBeNnP4jTYwaa4kwawtFeGFtcGxlIE5GVA=="}}}}}
< {"jsonrpc":"2.0","method":"sui_subscribeEvent","params":{"subscription":6240320950310564,"result":{"timestamp":1672211297614,"txDigest":"XcTtaU28vUsR18ZMRhE7XuMadeUfCj8kTZfHD1Xs8H7","id":{"txSeq":1471807,"eventSeq":2},"event":{"moveEvent":{"packageId":"0x0000000000000000000000000000000000000002","transactionModule":"devnet_nft","sender":"0xc9a7020d260599e06b63baae7504b2ead68a580a","type":"0x2::devnet_nft::MintNFTEvent","fields":{"creator":"0xc9a7020d260599e06b63baae7504b2ead68a580a","name":"Example NFT","object_id":"0xdc2961ac31f550fcae6ac050c4cc5c364f3736c3"},"bcs":"3ClhrDH1UPyuasBQxMxcNk83NsPJpwINJgWZ4Gtjuq51BLLq1opYCgtFeGFtcGxlIE5GVA=="}}}}}
< {"jsonrpc":"2.0","method":"sui_subscribeEvent","params":{"subscription":6240320950310564,"result":{"timestamp":1672211297617,"txDigest":"ZpnGea1XkkzfsBeSCnR37xKvkdCSgjcfp81owD6QS4i","id":{"txSeq":1471808,"eventSeq":2},"event":{"moveEvent":{"packageId":"0x0000000000000000000000000000000000000002","transactionModule":"devnet_nft","sender":"0x96e31283ad37fe2ebbdff635501c9feaa2bd8af7","type":"0x2::devnet_nft::MintNFTEvent","fields":{"creator":"0x96e31283ad37fe2ebbdff635501c9feaa2bd8af7","name":"Wizard Land","object_id":"0xe63f7ee979d23d4ab60b598529dc4136d33f07a8"},"bcs":"5j9+6XnSPUq2C1mFKdxBNtM/B6iW4xKDrTf+Lrvf9jVQHJ/qor2K9wtXaXphcmQgTGFuZA=="}}}}}
...
For more details of subscribing Sui events via WebSocket, please refer to the offical doc.
To prevent too many outstanding idle connections, we will drop any WebSocket connection that hasn't exchanged data in the past 5 minutes. Client will receive an error code: 1006.
Source link: https://blockeden.xyz/blog/2022/12/27/supporting-sui-ws/
No activity yet