요금GitHub대시보드

Zcash

decodescript8 크레딧

hex 인코딩된 스크립트를 디코딩합니다.

네트워크: zcash

매개변수

이름타입설명
hexstringstringHex 인코딩된 스크립트.

반환값

타입

Object

asm, type, desc, address(정의된 경우), 그리고 래핑된 형태에 대한 p2sh와 segwit 객체(asm, hex, type, address, desc, p2sh-segwit). 이전 버전은 reqSigs와 addresses도 반환합니다.

코드 예제

curl https://holy-burned-sky-zcash-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "decodescript",
  "params": [
    "76a91489abcdefabbaabbaabbaabbaabbaabbaabbaabba88ac"
  ]
}'