public function registerToken($type = 'ERC20', $name, $symbol, $address)
    {
        $response = $this->apiClient->post('tokens/register', [
            'token_type' => $type,
            'name' => $name,
            'symbol' => $symbol,
            'address' => $address,
        ]);
        
        if (!isset($response['uid'])) throw new \ErrorException('Unexpected API response: ' . print_r($response, true));
        return $this->getToken($response['uid']);
    }