Skip to content

shaokun11/test-subnet-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movement Subnet

Currently deployed on the Avalanche Fuji network, you can access it through the following script

Subnet and Move EVM Explorer

https://explorer.devnet.m1.movementlabs.xyz

Subnet and Move EVM Native Token Birdge

https://evm-bridge.devnet.m1.movementlabs.xyz

Subnet Native Token Faucet

  1. Replace <replace_with_move_address> with your desired move address and execute the command in the command line:
curl https://devnet.m1.movementlabs.xyz/v1/faucet?address=<replace_with_move_address>
  1. Open https://evm-bridge.devnet.m1.movementlabs.xyz/#/Faucet, enter your move address in the input field, and click on the "Request" button to proceed.

Move Evm Native Token Faucet

  1. Replace <replace_with_eth_address> with your desired ethereum address and execute the command in the command line.
curl https://mevm.devnet.m1.movementlabs.xyz/v1/eth_faucet?address=<replace_with_eth_address>
  1. First, claim the Native token through subnet faucet and then bridge it to Move Evm using https://evm-bridge.devnet.m1.movementlabs.xyz.

Subnet Chain ID

2vUTKYZBbLtXnfCL2RF5XEChZf1wxVYQqxZQQCShMmseSKSiee

Subnet JSON-RPC Endpoint

https://subnet.devnet.m1.movementlabs.xyz/v1
curl -X POST --data '{
  "jsonrpc": "2.0",
  "id"     : 1,
  "method" : "getTransactionByHash",
  "params" : [{"data":"1f073fce3c2390d68a95289dc81df9dad1d0fa07541da5da4e1b46241f4bd24e"}]
}' -H 'content-type:application/json;'  https://subnet.devnet.m1.movementlabs.xyz/v1/ext/bc/2vUTKYZBbLtXnfCL2RF5XEChZf1wxVYQqxZQQCShMmseSKSiee/rpc

Subnet Restful Endpoint

https://devnet.m1.movementlabs.xyz/v1
const { AptosClient } = require("aptos");
const NODE_URL = "https://devnet.m1.movementlabs.xyz/v1";
const client = new AptosClient(NODE_URL);

getLedgerInfo();

async function getLedgerInfo() {
    let info = await client.getLedgerInfo();
    console.log(info);
}
{
  chain_id: 4,
  epoch: '35',
  ledger_version: '1375',
  oldest_ledger_version: '0',
  ledger_timestamp: '1702359642904612',
  node_role: 'validator',
  oldest_block_height: '0',
  block_height: '481',
  git_hash: '656c604422eb6d3ef21831adc0c18bf77ddf8767'
}

Move Evm JSON-RPC Endpoint

chainId 336 (0x150)

https://mevm.devnet.m1.movementlabs.xyz/v1
const { Web3 } = require("web3");

getTransactionReceipt();

async function getTransactionReceipt() {
    const web3 = new Web3(new Web3.providers.HttpProvider("https://mevm.devnet.m1.movementlabs.xyz/v1"));
    const res = await web3.eth.getTransactionReceipt(
        "0x43465b887a3f4655f80b1b241ce08164f77a29ea704b6bcfd5004031c1982ff9"
    );
    console.log(res);
}
{
  blockHash: '0xc10eda86c48a12b2c8dcbe61c786409a3b1602df03458167a531a59f580cb0bc',
  blockNumber: 458n,
  cumulativeGasUsed: 0n,
  effectiveGasPrice: 0n,
  from: '0xedd3bce148f5acffd4ae7589d12cf51f7e4788c6',
  gasUsed: 919n,
  logs: [],
  to: '0x3dc950aceda4cafb74d38530e839cca58dda527d',
  logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
  status: 1n,
  transactionHash: '0x43465b887a3f4655f80b1b241ce08164f77a29ea704b6bcfd5004031c1982ff9',
  transactionIndex: 0n,
  type: 0n
}

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published