| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
https://pypi.org/project/diem/
>>> from diem.jsonrpc import AsyncClient
>>> from diem.testing import JSON_RPC_URL
>>> import asyncio
>>>
>>> async def main():
... # Use with statement to close client after usage
... # or call client.close() when initialized without with statement
... with AsyncClient(JSON_RPC_URL) as client:
... print(await client.get_metadata())
...
>>> asyncio.run(main())
version: 3300304
timestamp: 1601492912847973
chain_id: 2
......You can find more examples under the examples directory:
For building a wallet application, see MiniWallet Application for example.
Checkout MiniWallet implementation for off-chain service implementation example.
See mini_wallet.md
make init make test
run specific test:
make test t=<test file / test name match pattern>
run with local docker testnet (requires initializing diem submodule):
make test t=<test file / test name match pattern> dt=1
git submodule update --init diem cd diem git pull origin main cd .. make gen
SPEC = specification
DIP-X = Diem Improvement Protocol
Root module name: diem
Sub-modules:
| Back | FazBrowse Home | New Git URL |