Skip to main content

PYTHON REST API SDK for BlockSDK

@BLOCKSDK on Twitter @BLOCKSDK on Facebook PYTHON version PYPI downloads

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)

Source distribution for BlockSDK 3.0.0
File Size Uploaded
BlockSDK-3.0.0.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for BlockSDK 3.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

2 release files

0.1.6

1 release file

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page