Bitcoin 트랜잭션을 이해하려고합니다. 내가 사용하는 Bitcore Javascript Library.Bitcore로 간단한 1 대 1 Bitcoin 트랜잭션
나는 소스 Wallet1 (Address1/PublicKey1 및 PrivateKey1) - 10 Bitcoins (단순화)가있다.
이제 친구가 내 Wallet2 (Address2/PublicKey2)를 제공하고 Bitcoin 1 개를 받고 싶습니다.
var transaction = new Transaction()
.from(utxos) // Feed information about what unspent outputs one can use
.to(address, amount) // Add an output with the given amount of satoshis
.change(address) // Sets up a change address where the rest of the funds will go
.fee(5430) // Minimum non-dust amount
.sign(privkeySet) // Signs all the inputs it can
하지만 이러한 질문이 있습니다 : 나는 간단한 트랜잭션 (1 : 1) 코드는 다음과 같습니다에 대한 documentation 다음 읽을 때
는
- 인수 무엇입니까
utxos
int는.from(utxos)
함수입니다. 내 Wallet1의 PublicKey1입니까? .to(address)
함수의 인수address
이 내 친구 Wallet2의 PublicKey2입니까?change(address)
함수에 대한 인수address
은 새 Wallet3에 속하는 Address3이며, 트랜잭션을 만들기 직전에 작성해야합니다. =>이 말은 내가이 Wallet3의 PrivateKey3를 알아야한다는 것을 의미하며 이것은 나머지 9 Bitcoins를 얻을 Wallet3입니까? =>이.change(address)
기능을 사용하지 않고 트랜잭션을 수행 할 수 있습니까? 내가 말하면, 9 비트 동전의 나머지 부분을 새 주소로 전송하고 싶지는 않습니까? 원래 Wallet1에 있어야합니다..fee(5430)
은이 거래에 5430 Satoshi = USD $ 0.2337424950을 쓸 것을 의미합니까?.sign(privkeySet)
함수의privkeySet
은 원래 Wallet1의 PrivateKey1 함수입니까? 이.sign()
기능 후에 트랜잭션이 '해고'되고 작업이 완료됩니까?지원해 주셔서 감사합니다. 인수 utxos 무엇