Zcash
converttopsbt8 크레딧
네트워크 직렬화된 트랜잭션을 PSBT로 변환합니다.
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| hexstring | string | Hex 인코딩된 raw 트랜잭션. |
| permitsigdata | boolean | true이면 기존 서명을 제거하고, false(기본값)이면 트랜잭션에 서명이 있을 때 호출이 실패합니다. (선택) |
| iswitness | boolean | hex가 witness 직렬화 트랜잭션인지 여부. 생략하면 노드가 추측합니다. (선택) |
반환값
타입
string
Base64 인코딩된 PSBT.
코드 예제
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": "converttopsbt",
"params": [
"0200000001…"
]
}'