# Queries

### Get Public Key

```typescript
  getPublicKey(
    connection: Connection
  ): String!
```

### Get Public Key Hash

```typescript
  getPublicKeyHash(
    connection: Connection
  ): String!
```

### Get Reveal Transaction Estimate

```typescript
  getRevealEstimate(
    connection: Connection
    params: RevealParams!
  ): EstimateResult!
```

### Get Transfer Transaction Estimates

```typescript
  getTransferEstimate(
    connection: Connection
    params: SendParams!
  ): EstimateResult!
```

### Get Originate Transaction Estimate

```typescript
  getOriginateEstimate(
    connection: Connection
    params: OriginateParams!
  ): EstimateResult! 
```

### Check Address Availability

```typescript
  checkAddress(
    connection: Connection
    address: String!
  ): Boolean!
```

### Get Account Balance

```typescript
  getBalance(
    connection: Connection
    address: String!
  ): String!
```

### Get Contract Storage

```typescript
  getContractStorage(
    address: String!
    key: String!
    field: String
    connection: Connection
  ): String!
```

### Execute Tzip16View

```typescript
  executeTzip16View(
    address: String!
    viewName: String!
    args: String!
    connection: Connection
  ): String!
```

### Get Wallet Account Public Key Hash

```typescript
  getWalletPKH(
    connection: Connection
  ): String!
```

### Get Operation Status

```typescript
  getOperationStatus(
    hash: String!
    network: GetOperationStatusSupportedNetworks!
  ): OperationStatus!
```

### Encode Michelson Express to Bytes

```typescript
  encodeMichelsonExpressionToBytes(
    expression: String!
    value: String!
  ): String!
```

### Call Contract View

```typescript
  callContractView(
    address: String!
    view: String!
    args: String
    connection: Connection
  ): String!
```

### Get Transfer Parameters

```typescript
  getContractCallTransferParams(
    address: String!
    method: String!
    args: String
    params: SendParams
    connection: Connection
  ): TransferParams!
```
