EOS
EOS
EOS can be accessed with the following coin types:
Environment | Coin Type | Faucet |
---|---|---|
EOS Production | eos | |
EOS Jungle Testnet | teos | https://monitor.jungletestnet.io/#faucet |
Explorerhttps://eosauthority.com/
Generating wallets
1 2 3 4 5 6 7 8 9 10 11
bitgo .coin('teos') .wallets() .generateWallet({ label: 'My Test Wallet', passphrase: 'secretpassphrase1a5df8380e0e30', }) .then(function (wallet) { // print the new wallet console.dir(wallet); });
1 2 3 4 5 6 7 8
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:3080/api/v2/teos/wallet/generate
Before you can use an EOS wallet, it must be initialized on the EOS blockchain. A funding transaction must first be sent to the wallet's address. When BitGo detects this funding transaction, it automatically sends another initialization transaction to set up the signers and the home domain of the account.
Until the initialization transaction is confirmed, the wallet is not ready for use, and the receive address is not exposed in the API. This is to protect users from losing funds by sending to a wallet that does not exist on the network.
Warning: Do not use an EOS wallet while it is being initialized or you may lose funds.
Creating addresses
1 2 3 4 5 6 7 8 9 10 11
bitgo .coin('teos') .wallets() .getWallet({ id: '585c51a5df8380e0e3082e46' }) .then(function (wallet) { return wallet.createAddress(); }) .then(function (newAddress) { // print new address details console.dir(newAddress); });
1 2 3 4 5
WALLET=585c51a5df8380e0e3082e46 curl -X POST \ -H "Authorization: Bearer $ACCESS_TOKEN" \ https://app.bitgo-test.com/api/v2/teos/wallet/$WALLET/address
EOS transactions only support one input and one output. That means that the sendMany
call is not supported.
Like XLM, EOS addresses differ only by sequential and incrementing memo components (and do not use the BIP-32 standard).
Balances
EOS (EOS) is the native asset of the EOS blockchain. The base unit does not have a name and is simply referred to as the base unit of EOS.
- 1 base unit of EOS is (
10-4
) or 0.0001 EOS. - 1 EOS is (
104
) or 10000 base units of EOS (10 thousand).
Balances are supported in string format: balanceString
, confirmedBalanceString
, and spendableBalanceString
.