개발가이드

  • 개발가이드

블록 조회

블록 정보를 조회합니다.

정보

Method
URL
POST
https://apick.app/rest/search_block/:블록체인종류/:블록ID/:페이지
조회 가능한 블록체인 종류
종류
목록
비트코인 계열(7종)
bitcoin, bitcoin_cash, litecoin, dogecoin, dash, zcash, ecash
이더리움
ethereum
모네로
monero
블록체인 종류별로 조회 데이터에 차이가 있습니다.

요청

Header
이름
설명
필수
CL_AUTH_KEY
인증키(MD5)
O
FormData
이름
타입
필수
설명
없음

응답

Body
  • 비트코인
  • 이더리움
  • 모네로
이름
타입
설명
data
Object
조회 데이터
block
Object
블록 정보
id
Integer
블록 ID
hash
String
해시값
date
String
블록 생성일자
time
String
블록 생성일시
median_time
String
size
Integer
블록 크기
stripped_size
Integer
weight
Integer
version
Integer
version_hex
String
version_bits
String
merkle_root
String
nonce
Integer
bits
Integer
difficulty
Double
chainwork
String
coinbase_data_hex
String
transaction_count
Integer
witness_count
Integer
input_count
Integer
output_count
Integer
input_total
Integer
input_total_usd
output_total
output_total_usd
fee_total
fee_total_usd
fee_per_kb
fee_per_kb_usd
fee_per_kwu
fee_per_kwu_usd
cdd_total
generation
generation_usd
reward
reward_usd
guessed_miner
transactions
Array
거래 목록
{}
Object
거래 정보
transaction
Object
트랜잭션 정보
block_id
id
hash
date
time
size
weight
version
lock_time
is_coinbase
has_witness
input_count
output_count
input_total
input_total_usd
output_total
output_total_usd
fee
fee_usd
fee_per_kb
fee_per_kb_usd
fee_per_kwu
fee_per_kwu_usd
cdd_total
is_rbf
confirm
inputs
Array
{}
Object
block_id
transaction_id
index
transaction_hash
time
value
value_usd
recipient
type
script_hex
is_from_coinbase
is_spendable
is_spent
spending_block_id
spending_transaction_id
spending_index
spending_transaction_hash
spending_date
spending_time
spending_value_usd
spending_sequence
spending_signature_hex
spending_witness
lifespan
cdd
outputs
Array
{}
Object
block_id
transaction_id
index
transaction_hash
time
value
value_usd
recipient
type
script_hex
is_from_coinbase
is_spendable
is_spent
spending_block_id
spending_transaction_id
spending_index
spending_transaction_hash
spending_date
spending_time
spending_value_usd
spending_sequence
spending_signature_hex
spending_witness
lifespan
cdd
success
Integer
과금 여부
0: 실패
1: 성공
3: 실패(timeout)
api
Object
API 호출 공통 데이터
success
Boolean
API 서버 정상 응답 여부
cost
Integer
API 호출 요금
ms
Integer
API 응답 시간
pl_id
Integer
API 결제 로그 ID
이름
타입
설명
data
Object
조회 데이터
block
Object
블록 정보
id
Integer
블록 ID
hash
String
블록 해시
date
String
블록 생성일자
time
String
블록 생성일시
size
Integer
miner
String
extra_data_hex
String
difficulty
Integer
gas_used
Integer
gas_limit
Integer
base_fee_per_gas
String
logs_bloom
String
mix_hash
String
nonce
String
receipts_root
String
sha3_uncles
String
state_root
String
total_difficulty
String
transactions_root
String
uncle_count
Integer
transaction_count
Integer
synthetic_transaction_count
Integer
call_count
Integer
synthetic_call_count
Integer
value_total
String
value_total_usd
Double
internal_value_total
String
internal_value_total_usd
Double
generation
String
generation_usd
Double
uncle_generation
String
uncle_generation_usd
Double
fee_total
String
fee_total_usd
Double
burned_total
?????
reward
String
reward_usd
Double
uncles
Array
transactions
Array
synthetic_transactions
Array
success
Integer
과금 여부
0: 실패
1: 성공
3: 실패(timeout)
api
Object
API 호출 공통 데이터
success
Boolean
API 서버 정상 응답 여부
cost
Integer
API 호출 요금
ms
Integer
API 응답 시간
pl_id
Integer
API 결제 로그 ID
이름
타입
설명
data
Object
조회 데이터
block_height
current_height
hash
size
timestamp
timestamp_utc
txs
Array
{}
Object
coinbase
extra
mixin
payment_id
payment_id8
rct_type
tx_fee
tx_hash
tx_size
tx_version
xmr_inputs
xmr_outputs
coinbase_tx
Object
block_height
coinbase
confirmations
current_height
extra
inputs
mixin
outputs
Array
{}
Object
amount
public_key
payment_id
payment_id8
rct_type
timestamp
timestamp_utc
tx_fee
tx_hash
tx_size
tx_version
xmr_inputs
xmr_outputs
success
Integer
과금 여부
0: 실패
1: 성공
3: 실패(timeout)
api
Object
API 호출 공통 데이터
success
Boolean
API 서버 정상 응답 여부
cost
Integer
API 호출 요금
ms
Integer
API 응답 시간
pl_id
Integer
API 결제 로그 ID

예시

요청 예시
  • 비트코인
  • 이더리움
  • 모네로

curl -k -X POST "https://apick.app/rest/search_block/bitcoin/100000/2" \
-H "CL_AUTH_KEY: $API_KEY"
            

curl -k -X POST "https://apick.app/rest/search_block/ethereum/123456/1" \
-H "CL_AUTH_KEY: $API_KEY"
            

curl -k -X POST "https://apick.app/rest/search_block/monero/3078176/1" \
-H "CL_AUTH_KEY: $API_KEY"
            
응답 예시
  • 비트코인
  • 이더리움
  • 모네로

{
    "data": {
        "block": {
            "id": 100000,
            "hash": "000000000003ba27aa200b1cecaad478d2b00432346c3f1f3986da1afd33e506",
            "date": "2010-12-29",
            "time": "2010-12-29 11:57:43",
            "median_time": "2010-12-29 11:37:00",
            "size": 957,
            "stripped_size": 957,
            "weight": 3828,
            "version": 1,
            "version_hex": "1",
            "version_bits": "000000000000000000000000000001",
            "merkle_root": "f3e94742aca4b5ef85488dc37c06c3282295ffec960994b2c0d5ac2a25a95766",
            "nonce": 274148111,
            "bits": 453281356,
            "difficulty": 14484.162361225,
            "chainwork": "0000000000000000000000000000000000000000000000000644cb7f5234089e",
            "coinbase_data_hex": "044c86041b020602",
            "transaction_count": 4,
            "witness_count": 0,
            "input_count": 4,
            "output_count": 6,
            "input_total": 5301000000,
            "input_total_usd": 14.3127,
            "output_total": 10301000000,
            "output_total_usd": 27.8127,
            "fee_total": 0,
            "fee_total_usd": 0,
            "fee_per_kb": 0,
            "fee_per_kb_usd": 0,
            "fee_per_kwu": 0,
            "fee_per_kwu_usd": 0,
            "cdd_total": 349.79967997685,
            "generation": 5000000000,
            "generation_usd": 13.500001,
            "reward": 5000000000,
            "reward_usd": 13.500001,
            "guessed_miner": "Unknown"
        },
        "transactions": [
            {
                "transaction": {
                    "block_id": 100000,
                    "id": 216575,
                    "hash": "6359f0868171b1d194cbee1af2f16ea598ae8fad666d9b012c8ed2b79a236ec4",
                    "date": "2010-12-29",
                    "time": "2010-12-29 11:57:43",
                    "size": 257,
                    "weight": 1028,
                    "version": 1,
                    "lock_time": 0,
                    "is_coinbase": false,
                    "has_witness": false,
                    "input_count": 1,
                    "output_count": 2,
                    "input_total": 300000000,
                    "input_total_usd": 0.81000006,
                    "output_total": 300000000,
                    "output_total_usd": 0.81000006,
                    "fee": 0,
                    "fee_usd": 0,
                    "fee_per_kb": 0,
                    "fee_per_kb_usd": 0,
                    "fee_per_kwu": 0,
                    "fee_per_kwu_usd": 0,
                    "cdd_total": 54.068159722222,
                    "is_rbf": false,
                    "confirm": 724438
                },
                "inputs": [
                    {
                        "block_id": 97003,
                        "transaction_id": 205760,
                        "index": 1,
                        "transaction_hash": "cf4e2978d0611ce46592e02d7e7daf8627a316ab69759a9f3df109a7f2bf3ec3",
                        "date": "2010-12-11",
                        "time": "2010-12-11 11:25:00",
                        "value": 300000000,
                        "value_usd": 0.57,
                        "recipient": "15vScfMHNrXN4QvWe54q5hwfVoYwG79CS1",
                        "type": "pubkeyhash",
                        "script_hex": "76a91435fbee6a3bf8d99f17724ec54787567393a8a6b188ac",
                        "is_from_coinbase": false,
                        "is_spendable": null,
                        "is_spent": true,
                        "spending_block_id": 100000,
                        "spending_transaction_id": 216575,
                        "spending_index": 0,
                        "spending_transaction_hash": "6359f0868171b1d194cbee1af2f16ea598ae8fad666d9b012c8ed2b79a236ec4",
                        "spending_date": "2010-12-29",
                        "spending_time": "2010-12-29 11:57:43",
                        "spending_value_usd": 0.81000006,
                        "spending_sequence": 4294967295,
                        "spending_signature_hex": "4730440220032d30df5ee6f57fa46cddb5eb8d0d9fe8de6b342d27942ae90a3231e0ba333e02203deee8060fdc70230a7f5b4ad7d7bc3e628cbe219a886b84269eaeb81e26b4fe014104ae31c31bf91278d99b8377a35bbce5b27d9fff15456839e919453fc7b3f721f0ba403ff96c9deeb680e5fd341c0fc3a7b90da4631ee39560639db462e9cb850f",
                        "spending_witness": "",
                        "lifespan": 1557163,
                        "cdd": 54.06815972222222
                    }
                ],
                "outputs": [
                    {
                        "block_id": 100000,
                        "transaction_id": 216575,
                        "index": 0,
                        "transaction_hash": "6359f0868171b1d194cbee1af2f16ea598ae8fad666d9b012c8ed2b79a236ec4",
                        "date": "2010-12-29",
                        "time": "2010-12-29 11:57:43",
                        "value": 1000000,
                        "value_usd": 0.0027,
                        "recipient": "1H8ANdafjpqYntniT3Ddxh4xPBMCSz33pj",
                        "type": "pubkeyhash",
                        "script_hex": "76a914b0dcbf97eabf4404e31d952477ce822dadbe7e1088ac",
                        "is_from_coinbase": false,
                        "is_spendable": null,
                        "is_spent": true,
                        "spending_block_id": 100025,
                        "spending_transaction_id": 216717,
                        "spending_index": 0,
                        "spending_transaction_hash": "ae1933ba2b7dc9702c96b99fb00f1df1392d9dea998a24b88d61974e8da8d2ab",
                        "spending_date": "2010-12-29",
                        "spending_time": "2010-12-29 15:48:43",
                        "spending_value_usd": 0.0027,
                        "spending_sequence": 4294967295,
                        "spending_signature_hex": "483045022100ac593d807983e0b6e0566ad2937265391958f63b721f306ed579ba2fa0c8eef6022004f71896ddbfb9d8653e643203403ebe5559be9c5ebe47cd5ab73bb6bf88858b0141049ffef12f41d8ff71c0df70c8e937cc11dbd4d616f488f2dd025da21e6bd296bb1b2635a5f884d6726d32c79d6d8d4703875b328de2a567e5b4b04baee5389693",
                        "spending_witness": "",
                        "lifespan": 13860,
                        "cdd": 0
                    },
                    {
                        "block_id": 100000,
                        "transaction_id": 216575,
                        "index": 1,
                        "transaction_hash": "6359f0868171b1d194cbee1af2f16ea598ae8fad666d9b012c8ed2b79a236ec4",
                        "date": "2010-12-29",
                        "time": "2010-12-29 11:57:43",
                        "value": 299000000,
                        "value_usd": 0.80730003,
                        "recipient": "1Am9UTGfdnxabvcywYG2hvzr6qK8T3oUZT",
                        "type": "pubkeyhash",
                        "script_hex": "76a9146b1281eec25ab4e1e0793ff4e08ab1abb3409cd988ac",
                        "is_from_coinbase": false,
                        "is_spendable": null,
                        "is_spent": true,
                        "spending_block_id": 107340,
                        "spending_transaction_id": 263164,
                        "spending_index": 3,
                        "spending_transaction_hash": "20ed3fc9688a13fceeae5fdd606266c351b1f15b90404d9df387644e4c3d5b90",
                        "spending_date": "2011-02-10",
                        "spending_time": "2011-02-10 22:38:04",
                        "spending_value_usd": 2.8704,
                        "spending_sequence": 4294967295,
                        "spending_signature_hex": "483045022002b7b4a19a223c1cdf3bfb3f1a158ae9b4b5ddc2bb3cb247c92d54d13e6e22a9022100eee20a72e038185b067a1f13c2e9e84b6aa862dee1bfc699e456fb5ecbe18dec01410477c758f3a8bfb6ae3e1b681a0e73aa752669e5c97ecb7498e7af8f4db33c373ca53d4fe38eef86a812bb4f8ada11e2b5fdf9f0bc90d8e56865d0e636bebf3adf",
                        "spending_witness": "",
                        "lifespan": 3753621,
                        "cdd": 86.889375
                    }
                ]
            },
            {
                "transaction": {
                    "block_id": 100000,
                    "id": 216576,
                    "hash": "e9a66845e05d5abc0ad04ec80f774a7e585c6e8db975962d069a522137b80c1d",
                    "date": "2010-12-29",
                    "time": "2010-12-29 11:57:43",
                    "size": 225,
                    "weight": 900,
                    "version": 1,
                    "lock_time": 0,
                    "is_coinbase": false,
                    "has_witness": false,
                    "input_count": 1,
                    "output_count": 1,
                    "input_total": 1000000,
                    "input_total_usd": 0.0027,
                    "output_total": 1000000,
                    "output_total_usd": 0.0027,
                    "fee": 0,
                    "fee_usd": 0,
                    "fee_per_kb": 0,
                    "fee_per_kb_usd": 0,
                    "fee_per_kwu": 0,
                    "fee_per_kwu_usd": 0,
                    "cdd_total": 0.011034143518519,
                    "is_rbf": false,
                    "confirm": 724438
                },
                "inputs": [
                    {
                        "block_id": 99811,
                        "transaction_id": 215898,
                        "index": 0,
                        "transaction_hash": "f4515fed3dc4a19b90a317b9840c243bac26114cf637522373a7d486b372600b",
                        "date": "2010-12-28",
                        "time": "2010-12-28 09:28:48",
                        "value": 1000000,
                        "value_usd": 0.0026,
                        "recipient": "1JxDJCyWNakZ5kECKdCU9Zka6mh34mZ7B2",
                        "type": "pubkeyhash",
                        "script_hex": "76a914c4eb47ecfdcf609a1848ee79acc2fa49d3caad7088ac",
                        "is_from_coinbase": false,
                        "is_spendable": null,
                        "is_spent": true,
                        "spending_block_id": 100000,
                        "spending_transaction_id": 216576,
                        "spending_index": 0,
                        "spending_transaction_hash": "e9a66845e05d5abc0ad04ec80f774a7e585c6e8db975962d069a522137b80c1d",
                        "spending_date": "2010-12-29",
                        "spending_time": "2010-12-29 11:57:43",
                        "spending_value_usd": 0.0027,
                        "spending_sequence": 4294967295,
                        "spending_signature_hex": "493046022100bb1ad26df930a51cce110cf44f7a48c3c561fd977500b1ae5d6b6fd13d0b3f4a022100c5b42951acedff14abba2736fd574bdb465f3e6f8da12e2c5303954aca7f78f3014104a7135bfe824c97ecc01ec7d7e336185c81e2aa2c41ab175407c09484ce9694b44953fcb751206564a9c24dd094d42fdbfdd5aad3e063ce6af4cfaaea4ea14fbb",
                        "spending_witness": "",
                        "lifespan": 95335,
                        "cdd": 0
                    }
                ],
                "outputs": [
                    {
                        "block_id": 100000,
                        "transaction_id": 216576,
                        "index": 0,
                        "transaction_hash": "e9a66845e05d5abc0ad04ec80f774a7e585c6e8db975962d069a522137b80c1d",
                        "date": "2010-12-29",
                        "time": "2010-12-29 11:57:43",
                        "value": 1000000,
                        "value_usd": 0.0027,
                        "recipient": "16FuTPaeRSPVxxCnwQmdyx2PQWxX6HWzhQ",
                        "type": "pubkeyhash",
                        "script_hex": "76a91439aa3d569e06a1d7926dc4be1193c99bf2eb9ee088ac",
                        "is_from_coinbase": false,
                        "is_spendable": null,
                        "is_spent": true,
                        "spending_block_id": 100078,
                        "spending_transaction_id": 216863,
                        "spending_index": 1,
                        "spending_transaction_hash": "1ebf2dd645b815a59e35485dd4ceebc0587a1b7588b810e42085b479ce507bfa",
                        "spending_date": "2010-12-29",
                        "spending_time": "2010-12-29 23:54:19",
                        "spending_value_usd": 0.0027,
                        "spending_sequence": 4294967295,
                        "spending_signature_hex": "47304402205ddfdcad3a8511a6d36fffb6fce1761dc9d4108c1b4cdb5faa7e8c29d739fc3402202220e21e7fe53d60bb7881517ec8b38f8977232dfde583d96fc9dc34de45c171014104138d152dfbe4017547582f7dc8570500708da8868e9a0896f06a927d76ea8af82699f034adca2270e064602dc7a27f1b42fa4d33686e85528895317f268eacd7",
                        "spending_witness": "",
                        "lifespan": 42996,
                        "cdd": 0
                    }
                ]
            }
        ],
        "success": 1
    },
    "api": {
        "success": true,
        "cost": 10,
        "ms": 2023,
        "pl_id": 1595678
    }
}
            

{
    "data": {
        "block": {
            "id": 123456,
            "hash": "0xbd4724b58e5cfb067dde370ad228902c93a7e077fc41e68bf3963cc1c7dc7635",
            "date": "2015-08-22",
            "time": "2015-08-22 02:51:39",
            "size": 541,
            "miner": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5",
            "extra_data_hex": "d783010002844765746887676f312e342e32856c696e7578",
            "difficulty": 4505282870523,
            "gas_used": 0,
            "gas_limit": 3141592,
            "base_fee_per_gas": null,
            "logs_bloom": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
            "mix_hash": "84d4162717b039a996ffaf59a54158443c62201b76170b02dbad626cca3226d5",
            "nonce": "17633989471541170866",
            "receipts_root": "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "sha3_uncles": "1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
            "state_root": "10683bde3ab88bd4165387e0ccb855af948ba2939edc3cab47d9a06784df4c4b",
            "total_difficulty": "271416325729459195",
            "transactions_root": "56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "uncle_count": 0,
            "transaction_count": 0,
            "synthetic_transaction_count": 1,
            "call_count": 0,
            "synthetic_call_count": 1,
            "value_total": "5000000000000000000",
            "value_total_usd": 6.65000319480896,
            "internal_value_total": "5000000000000000000",
            "internal_value_total_usd": 6.65000319480896,
            "generation": "5000000000000000000",
            "generation_usd": 6.65000319480896,
            "uncle_generation": "0",
            "uncle_generation_usd": 0,
            "fee_total": "0",
            "fee_total_usd": 0,
            "burned_total": null,
            "reward": "5000000000000000000",
            "reward_usd": 6.65000319480896
        },
        "uncles": [],
        "transactions": [],
        "synthetic_transactions": [],
        "success": 1
    },
    "api": {
        "success": true,
        "cost": 10,
        "ms": 1061,
        "pl_id": 9433786
    }
}
            

{
    "data": {
        "block_height": 3078176,
        "current_height": 3078182,
        "hash": "cdd31983a89e3830fb92adde9661005acade7873c617e5afbd8d96dae2bc3484",
        "size": 106,
        "timestamp": 1707208201,
        "timestamp_utc": "2024-02-06 08:30:01",
        "txs": [
            {
                "coinbase": true,
                "extra": "01352b9c7b05cb2c4819c8d7f17a66623ebeaff48436c75ffe4fbd88fec980a86c0211000000edec440100000000000000000000",
                "mixin": 0,
                "payment_id": "",
                "payment_id8": "",
                "rct_type": 0,
                "tx_fee": 0,
                "tx_hash": "26489171a4d5b43d730fb544c2787c92777d037281afb152ca2cdc0a16613922",
                "tx_size": 106,
                "tx_version": 2,
                "xmr_inputs": 0,
                "xmr_outputs": 600000000000
            }
        ],
        "coinbase_tx": {
            "block_height": 3078176,
            "coinbase": true,
            "confirmations": 6,
            "current_height": 3078182,
            "extra": "01352b9c7b05cb2c4819c8d7f17a66623ebeaff48436c75ffe4fbd88fec980a86c0211000000edec440100000000000000000000",
            "inputs": null,
            "mixin": 0,
            "outputs": [
                {
                    "amount": 600000000000,
                    "public_key": "25902eb2d6a2bcfe923d4b47862c339109130a4fcaf570dee2c952333e5f93a9"
                }
            ],
            "payment_id": "",
            "payment_id8": "",
            "rct_type": 0,
            "timestamp": 1707208201,
            "timestamp_utc": "2024-02-06 08:30:01",
            "tx_fee": 0,
            "tx_hash": "26489171a4d5b43d730fb544c2787c92777d037281afb152ca2cdc0a16613922",
            "tx_size": 106,
            "tx_version": 2,
            "xmr_inputs": 0,
            "xmr_outputs": 600000000000
        },
        "success": 1
    },
    "api": {
        "success": true,
        "cost": 10,
        "ms": 1866,
        "pl_id": 9452858
    }
}
            
현재 페이지 북마크