> For the complete documentation index, see [llms.txt](https://docs.metatime.com/whitepaper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.metatime.com/whitepaper/transaction.md).

# Transaction

<div><figure><img src="https://989455816-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAIzmobbGXH6E0WrRNrgp%2Fuploads%2FjPUMjpWR8DPr4wdLwTem%2Ftransaction1.png?alt=media&amp;token=161d7ceb-1055-47b2-a000-c7c7d9421956" alt=""><figcaption></figcaption></figure> <figure><img src="https://989455816-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAIzmobbGXH6E0WrRNrgp%2Fuploads%2FZvsruO9gCCqcIfBGNGpu%2Ftransaction2.png?alt=media&amp;token=514181ff-6f06-4135-b2c0-7e4adfc13c99" alt=""><figcaption></figcaption></figure></div>

```solidity
require("dotenv").config();
const {ethers, Wallet} = require("ethers");

const network = {
    name:"Eleanor Testnet",
    endpoint:"https://eleanor.metatime.com/rpc",
};

const provider = new ethers.providers.JsonRpcProvider(network.endpoint);
const wallet = new Wallet(process.env.PRIVATE_KEY);

const getTxnInstance = async () => {
    const nonce = await wallet.getTransactionCount();
    const gasPrice = await provider.getGasPrice();
    const gasLimit = 21_000;
    const chainID = await provider.getChainID();
    
    const tx = {
        from: wallet.address,
        to: ethers.constants.AddressZero,
        value: ethers.utils.parseEther(1),
        gasLimit,
        gasPrice,
        nonce,
        chainId,
        data: "0x",
        type: null,
    };
    
    return tx;
};

(async() => {
    const txInstance = await.getTxnInstance();
    await wallet.sendTransaction(txnInstance);
})();
```

{% hint style="info" %}
In the MetaChain network, developers can develop on the network using libraries such as Web 3.0 and Ethers.
{% endhint %}
