# getChain

Returns the chain.

# Type

;() => 'LTC' | 'BTC' | 'PEPE' | 'BCH' | 'DOGE'

* BCH and DOGE support coming soon

# Return Value

Returns a string encoding the chain.

# Example

import { Computer } from '@bitcoin-computer/lib'
import { expect } from '../../utils'

describe('getChain', () => {
  it('Should return the chain', async () => {
    // Create wallet with a specific chain
    const computer = new Computer({ chain: 'LTC' })

    // Check chain
    expect(computer.getChain()).eq('LTC')
  })
})

Sources