jovay-interaction-skill
by @jovay-developer
Skill for interacting with Jovay or Ethereum network using jovay-cli
jovay wallet balance
For ERC20 token balance, use:
jovay wallet balance --token 0x
jovay wallet transfer --amount 10000000000000000 --to 0x1234...abcd --broadcast
jovay contract call \
--contract 0x \
--method balanceOf \
--inputs address \
--outputs uint256 \
--args '"0x"'
jovay contract call \
--contract 0x \
--method getTokenInfo \
--abi ./path/to/abi.json \
--args '"0x"'
jovay contract call \
--contract 0x \
--method processOrder \
--inputs "address,(uint256,string)" \
--outputs "bool" \
--args '"0x", [1000, "order-123"]'
--broadcast to actually send it.
jovay contract write \
--contract 0x \
--method transfer \
--inputs "address,uint256" \
--args '"0x", 1000000000000000000' \
--broadcast
--value to specify the amount in Wei.
jovay contract write \
--contract 0x \
--method mint \
--inputs "uint256" \
--args '1' \
--value 100000000000000000 \
--broadcast
This sends 0.1 ETH (100000000000000000 Wei) to mint 1 NFT.
--dry-run.
jovay contract call \
--contract 0x \
--method approve \
--inputs "address,uint256" \
--args '"0x", 1000000' \
--dry-run
This outputs the encoded function data that can be used in other tools or transactions.
--l1 flag.
jovay contract call \
--contract 0x \
--method balanceOf \
--inputs address \
--outputs uint256 \
--args '"0x"' \
--l1
--enc-key.
jovay contract write \
--contract 0x \
--method setApprovalForAll \
--inputs "address,bool" \
--args '"0x", true' \
--enc-key "your-encryption-password" \
--broadcast
First, ensure you're on testnet:
jovay network switch --network testnet
Then request airdrop:
jovay wallet airdrop
--gas-limit 500000 (or higher) so the deposit passes the bridge check.
jovay bridge deposit --amount 100000000000000000 --to 0x --gas-limit 500000 --broadcast
Step 1 - Initiate withdrawal on L2:
jovay bridge withdraw --amount 50000000000000000 --to 0x --broadcast
After this transaction is confirmed, wait for the batch to be finalized on L1 (up to 1 hour). Then get the proof data from the Jovay Explorer and run step 2.
Step 2 - Finalize on L1:
jovay bridge finalize-withdraw \
--amount 50000000000000000 \
--nonce \
--msg \
--batch-index \
--proof \
--broadcast
DepositETH event log of your L1 deposit transaction.
jovay bridge claim-deposit --msg 0x --broadcast
You can find the message data in the transaction details on an L1 block explorer (e.g., Etherscan).
npm install -g @jovaylabs/jovay-cli)clawhub install jovay-interaction-skill