AXELAR Übung 3
1) Erzeugen Sie eine neue Adresse
[key-name] erfinden Sie selbst. Ich habe ogpetya eingegeben
- name: ogpetya
type: local
address: axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd
pubkey: axelarpub1addwnpepq0a2v8levq06z76k3r8c3ekyhqh5r8sjchvz6f4j55ch6x3hmuh6qwuqpze
mnemonic: ""
threshold: 0
pubkeys: []
**Important** write this mnemonic phrase in a safe place.
It is the only way to recover your account if you ever forget your password.
Fragen Sie am Faucet nach Münzen mit der Adresse aus Ihrer vorherigen Ausgabe (fett gedruckt)
axelard q bank balances [output address above]
[output address above] - Ihre Adresse (ich habe eine): axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd)
root@aleksarHELP:~# axelard q bank balances axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd
balances:
- amount: "500000"
denom: uaxl
pagination:
next_key: null
total: "0"
2) Erstellen Sie eine Bitcoin-Einzahlungsadresse (an die Sie später Münzen einzahlen werden)
axelard tx bitcoin link axelarnet [Axelar Network dst addr] --from [key-name]
[Axelar Network dst addr] - ist die Adresse, die Sie in Schritt 1 erstellt haben (meine - axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd), verbunden mit Ihrem [key-name] [key name] - ist der Name, den Sie in Schritt 1 verwendet haben (meine: ogpetya)
axelard tx bitcoin link axelarnet axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd --from ogpetya
{"height":"119208","txhash":"27683493C7D00555084AA022E305076D970FB8D7A988F14BAC9BDBD1782CD84E","codespace":"","code":0,"data":"0A480A044C696E6B1240123E74623171756A393637763766707065613032686176766A65667634643867326C716134706B79387637667839757473776D3475666D737873756B64386765","raw_log":"[{\"log\":\"successfully linked {tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge} and {axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd}\",\"events\":[{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"Link\"},{\"key\":\"module\",\"value\":\"bitcoin\"},{\"key\":\"masterKeyId\",\"value\":\"btc-master-genesis\"},{\"key\":\"secondaryKeyId\",\"value\":\"btc-secondary-genesis\"},{\"key\":\"depositAddress\",\"value\":\"tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge\"},{\"key\":\"destinationChain\",\"value\":\"Axelarnet\"},{\"key\":\"destinationAddress\",\"value\":\"axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd\"}]}]}]","logs":[{"msg_index":0,"log":"successfully linked {tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge} and {axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd}","events":[{"type":"message","attributes":[{"key":"action","value":"Link"},{"key":"module","value":"bitcoin"},{"key":"masterKeyId","value":"btc-master-genesis"},{"key":"secondaryKeyId","value":"btc-secondary-genesis"},{"key":"depositAddress","value":"tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge"},{"key":"destinationChain","value":"Axelarnet"},{"key":"destinationAddress","value":"axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd"}]}]}],"info":"","gas_wanted":"200000","gas_used":"71273","tx":null,"timestamp":""}
in der Ausgabe zu suchen: successfully linked [bitcoin deposit address] and [Axelar Network dst addr]
tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge
3) Fragen Sie am Faucet nach Test-Bitcoins (Adresse tb....... eingeben). Warten Sie auf jeden Fall 6 Bestätigungen ab. Hier überwachen.
Speichern Sie die TxID der Transaktion für den Bericht:
2259b6a1ef787105f185706c1a32a2c9cf96f9b3a4eed1f0fd74421de41efea2
4) Bestätigen Sie den Bitcoin-Ausgangspunkt
axelard tx bitcoin confirm-tx-out "[txID:vout]" "[amount]btc" "[deposit address]" --from [key-name]
Nach txID: habe ich 1 gesetzt, mit 0 hat es nicht funktioniert
axelard tx bitcoin confirm-tx-out 2259b6a1ef787105f185706c1a32a2c9cf96f9b3a4eed1f0fd74421de41efea2:1 0.0008btc tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge --from oniks
root@aleksarHELP:~# axelard tx bitcoin confirm-tx-out 2259b6a1ef787105f185706c1a32a2c9cf96f9b3a4eed1f0fd74421de41efea2:1 0.0008btc tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge --from oniks
{"height":"120738","txhash":"EDAA8934B34AA67975A690F6D2418A0AE2AC1687F6118F4308C123D1FE1A53DE","codespace":"","code":0,"data":"0A110A0F436F6E6669726D4F7574706F696E74","raw_log":"[{\"events\":[{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"ConfirmOutpoint\"}]},{\"type\":\"outpointConfirmation\",\"attributes\":[{\"key\":\"module\",\"value\":\"bitcoin\"},{\"key\":\"action\",\"value\":\"start\"},{\"key\":\"confHeight\",\"value\":\"6\"},{\"key\":\"outPointInfo\",\"value\":\"{\\\"out_point\\\":\\\"2259b6a1ef787105f185706c1a32a2c9cf96f9b3a4eed1f0fd74421de41efea2:1\\\",\\\"amount\\\":\\\"80000\\\",\\\"address\\\":\\\"tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge\\\"}\"},{\"key\":\"poll\",\"value\":\"{\\\"module\\\":\\\"bitcoin\\\",\\\"id\\\":\\\"2259b6a1ef787105f185706c1a32a2c9cf96f9b3a4eed1f0fd74421de41efea2:1_tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge_80000\\\"}\"}]}]}]","logs":[{"msg_index":0,"log":"","events":[{"type":"message","attributes":[{"key":"action","value":"ConfirmOutpoint"}]},{"type":"outpointConfirmation","attributes":[{"key":"module","value":"bitcoin"},{"key":"action","value":"start"},{"key":"confHeight","value":"6"},{"key":"outPointInfo","value":"{\"out_point\":\"2259b6a1ef787105f185706c1a32a2c9cf96f9b3a4eed1f0fd74421de41efea2:1\",\"amount\":\"80000\",\"address\":\"tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge\"}"},{"key":"poll","value":"{\"module\":\"bitcoin\",\"id\":\"2259b6a1ef787105f185706c1a32a2c9cf96f9b3a4eed1f0fd74421de41efea2:1_tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge_80000\"}"}]}]}],"info":"","gas_wanted":"200000","gas_used":"70918","tx":null,"timestamp":""}
5) Führen Sie eine schwebende Einzahlung im Axelar Network durch
axelard tx axelarnet execute-pending-transfers --from [key-name] --gas auto --gas-adjustment 1.2
[key-name] ersetzen Sie durch Ihren eigenen (ich habe ogpetya)
axelard tx axelarnet execute-pending-transfers --from oniks --gas auto --gas-adjustment 1.2
axelard tx axelarnet execute-pending-transfers --from oniks --gas auto --gas-adjustment 1.2
gas estimate: 92852
{"height":"120761","txhash":"0ED74212082F3886E94C2AE0E70CFF748FEE95DCCEB45A963AC0D2917A76C567","codespace":"","code":0,"data":"0A190A174578656375746550656E64696E675472616E7366657273","raw_log":"[{\"log\":\"successfully executed pending transfers\",\"events\":[{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"ExecutePendingTransfers\"},{\"key\":\"sender\",\"value\":\"axelar19xj4ncc6h6y5ahpfqtspdx75y3dkrxj3zpah9k\"}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd\"},{\"key\":\"sender\",\"value\":\"axelar19xj4ncc6h6y5ahpfqtspdx75y3dkrxj3zpah9k\"},{\"key\":\"amount\",\"value\":\"80000satoshi\"}]}]}]","logs":[{"msg_index":0,"log":"successfully executed pending transfers","events":[{"type":"message","attributes":[{"key":"action","value":"ExecutePendingTransfers"},{"key":"sender","value":"axelar19xj4ncc6h6y5ahpfqtspdx75y3dkrxj3zpah9k"}]},{"type":"transfer","attributes":[{"key":"recipient","value":"axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd"},{"key":"sender","value":"axelar19xj4ncc6h6y5ahpfqtspdx75y3dkrxj3zpah9k"},{"key":"amount","value":"80000satoshi"}]}]}],"info":"","gas_wanted":"92852","gas_used":"75847","tx":null,"timestamp":""}
6) Empfang der Wertmarken prüfen
axelard q bank balances [Axelar Network dst addr]
axelard q bank balances axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd
balances:
- amount: "80000"
denom: satoshi
- amount: "500000"
denom: uaxl
pagination:
next_key: null
total: "0"
UMHÜLLTE SATOSHI-TOKEN ZU VERBRENNEN UND NATIVE BITCOIN ZU ERHALTEN
1) Erstellen Sie eine Einzahlungsadresse im Axelar Network
axelard tx axelarnet link bitcoin [destination bitcoin addr] satoshi --from [key-name]
axelard tx axelarnet link bitcoin tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge satosh
{"height":"120871","txhash":"17F66EDF4CD8689028A0CCF51F70923792F975EB05810B91D6F9F913E32C8923","codespace":"","code":0,"data":"0A370A044C696E6B122F0A2D6178656C61723135366A72303072783374633077303877646179746A3871633379353979363837383065666768","raw_log":"[{\"log\":\"successfully linked {axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh} and {tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge}\",\"events\":[{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"Link\"}]}]}]","logs":[{"msg_index":0,"log":"successfully linked {axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh} and {tb1quj967v7fppea02havvjefv4d8g2lqa4pky8v7fx9utswm4ufmsxsukd8ge}","events":[{"type":"message","attributes":[{"key":"action","value":"Link"}]}]}],"info":"","gas_wanted":"200000","gas_used":"45086","tx":null,"timestamp":""}
2) Senden Sie einen Satoshi-Token über das Axelar-Netzwerk an die oben genannte Einzahlungsadresse
Bitte senden Sie nicht den gesamten Betrag, Sie benötigen Satoshi in Übung 5.
axelard tx bank send [key-name] [Axelar Network deposit address] [amount]satoshi
axelard tx bank send oniks axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh 2000satoshi
{"height":"120965","txhash":"FD5DF5B07CD15A3A3219B2775CE930D8998D687288023985AF4DF41C9A642518","codespace":"","code":0,"data":"0A060A0473656E64","raw_log":"[{\"events\":[{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"send\"},{\"key\":\"sender\",\"value\":\"axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd\"},{\"key\":\"module\",\"value\":\"bank\"}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh\"},{\"key\":\"sender\",\"value\":\"axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd\"},{\"key\":\"amount\",\"value\":\"2000satoshi\"}]}]}]","logs":[{"msg_index":0,"log":"","events":[{"type":"message","attributes":[{"key":"action","value":"send"},{"key":"sender","value":"axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd"},{"key":"module","value":"bank"}]},{"type":"transfer","attributes":[{"key":"recipient","value":"axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh"},{"key":"sender","value":"axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd"},{"key":"amount","value":"2000satoshi"}]}]}],"info":"","gas_wanted":"200000","gas_used":"57681","tx":null,"timestamp":""}
3) Bestätigen Sie die Einzahlungstransaktion
[txhash] aus dem obigen Befehl
[Betrag] ist derselbe wie der, der gesendet wurde
axelard tx axelarnet confirm-deposit [txhash] [amount]satoshi [Axelar Network deposit address] --from [my-key]
axelard tx axelarnet confirm-deposit FD5DF5B07CD15A3A3219B2775CE930D8998D687288023985AF4DF41C9A642518 2000satoshi axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh --from oniks
{"height":"121014","txhash":"B33585FEDDB9B9F631BAF52165A7299629F6F79DD851E32616DFB482DD1CD6B7","codespace":"","code":0,"data":"0A100A0E436F6E6669726D4465706F736974","raw_log":"[{\"log\":\"successfully confirmed of deposit to {axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh}\",\"events\":[{\"type\":\"depositConfirmation\",\"attributes\":[{\"key\":\"module\",\"value\":\"axelarnet\"},{\"key\":\"txID\",\"value\":\"fd5df5b07cd15a3a3219b2775ce930d8998d687288023985af4df41c9a642518\"},{\"key\":\"burnAddress\",\"value\":\"axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh\"},{\"key\":\"action\",\"value\":\"confirm\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"ConfirmDeposit\"},{\"key\":\"sender\",\"value\":\"axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh\"}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"axelar19xj4ncc6h6y5ahpfqtspdx75y3dkrxj3zpah9k\"},{\"key\":\"sender\",\"value\":\"axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh\"},{\"key\":\"amount\",\"value\":\"2000satoshi\"}]}]}]","logs":[{"msg_index":0,"log":"successfully confirmed of deposit to {axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh}","events":[{"type":"depositConfirmation","attributes":[{"key":"module","value":"axelarnet"},{"key":"txID","value":"fd5df5b07cd15a3a3219b2775ce930d8998d687288023985af4df41c9a642518"},{"key":"burnAddress","value":"axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh"},{"key":"action","value":"confirm"}]},{"type":"message","attributes":[{"key":"action","value":"ConfirmDeposit"},{"key":"sender","value":"axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh"}]},{"type":"transfer","attributes":[{"key":"recipient","value":"axelar19xj4ncc6h6y5ahpfqtspdx75y3dkrxj3zpah9k"},{"key":"sender","value":"axelar156jr00rx3tc0w08wdaytj8qc3y59y68780efgh"},{"key":"amount","value":"2000satoshi"}]}]}],"info":"","gas_wanted":"200000","gas_used":"78897","tx":null,"timestamp":""}
Überprüfung des Gleichgewichts:
axelard q bank balances axelar1e0rerhuj0l9nkv4kh8m45qam95q9wng7tx6qnd
balances:
- amount: "78000"
denom: satoshi
- amount: "500000"
denom: uaxl
pagination:
next_key: null
total: "0"