0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

bscscan API で binance smart chain のトランザクションを取得する

Last updated at Posted at 2021-02-17

bscscan は BSC(Binance Smart Chain) 用でほぼ etherscan のコピーです :smiley: . アカウント登録で API key 取得してブロックチェーン情報を取得できます(結果は JSON).

1 秒あたり 5 回 per IP の制限がありますが, 普通に使う分には制限にはかからないでしょう.

例えば curl ですと以下のようにして取得できます.

APIKEY=XXXXXX

# POST の方がいいのかも?
curl -X GET https://api.bscscan.com/api -d "module=account&action=txlist&address=0x000000&startblock=0&endblock=99999999&sort=asc&apikey=${APIKEY}"

トランザクション数が多くて 10000 を超える場合は paging で処理することになります(bscscan の API 利用のドキュメント参照)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?