- Alice의 Hbar를 Bob이 전송할수 있게 권한을 설정한다.
- 권한을 설정할때 Hbar 갯수도 지정하는데 이 이상 권한을 행사핧수가 없다.
- 토큰이 아닌 Hbar를 전송한다.
- 새로 어카운트를 생성하고 Hbar를 전송한 후 hollow account(빈 계정)을 사용해서 계정 정보를 추룰한다.
- public key가 있는 정보와 없는 정보로 구분해서 추출한다.
- Sample 1 : NFT 생성하고, 민팅하고, 새로운 alias 어카운트를 생성하고, 전송을 한후, NFT 소유자 정보를 통해 어카운트 정보를 추출한다.
- Sample 2 : Token 생성하고, 새로운 alias 어카운트를 생성하고, 전송을 한후, 전송된 발란스를 사용해서 어카운트 정보를 추출한다.
- 새로운 alias 어카운트를 생성하고 Hbar를 전송
- 16초 내에서 topic를 생성한다.
- topic 생성인데...
에러 발생
for topic 0.0.3571695
wait to propagate...
panic: interface conversion: interface {} is hedera.TransactionResponse, not *services.Response
goroutine 1 [running]:
github.com/hashgraph/hedera-sdk-go/v2.(*TransactionReceiptQuery).Execute(0xc0002a61a0, 0xc00022fb00)
/Users/snoopy_kr/Apps/Go/pkg/mod/github.com/hashgraph/hedera-sdk-go/[email protected]/transaction_receipt_query.go:138 +0x4d0
github.com/hashgraph/hedera-sdk-go/v2.TransactionResponse.GetReceipt({{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, ...}, ...}, ...)
/Users/snoopy_kr/Apps/Go/pkg/mod/github.com/hashgraph/hedera-sdk-go/[email protected]/transaction_response.go:58 +0x3c5
main.main()
/Users/snoopy_kr/Working/GoLand/hedera_sdk_demo/consensus_pub_sub_chunked/main.go:149 +0x1025
Process finished with the exit code 2
- 새로운 어카운트 생성, 토픽 생성. 토픽을 구독한다.
- addreessbook은 어디서 사용이 되는지...
- CONFIG_FILE은 어디서 찾을수 있을지...
- 라이브러리...
- 일반적인 어카운트 생성
- alias 어카운트 생성
- alias 어카운트 생성
- 받는 놈도 사인 필요...
- threshold라는 것을 이용했는데 뭔지 모르겠다.
threshold 파악
- 파일이라는 개념은 있지만 실제로 파일 존재하는지 알수가 없다.
- 컨트렉트를 디플로이하고 호출하고...
sol => json 추출하는 방법은 목색
에러
Stateful contract example
Contract bytecode size: 2478 bytes
contract bytecode file: 0.0.3572872
panic: exceptional receipt status: INSUFFICIENT_GAS : error retrieving contract creation record
goroutine 1 [running]:
main.main()
/Users/snoopy_kr/Working/GoLand/hedera_sdk_demo/create_stateful_contract/main.go:128 +0x268e
Process finished with the exit code 2
에러
Alice: 0.0.3572882
Bob: 0.0.3572883
Charlie: 0.0.3572884
TokenID: 0.0.3572885
Custom Fees according to TokenInfoQuery:
feeCollectorAccountID: 0.0.3572882, amount: 100000000
Alice's Hbar balance before Bob transfers 20 tokens to Charlie: 10 ℏ
Alice's Hbar balance after Bob transfers 20 tokens to Charlie: 11 ℏ
Assessed fees according to transaction record:
feeCollectorAccountID: 0.0.3572882, amount: 100000000, payerAccountIds: 0.0.3572883
Custom Fees according to TokenInfoQuery:
feeCollectorAccountID: 0.0.3572882, numerator: 1, denominator: 10, min: 1, Max: 10, assessmentMethod: FeeAssessmentMethodInclusive
Alice's token balance before Bob transfers 20 tokens to Charlie: 0
Alice's token balance after Bob transfers 20 tokens to Charlie: 2
Token transfers according to transaction record:
for token 0.0.3572885: accountID: 0.0.3572882, amount: 2 accountID: 0.0.3572883, amount: -20 accountID: 0.0.3572884, amount: 18
Assessed fees according to transaction record:
feeCollectorAccountID: 0.0.3572882, amount: 2, tokenID: 0.0.3572885, payerAccountIds: 0.0.3572884
panic: interface conversion: interface {} is hedera.TransactionResponse, not *services.Response
goroutine 1 [running]:
github.com/hashgraph/hedera-sdk-go/v2.(*TransactionReceiptQuery).Execute(0xc0003a09c0, 0xc00023dc20)
/Users/snoopy_kr/Apps/Go/pkg/mod/github.com/hashgraph/hedera-sdk-go/[email protected]/transaction_receipt_query.go:138 +0x4d0
github.com/hashgraph/hedera-sdk-go/v2.TransactionResponse.GetReceipt({{0xc00095c060, 0xc000956270, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, ...}, ...}, ...)
/Users/snoopy_kr/Apps/Go/pkg/mod/github.com/hashgraph/hedera-sdk-go/[email protected]/transaction_response.go:58 +0x3c5
main.main()
/Users/snoopy_kr/Working/GoLand/hedera_sdk_demo/custom_fees/main.go:468 +0x49a5
Process finished with the exit code 2