# Zeta

Source: https://developers.bitgo.com/docs/zeta

## Zeta

Zeta can be accessed with the following coin types:

| Environment     | Coin Type | Faucet                                                                                                                           |
| :-------------- | :-------- | :--------------------------------------------------------------------------------------------------------------------------------|
| Zeta Production | zeta      |                                                                                                                                  |
| Zeta Testnet    | tzeta     | <a href="https://labs.zetachain.com/get-zeta" target="_blank" rel="noreferrer">https://labs.zetachain.com/get-zeta</a>|

### Explorer
<a href="https://explorer.zetachain.com/" target="_blank" rel="noreferrer">https://explorer.zetachain.com/</a>

### Generating wallets

To create a Zeta wallet using BitGoJS:

```javascript
bitgo
  .coin('tzeta')
  .wallets()
  .generateWallet({
    label: 'My Test Wallet',
    passphrase: 'secretpassphrase1a5df8380e0e30',
  })
  .then(function (wallet) {
    // print the new wallet
    console.dir(wallet);
  });
```

To create a Zeta wallet using the platform API:

```shell
LABEL="My Test Wallet"
PASSPHRASE="secretpassphrase1a5df8380e0e30"

curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-d "{ \"label\": \"$LABEL\", \"passphrase\": \"$PASSPHRASE\" }" \
http://$BITGO_EXPRESS_HOST/api/v2/tzeta/wallet/generate
```

### Creating addresses

```javascript
bitgo
  .coin('tzeta')
  .wallets()
  .getWallet({ id: '585c51a5df8380e0e3082e46' })
  .then(function (wallet) {
    return wallet.createAddress();
  })
  .then(function (newAddress) {
    // print new address details
    console.dir(newAddress);
  });
```
```shell
WALLET=585c51a5df8380e0e3082e46

curl -X POST \
-H "Authorization: Bearer $ACCESS_TOKEN" \
https://app.bitgo-test.com/api/v2/tzeta/wallet/$WALLET/address
```

### Staking
- Zeta supports staking. Zeta uses a delegated proof-of-stake (DPoS) consensus mechanism. Zeta holders can stake their tokens to validators.
- Validators participate in consensus to produce new blocks and validate transactions.
- By staking Zeta, holders can earn rewards.

### Balances
The base unit of Zeta is `azeta`.
- 1 zeta = 10^18 azeta
- 1 azeta = 10^-18 zeta

To check the balance of a wallet:

```javascript
const address = yield walletInstance.getAddress({ address: 'zeta1ktrr4ju3a2luxpcfmv44xrpa4lwx4ufsa38wt8' });
const bal = address.balance;
return bal;
```

### Tokens
Zeta does not support tokens transactions.

### Consolidation
BitGo supports memo based addresses. Therefore, consolidation is not required.

### Fee rate
The default gas fee is 7000 azeta
