PYTHON REST API SDK for BlockSDK
BlockSDK PYTHON에 오신 것을 환영합니다. 이 저장소에는 BlockSDK의 PYTHON SDK와 REST API용 샘플이 포함되어 있습니다.
지원중인 블록체인 네트워크
비트코인 , 라이트코인 , 비트코인 캐시 , 웹후크 는 V2버전 에서 지원되고 있습니다.
1.이더리움
2.클레이튼
3.바이낸스 스마트 체인
4.폴리곤
5.아발란체
6.이더리움 클래식
개발자 문서
요구 사양
시작하기
SDK 설치 – pip를 사용하여 설치 것이 BLOCKSDK PYTHON SDK를 설치하는 권장 방법입니다.
pip install BlockSDK
코드 샘플
테스트넷 클라이언트 생성
from BlockSDK.blocksdk import BlockSDK
client = BlockSDK(api_token="YOU_TOKEN")
메인넷 클라이언트 생성
엔드 포인트를 지정해주지 않는경우 테스트넷으로 기본 설정되어 호출 됩니다 메인넷은 아래 예시와 같이 클라이언트 생성시 두번째 매개변수를 메인넷으로 지정해 주시길 바랍니다.
from BlockSDK.blocksdk import BlockSDK
client = BlockSDK(api_token="YOU_TOKEN",endpoint="https://mainnet-api.blocksdk.com")
이더리움 블록체인 정보 가져오기
result = client.ethereum.GetBlockChainInfo();
print(result);
이더리움 테스트넷 특정 컨트렉트 NFT 목록 가져오기
nfts = client.ethereum.GetSingleNfts({
"contract_address": "0xf5de760f2e916647fd766b4ad9e85ff943ce3a2b",
"includeMetadata": False,
"offset": 0,
"limit": 10
})
print(nfts)
Metadata
Release files for BlockSDK 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| BlockSDK-3.0.0.tar.gz | 10.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| BlockSDK-3.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.8 kB
Release files / BlockSDK-3.0.0.tar.gz
| Download URL | BlockSDK-3.0.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a62a6fd8fc18d446910fb32497afb8c77f593b2d19f7cf1aa8d8ba03aa809c26
|
|
BLAKE2b-256 checksum How to use checksums |
da1331665841e0b4c928c69eae111c357c40cfb9bba47cee61799ecf2b457fb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / BlockSDK-3.0.0-py3-none-any.whl
| Download URL | BlockSDK-3.0.0-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d3593196a2414c37535f9e2c41541c19533d262f0ecb4617c2c8edf4be7a021
|
|
BLAKE2b-256 checksum How to use checksums |
c9ab405e3c34d9b3841679da7c0e88cacdecadc5b0d79ea787126505f0e9a81d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for BlockSDK 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.