- Notifications
You must be signed in to change notification settings - Fork30
Python client library for Diem
License
NotificationsYou must be signed in to change notification settings
diem/client-sdk-python
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
https://pypi.org/project/diem/
>>>fromdiem.jsonrpcimportAsyncClient>>>fromdiem.testingimportJSON_RPC_URL>>>importasyncio>>>>>>asyncdefmain():...# Use with statement to close client after usage...# or call client.close() when initialized without with statement...withAsyncClient(JSON_RPC_URL)asclient:...print(awaitclient.get_metadata())...>>>asyncio.run(main())version:3300304timestamp:1601492912847973chain_id:2......
You can find more examples under theexamples
directory:
For building a wallet application, seeMiniWallet Application for example.
CheckoutMiniWallet implementation for off-chain service implementation example.
make initmake 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 diemcd diemgit pull origin maincd ..make gen
SPEC = specification
DIP-X = Diem Improvement Protocol
Root module name:diem
Sub-modules:
jsonrpc
: diem JSON-RPC APIs client and API response types.SPECstdlib
: generated code, move stdlib script utils for constructing transaction script playload.diem_types
: generated code, Diem on-chain data structure types for encoding and decodingBCS data.utils
: utility functions, account address utils, currency code, hashing, hex encoding / decoding, transaction utils.AuthKey
|auth_key
: auth key utilsidentifier
: Diem Account Identifier and Diem Intent Identifier.DIP-5txnmetadata
: utils for creating peer to peer transaction metadata.DIP-4testnet
: Testnet utility, minting coins, create Testnet client, chain id, Testnet JSON-RPC URL.testing
: Testing utility, MiniWallet application, MiniWallet test suites,LocalAccount
for managing local account keys and generating random local account.chain_ids
: list of static chain ids
About
Python client library for Diem
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors9
Uh oh!
There was an error while loading.Please reload this page.