Libraview.org - a huge update of the explorer

Where are you getting the submit options, I’m not able to see it.

libra% dev
usage: dev

Use the following args for this command:

compile | c <sender_account_address>|<sender_account_ref_id> <file_path> <module|script> [output_file_path (compile into tmp file by default)]
Compile move program
publish | p <sender_account_address>|<sender_account_ref_id> <compiled_module_path>
Publish move module on-chain
execute | e <sender_account_address>|<sender_account_ref_id> <compiled_module_path> [parameters]
Execute custom move script

submit/submitb is shown as an unknown command

@kldpsahu I checked, libra remove option submit
I think you need use publish command

PS: But if you want deployed contract in blockchain you need start your own test network

What resources are needed to switch your scanner to a private network?

Hi Rio ,
Could you guide me how i can create my own Libra network.?
run this command for " 4. Building transaction"
ubuntu@ip-172-31-7-79:~/libra$ ./target/debug/transaction_builder 225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff 0 ./test/out.program out.txn --args 0x375d048ab6ba861852f44b45c6e7554c5d2e4998ceaa0638cbcbd89d506fbed8 10

and when sending the Transaction in Libra Cli by below command :–
libra% dev publish 0x225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff /home/ubuntu/libra/out.txn
invalid escape at line 2 column 10

getting the “invalid escape at line 2 column 10” from “Libra%” console.
Kindly help me is it any issue in “/home/ubuntu/libra/out.txn” .

Regards,
Rakesh Kumar Jha

@rakesh0006 If you just want to run testnet locally, you can use libra_swarm package. For example, cargo run -p libra_swarm -- -s

Hi Rio ,
following the below link , it run "cargo run -p libra_swarm – -s
"
Link :“https://medium.com/featly/how-to-compile-and-deploy-move-transaction-script-on-libra-local-network-4b03e0ff5cbd

even though i am getting the issue as below :–
4. Building transaction

 transaction_builder <sender> <sequence_number> <program> <output> --args <payee> <amount>

ubuntu@ip-172-31-7-79:~/libra$ ./target/debug/transaction_builder 225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff 0 ./test/out.program out.txn --args 0x375d048ab6ba861852f44b45c6e7554c5d2e4998ceaa0638cbcbd89d506fbed8 10 – Successful
5. Sending transaction
submitb <path_to_raw_transaction>

libra% dev publish 0x225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff out.txn
invalid escape at line 2 column 10 ----- error message
libra% dev publish 0x225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff /home/ubuntu/libra/out.txn
invalid escape at line 2 column 10 ---- error message

Can u help me regarding this please ?
we can reach on 9538905728 for more detail information.

Regards,
Rakesh kumar Jha

@Rio900 ,
following the below link , it run “cargo run -p libra_swarm – -s” for Local network.
Link :“https://medium.com/featly/how-to-compile-and-deploy-move-transaction-script-on-libra-local-network-4b03e0ff5cbd”

even though i am getting the issue as below :–
4. Building transaction

 transaction_builder <sender> <sequence_number> <program> <output> --args <payee> <amount>

ubuntu@ip-172-31-7-79:~/libra$ ./target/debug/transaction_builder 225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff 0 ./test/out.program out.txn --args 0x375d048ab6ba861852f44b45c6e7554c5d2e4998ceaa0638cbcbd89d506fbed8 10 – Successful
5. Sending transaction
submitb <path_to_raw_transaction>

libra% dev publish 0x225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff out.txn
invalid escape at line 2 column 10 ----- error message
libra% dev publish 0x225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff /home/ubuntu/libra/out.txn
invalid escape at line 2 column 10 ---- error message

Can u help me regarding this please ?
we can reach on 9538905728 for more detail information.

Regards,
Rakesh kumar Jha

@rakesh0006 I don’t know what is the error
I think this guys know: Compile and Deploy smart contract in local testnet

:seedling: Be careful with the new update of testnet, RawTransaction has Payloads Script,WriteSet, Module, Program
If somebody can publish module to testnet, please let me know

@rakesh0006,
I installed the validator node on azure and deployed two modules and one script there. I think for you the next steps may be interesting if you haven’t solved your problem yet.

  1. Create virtual machine 2 CPU, 4 RAM Ubuntu Server 18.04 LTS
  2. git clone https://github.com/libra/libra.git && cd libra
  3. ./scripts/dev_setup.sh
  4. sudo apt install cargo
  5. export PATH="$HOME/.cargo/bin:$PATH"
  6. rustup install nightly
  7. cargo run -p libra_swarm -- -s
    (in this step you have to wait till node starts running)
    Next steps will be in libra terminal
  8. a c
  9. a c
  10. a m 0 100
  11. dev c 0 /home/rio/libracontracts/VTest.mvir module
  12. dev p 0 /tmp/4478acd617bdab8bc997d2c99278b25f (this path I copied from the previous step)
  13. dev c 0 /home/rio/libracontracts/RTest.mvir module
  14. dev p 0 /tmp/55558acd617bdab8bc997d2c9921234a (this path I copied from the previous step)
  15. compile script : dev c 0 /home/rio/libracontracts/RV.mvir script
  16. execute script: dev e 0 /tmp/4478acd617bdab8bc997d2c99278b25f (this path I copied from the previous step)

Scripts and modules:

Important: Replace it {{default}} on your address with 0x, like this 0x464ee99215ecf7e7e8420e481d4f5cf9213c94e9aa4f0ebe79f6d4cde8c8d88f
as a result you’ll get:
{{default}}.RTest => 0x464ee99215ecf7e7e8420e481d4f5cf9213c94e9aa4f0ebe79f6d4cde8c8d88f.RTest

@Rio900 ,
We are trying to compile and deploy the code in Local Libra network using the link “https://medium.com/featly/how-to-compile-and-deploy-move-transaction-script-on-libra-local-network-4b03e0ff5cbd” . Here we are facing during last steps " 5. Sending transaction" . Here seems like something wrong inside “out.txn” .
4. Building transaction

 transaction_builder <sender> <sequence_number> <program> <output> --args <payee> <amount>

ubuntu@ip-172-31-7-79:~/libra$ ./target/debug/transaction_builder 225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff 0 ./test/out.program out.txn --args 0x375d048ab6ba861852f44b45c6e7554c5d2e4998ceaa0638cbcbd89d506fbed8 10 – Successful

  1. Sending transaction
    submitb <path_to_raw_transaction>

libra% dev publish 0x225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff out.txn
invalid escape at line 2 column 10 ----- error message
libra% dev publish 0x225f4e74824d4d5c77f3d692101f1d29e8a67656b9b95f3ca85446f94dbdc3ff /home/ubuntu/libra/out.txn
invalid escape at line 2 column 10 ---- error message

Can you call me on my number 9538905728 for more details ?

Regards,
Rakesh Kumar Jha

Blockchain libra is changing fast, i am afraid that information in the article can be outdated. If you want to deploy a contract in your local node use steps from the post above

I stared your project “libra-csharp-sdk”.I got an wrong result when i run “private CustomTransactionFullInfo GetCustomTransactionFullInfo(SignedTransaction transaction,
TransactionInfo info)”.SignedTxn is empty ! I have no idea…

Do you connect to testnet node?

yes,i got the account info successfully

Func “GetTransactionsBySequenceNumberAsync” has the same problem

@Dwgoing, thank you for letting me know about the problem
i updated proto, please pull changhes and now it works fine

thanks for all:smiley:

1 Like

Let see what will come up

Libra testnet was updated, Use LCS for parse Raw Transaction.
The update is huge. :seedling:
libraview.org - is ready to use

@Dwgoing, i have updated C# sdk on new testnet launch (with LCS).